#18997 [Csd]: cannot load libphp4.so - referenced symbol not found

From: Date: Fri, 30 Aug 2002 01:23:04 +0000
Subject: #18997 [Csd]: cannot load libphp4.so - referenced symbol not found
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18202@lists.php.net to get a copy of this message
ID: 18997 User updated by: LouPicciano@comcast.net Reported By: LouPicciano@comcast.net Status: Closed Bug Type: Dynamic loading Operating System: Solaris 9 SPARC -PHP Version: 4.2.2 +PHP Version: 4.3.0-DEV New Comment: Successful build of php-4.3.0-Dev (Snapshot build 200208230600) with Apache 2.0.40... Here's the config.nice: ---------- './configure' '--with-apxs2=/usr/apache2/bin/apxs' '--enable-track-vars' '--enable-debug' '--with-openssl' '--with-zlib' '--enable-bcmath' '--with-bz2' '--with-kerberos' '--with-ldap' '--enable-mbstring' '--with-mysql=/usr/local/mysql' '--with-iconv' '--enable-inline-optimization' Gripped by a frenzied need to practice my typing, I also put paths to all relevant libs into LD_LIBRARY_PATH (but don't know if this was curative...) And it works! - Lou Previous Comments: ------------------------------------------------------------------------ [2002-08-29 20:35:11] littleriver2@yahoo.com Experiencing the same issues on an Solaris 9 install - Any suggestions? # nm /usr/local/apache1/libexec/libphp4.so |grep cmpdi2 [4386] | 0| 0|NOTY |GLOB |0 |UNDEF |__cmpdi2 # uname -a SunOS platanar 5.9 Generic sun4u sparc SUNW,Ultra-5_10 ------------------------------------------------------------------------ [2002-08-21 16:50:52] LouPicciano@comcast.net Rasmus et al, Thanks for your feedback- your help put us on the right track. So, using gcc 3.1, putting virtually all 'libs' into both LD_RUN_PATH and LD_LIBRARY_PATH and removing the --enable-libgcc option, the following works: ./configure --with-apxs=/usr/apache/bin/apxs --enable-track-vars --with-mysql=/usr/local/mysql --with-openssl --with-zlib ------------------------------------------------------------------------ [2002-08-21 15:24:06] edink@php.net You probably need to add --with-zlib. Could you check this out? ------------------------------------------------------------------------ [2002-08-21 15:07:42] LouPicciano@comcast.net adding --enable-libgcc _alone_ did not work, however... ./configure --with-apxs=/usr/apache/bin/apxs --enable-libgcc --enable-track-vars --with-mysql=/usr/local/mysql got us beyond the __cmpdi2 symbol error. Now are getting: Cannot load <...>/libphp4.so into server: ld.so.1: /usr/apache/bin/httpd: fatal: relocation error: file <...>/libphp4.so: symbol uncompress: referenced symbol not found Also, an interesting sidenote: path to mysql must (apparently) be a 'real' pathname. Configure does not follow symlinks... ------------------------------------------------------------------------ [2002-08-20 16:55:59] rasmus@php.net Try adding --enable-libgcc to your PHP configure line. Let us know if that fixes it. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18997 -- Edit this bug report at http://bugs.php.net/?id=18997&edit=1

« previous php.bugs (#18202) next »