Compile Failure
| From: | Paul Gardiner | Date: | Thu, 04 May 2000 12:15:30 +0000 |
| Subject: | Compile Failure | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-14455@lists.php.net to get a copy of this message | ||
Hi Everyone,
I've been trying to compile PHP 4 for quite some time now. I'm getting
closer but just cannot get past this problem. I can compile
PHP3/Apache/Informix no problems, but even PHP4 as a CGI is still no go for
version 4 :-(
I have put soooooo many hours into this that my better half has been
weilding a knive and looking at my nuts :-O
So please, if you can shed any light on whats wrong I would be most
grateful.
The machine is SCO Openserver 5.0.4 (+Dev system - Linker & Libraries), gcc
2.95.2pl1 & gmake 3.78.1. I think the problem is that I seem to be the only
one so far trying to compile PHP4 on a SCO box. Quite a few people have
asked my advice regarding PHP3 so I'm sure that they will follow to 4.
PHP4 Version: php4-200005040145 (I've been trying at least once a day
since beta)
LDFLAGS="-L/lib -L/usr/lib" \
CPPFLAGS="-I/usr/include" \
./configure --without-mysql \
--enable-track_vars
I'm not 100% sure about the LD / CPP Flags vars.
This is where it falls over:
/bin/sh /usr/src/php4-200005040145/libtool --silent --mode=link
c -g -O2 -o libphp4.la -rpath /usr/src/php4-200005040145/libs main.lo
internal_functions.lo snprintf.lo php_sprintf.lo configuration-parser.lo
configuration-scanner.lo safe_mode.lo fopen-wrappers.lo php_realpath.lo
alloca.lo php_ini.lo SAPI.lo rfc1867.lo dlist.lo php_content_types.lo
strlcpy.lo strlcat.lo mergesort.lo reentrancy.lo php_variables.lo
php_ticks.lo php_virtual_cwd.lo Zend/libZend.la sapi/cgi/libsapi.la
regex/libregex.la ext/db/libdb.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/libsession.la ext/standard/libstandard.la
xt/xml/libxml.la -ldbm -lm -lcrypt -lnsl -lsocket -lsocket
gcc -DHAVE_CONFIG_H -I. -I/usr/src/php4-200005040145/ -I/usr/src/php4-200005
040145 -I/usr/src/php4-200005040145/Zend -I/usr/src/php4-200005040145 -I/usr
/src/php4-200005040145/ext/xml/expat/xmltok -I/usr/src/php4-200005040145/ext
/xml/expat/xmlparse -I/usr/include -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2
-c stub.c && touch stub.lo
/bin/sh /usr/src/php4-200005040145/libtool --silent --mode=link
c -g -O2 -o php -export-dynamic stub.lo libphp4.la
Undefined first referenced
symbol in file
php_minit_syslog .libs/libphp4.a(basic_functions.o)
php_rshutdown_syslog .libs/libphp4.a(basic_functions.o)
php_rinit_syslog .libs/libphp4.a(basic_functions.o)
php_if_syslog .libs/libphp4.a(basic_functions.o)
php: fatal error: Symbol referencing errors. No output written to php
collect2: ld returned 1 exit status
gmake[1]: *** [php] Error 1
gmake[1]: Leaving directory `/usr/src/php4-200005040145'
gmake: *** [all-recursive] Error 1
Regards,
Paul