Re: [PHP4BETA] won't dynamically link

From: Date: Mon, 17 Apr 2000 22:41:00 +0000
Subject: Re: [PHP4BETA] won't dynamically link
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13646@lists.php.net to get a copy of this message
Rasmus and Joey, you both mentioned you had php4 working with apache 1.3.12, dso version, under Solaris. Can I get you to forward me your apache and php configure flags, and let me know what versions of gcc, make, ld, and so on you're running? I am still unable to get it working. Thought I found the answer when I saw that the shell I used to do the builds had LD_LIBRARY_SET, but alas after unsetting and rebuilding, I get the same ap_block_alarms: referenced symbol not found In case anyone might see an obvious problem, the solaris box I am building this on is running gcc 2.8.1 ld 2.9.1 make 3.78.1 Thanks again. Fingers crossed...
                -glenn
At 01:23 AM 4/12/00 , Rasmus Lerdorf wrote:
I'm sorry to be bugging this list about this, but you all are my last resort. I've already tried zend.com, phpbuilder, php.net, the deja archives, etc. I'm currently unable to find any way to get php4 working. running sparc-solaris (sunos 5.6) apache 1.3.12, compiled with dynamic linking (mod.so) enabled. Here are the flags: ./configure "--prefix=/web/apache-1.3.12" "--with-layout=Apache" "--enable-module=so" "--enable-module=auth_dbm" php-4, RC1, compiled to use dynamic linking (apxs). Here are the flags: ./configure --with-apxs=/web/apache-1.3.12/bin/apxs --prefix=/web/php-4.0RC1 --with-config-file-path=/web/php ## that's a symlink to the --prefix path --without-gd --enable-sysvshm=yes --enable-sysvsem=yes --enable-safe-mode=yes --with-exec-dir=/web/php/safe-bin --enable-track-vars=yes --enable-trans-sid=yes --enable-force-cgi-redirect=yes force-cgi-redirect has no meaning when you are building PHP as an Apache module (which you are because you have --with-apxs) --enable-memory-limit=yes --with-xml --enable-short-tags=no As far as I can tell, compiles and installs go fine. But when I try to start up the web server, I get this error: Syntax error on line 212 of /web/apache/conf/httpd.conf: Cannot load /web/apache/libexec/libphp4.so into server: ld.so.1: /web/apache/bin/httpd: fatal: relocation error: file /web/apache/libexec/libphp4.so: symbol ap_block_alarms: referenced symbol not found Line 212 is the loadmodule line: LoadModule php4_module libexec/libphp4.so Commenting out that line allows httpd to start, but of course without php. Has anyone run across this before? Any help would be appreciated, since I'm stumped and we're dead in the water as far as php goes. Is /web/apache a symlink to /web/apache-1.3.12 ? It sure looks like you built PHP against a different set of Apache headers than the one you are trying to link it into. -Rasmus -- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net For additional commands, e-mail: php4beta-help@lists.php.net To contact the list administrators, e-mail: php4beta-admin@lists.php.net


« previous php.version4 (#13646) next »