Hi
I'm trying to get php4.05 up with apache 1.3.19 and postgresql 7.1 running on redhat 6.1. Everything is fine except for the apache build, where it bombs out with undefined reference errors when building the php module.
the output is below:
gcc -DLINUX=22 -I/usr/local/src/php-4.0.5 -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5/Zend -I/usr/local/src/php-4.0.5/
Zend -I/usr/local/src/php-4.0.5/TSRM -I/usr/local/src/php-4.0.5/TSRM -I/usr/local/src/php-4.0.5 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED ./apaci \
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/proxy/libproxy.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/e
xpat-lite/libexpat.a -Wl,-rpath,/usr2/pgsql/lib -rdynamic -L/usr2/pgsql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -ldl -lpq -lreso
lv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt -lndbm
modules/php4/libphp4.a(mod_php4.o): In function `sapi_apache_register_server_variables':
/usr/local/src/php-4.0.5/sapi/apache/mod_php4.c:236: undefined reference to `php_register_variable'
/usr/local/src/php-4.0.5/sapi/apache/mod_php4.c:251: undefined reference to `php_register_variable'
/usr/local/src/php-4.0.5/sapi/apache/mod_php4.c:254: undefined reference to `php_register_variable'
modules/php4/libphp4.a(main.o): In function `php_hash_environment':
/usr/local/src/php-4.0.5/main/main.c:1019: undefined reference to `php_import_environment_variables'
/usr/local/src/php-4.0.5/main/main.c:1027: undefined reference to `php_treat_data'
/usr/local/src/php-4.0.5/main/main.c:1034: undefined reference to `php_treat_data'
/usr/local/src/php-4.0.5/main/main.c:1041: undefined reference to `php_treat_data'
/usr/local/src/php-4.0.5/main/main.c:971: undefined reference to `php_register_variable'
/usr/local/src/php-4.0.5/main/main.c:974: undefined reference to `php_register_variable'
/usr/local/src/php-4.0.5/main/main.c:971: undefined reference to `php_register_variable'
/usr/local/src/php-4.0.5/main/main.c:974: undefined reference to `php_register_variable'
modules/php4/libphp4.a(rfc1867.o): In function `safe_php_register_variable':
/usr/local/src/php-4.0.5/main/rfc1867.c:53: undefined reference to `php_register_variable'
modules/php4/libphp4.a(rfc1867.o): In function `safe_php_register_variable_ex':
/usr/local/src/php-4.0.5/main/rfc1867.c:61: undefined reference to `php_register_variable_ex'
modules/php4/libphp4.a(php_content_types.o): In function `php_default_post_reader':
/usr/local/src/php-4.0.5/main/php_content_types.c:40: undefined reference to `php_std_post_handler'
modules/php4/libphp4.a(string.o): In function `php_if_parse_str':
/usr/local/src/php-4.0.5/ext/standard/string.c:2647: undefined reference to `php_treat_data'
/usr/local/src/php-4.0.5/ext/standard/string.c:2654: undefined reference to `php_treat_data'
modules/php4/libphp4.a(tsrm_virtual_cwd.o): In function `virtual_file_ex':
/usr/local/src/php-4.0.5/TSRM/tsrm_virtual_cwd.c:367: undefined reference to `tsrm_strtok_r'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/src/apache_1.3.19_docs/src'
The LIBS1 line in the makefile is as follows:
LIBS1= -Wl,-rpath,/usr2/pgsql/lib -rdynamic -L/usr2/pgsql/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lpam -ldl -lpq -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt -lndbm
Is it failing to link to postgres libs? How do I fix it?
Getting very desperate
Kev.