Click to See Complete Forum and Search --> : cant compile on solaris9


waterboy
10-11-2002, 04:56 PM
ld: fatal: file stub.lo: unknown file type
ld: fatal: File processing errors. No output written to .libs/libphp4.so
*** Error code 1
make: Fatal error: Command failed for target `libphp4.la'
Current working directory /www/php-4.2.3
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
# ld: fatal: file stub.lo: unknown file type
ld:: not found
#

yhis is the config switch i used
./configure --with-zlib=/usr --with-db3=/opt/sfw \
--with-openssl=/opt/sfw/ssl \
--with-mysql=/opt/sfw/mysql \
--enable-calendar \
--with-apxs=/usr/local/bin/apxs \
--enable-ftp \
--enable-discard-path \
--enable-libgcc
#

help
pierre

gwchamb
11-08-2002, 03:07 PM
ld: fatal: file stub.lo: unknown file type
ld: fatal: File processing errors. No output written to .libs/libphp4.so

Have you tried using GNU ld? Solaris' default ld is inadequate in many instances. I would suggest adding --enable-sigchild to your command line, too. Sadly, though, I can't remember WHY -- and I apologize. I remember having problems with an earlier version of PHP, and letting PHP handle SIGCHLD internally fixed the problem.

-- Gary