Re: PHP 4.0 Bug #8528 Updated: Undefined symbol compiling PHP as DSO --with-mysql

From: Date: Fri, 05 Jan 2001 09:08:01 +0000
Subject: Re: PHP 4.0 Bug #8528 Updated: Undefined symbol compiling PHP as DSO --with-mysql
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-43021@lists.php.net to get a copy of this message
I am sorry, but I have trouble re-posting in the bug database. It responds Sorry, incorrect user id/password pair. Warning: Supplied argument is not a valid MySQL result resource in /local/Web/sites/phpweb/bugs.php on line 630 I've checked for my name/password, and it seems OK (jbadiella@drac.com/mod_perl). This is what I was going to post: Excuse me for not doing it before, but I was afraid it would be too bulky. There are *lots* of warnings in the config.log file, and I can't picture which of them are really relevant. I am just picking the ones that contain "undefined reference" or "No such file" (along with the two preceding lines): configure:2539: gcc -o conftest -g -O2 conftest.c 1>&5 /tmp/ccpTbFx0.o: In function `main': /root/soft/pgm/apache/php-4.0.4/configure:2534: undefined reference to `pthread_mutexattr_init' /root/soft/pgm/apache/php-4.0.4/configure:2535: undefined reference to `pthread_create' -- gcc: unrecognized option `-kthread' /tmp/cciqWEst.o: In function `main': /root/soft/pgm/apache/php-4.0.4/configure:2587: undefined reference to `pthread_mutexattr_init' /root/soft/pgm/apache/php-4.0.4/configure:2588: undefined reference to `pthread_create' -- configure:4606: checking for socket in -lsocket configure:4625: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -lsocket 1>&5 /usr/i386-slackware-linux/bin/ld: cannot open -lsocket: No such file or directory -- configure:4661: checking for htonl in -lsocket configure:4680: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -lsocket 1>&5 /usr/i386-slackware-linux/bin/ld: cannot open -lsocket: No such file or directory -- configure:4747: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c 1>&5 /tmp/ccveVOSc.o: In function `main': /root/soft/pgm/apache/php-4.0.4/configure:4741: undefined reference to `yp_get_default_domain' -- configure:5046: checking for inet_aton in -lbind configure:5065: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -lbind -lm -ldl -lcrypt -lnsl 1>&5 /usr/i386-slackware-linux/bin/ld: cannot open -lbind: No such file or directory -- configure:5151: checking for res_search in -lsocket configure:5170: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -lsocket -lresolv -lm -ldl -lcrypt -lnsl 1>&5 /usr/i386-slackware-linux/bin/ld: cannot open -lsocket: No such file or directory -- configure:5583: checking for opendir in -ldir configure:5602: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -ldir -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /usr/i386-slackware-linux/bin/ld: cannot open -ldir: No such file or directory -- configure:5773: checking for sys/varargs.h configure:5783: gcc -E -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c >/dev/null 2>conftest.out configure:5779: sys/varargs.h: No such file or directory -- configure:5773: checking for unix.h configure:5783: gcc -E -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c >/dev/null 2>conftest.out configure:5779: unix.h: No such file or directory -- configure:6548: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /tmp/ccAxN0m4.o: In function `main': /root/soft/pgm/apache/php-4.0.4/configure:6542: undefined reference to `std_syslog' -- configure:6637: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /tmp/ccJpzgI6.o: In function `main': /root/soft/pgm/apache/php-4.0.4/configure:6631: undefined reference to `strlcat' -- configure:6637: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT conftest.c -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /tmp/ccjZ79Lq.o: In function `main': /root/soft/pgm/apache/php-4.0.4/configure:6631: undefined reference to `strlcpy' -- configure:40177: checking for pam_start in -lpam configure:40196: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c -lpam -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /usr/i386-slackware-linux/bin/ld: cannot open -lpam: No such file or directory -- configure:45543: gcc -o conftest -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DXML_BYTE_ORDER=12 -Wl,-rpath,/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql conftest.c -ldl -lmysqlclient -lresolv -lm -ldl -lcrypt -lnsl -lresolv 1>&5 /tmp/ccGC9ify.o: In function `main': /root/soft/pgm/apache/php-4.0.4/configure:45537: undefined reference to `isfinite' -- configure:45570: checking whether fp_except is defined configure:45587: gcc -c -g -O2 -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -DXML_BYTE_ORDER=12 conftest.c 1>&5 configure:45578: floatingpoint.h: No such file or directory Hope this helps. Jaume Bug Database ha escrit: > > ID: 8528 > Updated by: sniper > Reported By: jbadiella@drac.com > Old-Status: Open > Status: Feedback > Bug Type: *Install and Config > Assigned To: > Comments: > > Please add the config.log error into this bug report. > > --Jani > > Previous Comments: > --------------------------------------------------------------------------- > > [2001-01-03 05:26:49] jbadiella@drac.com > I want to compile PHP for Apache with the external MySQL libraries: > > ./configure > --with-apxs=/usr/local/lib/apache/bin/apxs > --with-mysql=/usr/local > > works, but after installation, Apache aborts with: > Syntax error on line 238 of /usr/local/lib/apache/conf/httpd.conf: > Cannot load /usr/local/lib/apache/libexec/libphp4.so into server: /usr/local/lib > /apache/libexec/libphp4.so: undefined symbol: __dn_expand > > I checked the config log and it actually complains about libraries it cannot find (bind socket > dir pam), but make appears to be succesful! It is the same with any PHP 4.x. > > --------------------------------------------------------------------------- > > Full Bug description available at: http://bugs.php.net/?id=8528 -| Jaume Badiella [ Drac Telemàtic, S.L. ] |- [ +34 93.736.4830 26?? ]

« previous php.dev (#43021) next »