modules loading problem

[email protected] (Daniel Bauke)
Newsgroups php.version4
Message-ID <[email protected]>
We have experienced some problems with loading modules under PHP4
RC1/2. The main system is Linux 2.2.x/ix86 on glibc 2.1.3/gcc
2.95 and apache 1.3.12 with EAPI extensions. But it seems that it
not depends on configuration. 

Symptoms from httpd log are:

PHP Fatal error:  Unable to load dynamic library 'pgsql.so' -
pgsql.so: cannot open shared object file: No such file or
directory in Unknown on line 0
PHP Fatal error:  Unable to load dynamic library 'xml.so' -
xml.so: cannot open shared object file: No such file or directory
in Unknown on line 0
PHP Fatal error:  Unable to load dynamic library 'dba.so' -
dba.so: cannot open shared object file: No such file or directory
in Unknown on line 0
[and so on...]

extension_dir in php.ini is set correctly and the only way to fix
these errors we found setting LD_LIBRARY_PATH to a directory the
same as is in extension_dir, where modules actually are. It is
rather strange or even ugly solution, isn't it? Did we miss
something or it's a kind of silly bug?

PHP compile options were:
'./configure' 'i686-pld-linux' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc'
'--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib'
'--libexecdir=/usr/libexec' '--localstatedir=/usr/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-apxs=/usr/sbin/apxs'
'--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin'
'--disable-debug' '--enable-magic-quotes' '--enable-shared'
'--enable-track-vars' '--enable-safe-mode' '--enable-trans-sid'
'--enable-sysvsem=shared' '--enable-sysvshm=shared' '--with-regex=system'
'--with-gettext' '--with-ldap' '--with-mysql=shared'
'--with-mysql-sock=/var/state/mysql/mysql.sock' '--with-gd'
'--with-dbase=shared' '--with-filepro=shared' '--enable-ftp=shared'
'--with-hyperwave' '--with-pdflib' '--with-java' '--with-pgsql=shared,/usr'
'--with-imap' '--enable-bcmath=shared' '--enable-calendar=shared' '--with-mm'
'--with-pcre-regex=shared' '--enable-posix=shared' '--enable-session'
'--with-ttf' '--with-t1lib' '--with-recode' '--enable-ucd-snmp-hack'
'--enable-dba=shared' '--with-gdbm' '--with-ndbm' '--enable-yp=shared'
'--with-xml=shared' '--enable-xml=shared' '--with-zlib=shared'


-- 
Daniel `bonkey' Bauke; http://www.oho.pl/~bonkey/; {happiness=bike&&unix;}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.