Re: [PHP4BETA] won't dynamically link

From: Date: Thu, 20 Apr 2000 19:21:16 +0000
Subject: Re: [PHP4BETA] won't dynamically link
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-13831@lists.php.net to get a copy of this message
No, unfortunately you're not too late. I still can't get it working. But from your configs, it appears that you're doing a static build, rather than using the dso/apxs install (you have a --with-apache flag instead of a --with-apxs flag... I believe they are mutually exclusive). Rasmus, I wonder if you're the only one with a working dso install of php4-RC1 under solaris?? I have since seen other reports of difficulty with the dso install, but no success reports. Should I stop banging my head on this one? If not, it would help if I could see somebody's config flags and gcc/ld/make version info to compare with mine. Anyone care to respond in an "official" capacity? Joey, thanks for the response.
                -glenn
                glittle@ucsd.edu
At 10:27 AM 4/20/00 , Joey Smith wrote:
Glen, Hope I'm not too late...things have been rather busy around here. gcc 2.8.1 ld 2.9.1 (GNU)make 3.77 I have built PHP4 + Apache many, many times on this machine (Solaris 2.6). My current config is: ./configure --enable-track-vars --enable-bcmath \ --enable-inline-optimization --with-ftp --with-gd \ --with-ttf --with-imap --with-readline --with-mm \ --enable-trans-sid --with-sybase-ct=/usr/local/sybase \ --enable-sysvsem --enable-sysvshm --with-yp \ --with-zlib=/usr/local/lib --enable-versioning --with-dom \ --disable-debug --with-apache=/usr/src/apache \ --with-mysql=/usr/local/mysql Apache is 1.3.12, php4 both RC1 and latest cvs. ----- Original Message ----- From: "Glenn Little" <little@cs.ucsd.edu> To: "Rasmus Lerdorf" <rasmus@php.net>; "Glenn Little" <little@cs.ucsd.edu> Cc: <php4beta@lists.php.net> Sent: Monday, April 17, 2000 4:41 PM Subject: Re: [PHP4BETA] won't dynamically link 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
-- 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 (#13831) next »