Re: DSO Errors

From: Date: Tue, 27 Feb 2001 16:00:32 +0000
Subject: Re: DSO Errors
Groups: php.install 
Request: Send a blank email to php-install+get-2216@lists.php.net to get a copy of this message
Hi, I've had the same problem und found quite a few similar questions but no answers in the archive. I even sent a mail to this list; but still no reply! So I started worrying some of my Unix friends until one of them came up with a solution. It appears that the options have been changed on PHP4. DSOs are no longer stored with relocation information (-R option I think - I don't know much about the compiler and loader options). The trick is to set LD_LIBRARY_PATH before loading the library. I put the following into apachectl : LD_LIBRARY_PATH="/usr/lib:/usr/openwin/lib:/usr/dt/lib:/db/mysql/lib/mysq" export LD_LIBRARY_PATH That is, the standard path plus the path to libmysqlclient.so, which libphp4.so could not find. I hope this helps you Regards Mike Middleton On 27 Feb 2001, at 10:06, Bill Cheek wrote: > I am running UnixWare7 v7.1.1, Apache 1.3.14 and trying to add PHP > 4.0.4pl1. A static build using the following options works great: > .. > Compiling PHP with the following options gives no errors anywhere in the > process and builds libphp4.so: > > ./configure --with-apxs=/usr/local/apache/bin/apxs \ > --with-config-file-path=/usr/local/apache/conf \ > --enable-track-vars --without-mysql \ > > However, when I restart Apache, I get the following error: > > Syntax error on line 224 of /usr/local/apache/conf/httpd.conf: > Cannot load /usr/local/apache/libexec/libphp4.so into server: dynamic > linker: /usr/local/apache/bin/httpd: relocation error: symbol not found: > php_startup_extensions; referenced from: > /usr/local/apache/libexec/libphp4.so ./apachectl start: httpd could not be > started > ... > > Any suggestions would be appreciated! > > Bill Cheek > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list- admin@lists.php.net > ------------------------------------------------------------- Michael Middleton RZ der Universitaet Regensburg 93040 REGENSBURG Tel: +49-941/943-4890 F R Germany

« previous php.install (#2216) next »