I tried compiling php 4.1.2 as an apache module with this command line: ./configure --with-config-file-path=/usr/local/apache/conf \ --with-mysql \ --with-apxs=/usr/local/apache/bin/apxs \ --with-gd=shared,/usr/local \ --with-zlib-dir=/usr/local \ --with-jpeg-dir=/usr/local && make && make install
I was seeing these errors from the final link step: ld: fatal: symbol `gdImageCompare' is multiply defined: 1204 (file Zend/.libs/libZend.al(gd.o) and file /usr/local/lib/libgd.a(gd.o)); 1205 ld: fatal: symbol `gdImageInterlace' is multiply defined: 1206 (file Zend/.libs/libZend.al(gd.o) and file /usr/local/lib/libgd.a(gd.o)); 1207 ld: fatal: symbol `gdImageSetTile' is multiply defined: 1208 (file Zend/.libs/libZend.al(gd.o) and file /usr/local/lib/libgd.a(gd.o)); etc. I couldn't figure why the libZend.al archive should contain the gd static objects. So I relinked the libZend.al library with the following command omitting the -lgd argument. /bin/sh ../libtool --silent --mode=link cc -g -prefer-pic -o libZend.la -lpam -lixsql -lixasf -lixgen -lixos -lixgls -lnsl -lsocket -laio -lphpifx -lixglx -ldl -lldapssl30 -ljpeg -lz -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lcrypt zend_language_parser.lo zend_language_scanner.lo zend_ini_parser.lo zend_ini_scanner.lo zend_alloc.lo zend_compile.lo zend_constants.lo zend_dynamic_array.lo zend_execute.lo zend_execute_API.lo zend_highlight.lo zend_llist.lo zend_opcode.lo zend_operators.lo zend_ptr_stack.lo zend_stack.lo zend_variables.lo zend.lo zend_API.lo zend_extensions.lo zend_hash.lo zend_list.lo zend_indent.lo zend_builtin_functions.lo zend_sprintf.lo zend_ini.lo I reran the make and make install and it was successful. When I stopped apache and tried bringing it back up I received an error about the symbol png_get_valid being unresolved. I found that the -lpng library was not added like it was when I used these same configure flags with php 4.0.4pl1. I reran the configure script adding --with-png-dir=/usr/local and now everything works. I hope this info helps someone out there. Bob -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php