I am trying to compile and install DBG on OS X 10.3. It uses the GCC 3.3 compiler, and I have php 4.3.3 installed.
I have had to correct the phpize script to point toward glibtoolize, adn then it generates the makefile and carries on running, but promptly stops saying:
/bin/sh /Users/jkp/Desktop/dbg-2.11.23-src/libtool --mode=compile gcc -I. -I/Users/jkp/Desktop/dbg-2.11.23-src -DPHP_ATOM_INC -I/Users/jkp/Desktop/dbg-2.11.23-src/include -I/Users/jkp/Desktop/dbg-2.11.23-src/main -I/Users/jkp/Desktop/dbg-2.11.23-src -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/TSRM -DHAVE_CONFIG_H -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /Users/jkp/Desktop/dbg-2.11.23-src/dbg.c -o dbg.lo
mkdir .libs
gcc -I. -I/Users/jkp/Desktop/dbg-2.11.23-src -DPHP_ATOM_INC -I/Users/jkp/Desktop/dbg-2.11.23-src/include -I/Users/jkp/Desktop/dbg-2.11.23-src/main -I/Users/jkp/Desktop/dbg-2.11.23-src -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/TSRM -DHAVE_CONFIG_H -DHAVE_CONFIG_H -g -O2 -c /Users/jkp/Desktop/dbg-2.11.23-src/dbg.c -fno-common -DPIC -o .libs/dbg.o
In file included from /Users/jkp/Desktop/dbg-2.11.23-src/dbg_net.h:23,
from /Users/jkp/Desktop/dbg-2.11.23-src/php_dbg.h:37,
from /Users/jkp/Desktop/dbg-2.11.23-src/dbg.c:21:
/usr/include/sys/socket.h:79: error: conflicting types for `socklen_t'
/usr/local/php/include/php/main/php.h:141: error: previous declaration of `socklen_t'
make: *** [dbg.lo] Error 1 |
Any clues? BTW: I cannot use the build file that dwstevens posted as it is for an older system and I have tried it. It fails too.
Thanks in advance.