When I use the following configure options:
--enable-libgcc
--with-apache=/devel/apache/apache_1.3.9
--enable-ftp
--without-gd
--with-imap
--with-mysql=/usr/local/mysql
--with-java=/usr/java
--enable-xml
--with-system-regex
I can get the config to run (did a "make clean" first and removed all cache files).
When I do a "make install", it looks like it did it OK, but no php binary shows up in /usr/local/bin. When I do an explicit
"make php", I get the following:
/bin/sh /mirror/install/php/php-4.0.2/libtool --silent --mode=link gcc -I. -I/mirror/install/php/php-4.0.2/ -I/mirror/install/php/php-4.0.2 -I/mirror/install/php/php-4.0.2/main -I/devel/apache/apache_1.3.9/src/include -I/devel/apache/apache_1.3.9/src/os/unix -I/mirror/install/php/php-4.0.2/Zend -I/mirror/install/php/php-4.0.2 -I/usr/local/include -I/usr/local/mysql/include -I/mirror/install/php/php-4.0.2/ext/xml/expat/xmltok -I/mirror/install/php/php-4.0.2/ext/xml/expat/xmlparse -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2 -o php -export-dynamic stub.lo libphp4.la
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o: In function _start':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/crt1.o(.text+0x5c): undefined reference tomain'
collect2: ld returned 1 exit status make: ***
Error 1
I'm (obviously) using gcc 2.95.2 on a Solaris 2.6 box (SPARC).
I tried it using the built-in Solaris ld and then grabbed the GNU bintools and installed them. It now uses the GNU ld. Both ways, I get the same result.
Any pointers would be greatly appreciated. I'm hoping I'm just an idiot and forgot something really simple.
thx,
boB