LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP Warning: Unable to load dynamic library (https://www.linuxquestions.org/questions/linux-software-2/php-warning-unable-to-load-dynamic-library-290638/)

xbaez 02-15-2005 04:14 PM

PHP Warning: Unable to load dynamic library
 
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php/lib/extras/imap.so' - /usr/local/php/lib/extras/imap.so: undefined symbol: file_globals in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php/lib/extras/mysql.so' - /usr/local/php/lib/extras/mysql.so: undefined symbol: core_globals in Unknown on line 0

Hello

I compiled php-4.3.10 myself, in order to have an apache-worker compatible php.

Hover, I downloaded the package:
php-mysql-4.3.10-1.rhel3.art
which includes the mysql.so extension

When I restart apache, this is what I get

PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php/lib/extras/imap.so' - /usr/local/php/lib/extras/imap.so: undefined symbol: file_globals in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php/lib/extras/mysql.so' - /usr/local/php/lib/extras/mysql.so: undefined symbol: core_globals in Unknown on line 0

I really thought that it was going to work since it's the same version of php (except for the -1 part of the RPM)

Any suggestions will be appreciated

Regards

Xavier

LordDark 02-15-2005 05:54 PM

Download the binary code and recompiled it for example

make distclean
./configure (add the parameter that need you)
make
make install

and that all... try again to test in the browser... (just if the problem is with php, if not download apache and install it)

xbaez 02-15-2005 05:55 PM

I tried configuring the c-client from ftp://ftp.cac.washington.edu/imap/installing in order to build a php compatible with imap.

Configuration is successfull, however when I 'make' in the php source directory, I receive this error:

/downloads/php/php-4.3.10-horde/ext/imap/php_imap.c: In function `zm_startup_imap':
/downloads/php/php-4.3.10-horde/ext/imap/php_imap.c:437: `auth_gss' undeclared (first use in this function)
/downloads/php/php-4.3.10-horde/ext/imap/php_imap.c:437: (Each undeclared identifier is reported only once
/downloads/php/php-4.3.10-horde/ext/imap/php_imap.c:437: for each function it appears in.)


I used '--with-imap=/usr/local/imap'.

I'm trying to build a php that has support for Horde (which needs imap into php)

Also, how can I custom build a imap.so or whatever.so extension for my php?

Regards

Xavier

PD: LordDark, I really think that the problem is with php. I've recompiled it numerous times.

LordDark 02-15-2005 06:11 PM

Sure,

try it not specific the path only configure it without the path

./configure --with-imap


that's way just include the support to IMAP


All times are GMT -5. The time now is 07:29 AM.