LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-15-2005, 05:14 PM   #1
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Rep: Reputation: 30
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
 
Old 02-15-2005, 06:54 PM   #2
LordDark
LQ Newbie
 
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15

Rep: Reputation: 0
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)
 
Old 02-15-2005, 06:55 PM   #3
xbaez
Member
 
Registered: Mar 2004
Location: USA
Distribution: Ubuntu
Posts: 284

Original Poster
Rep: Reputation: 30
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.
 
Old 02-15-2005, 07:11 PM   #4
LordDark
LQ Newbie
 
Registered: Feb 2005
Location: Ecuador
Distribution: Red Hat, Fedora Core
Posts: 15

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Base Address of Dynamic Library Damaged Soul Programming 11 12-13-2010 02:28 PM
ipw2200 - Unable to load ucode, unable to load firmware blizinsk Linux - Wireless Networking 2 10-10-2004 09:28 AM
PHP Warning: Unknown(): imap: Unable to initialize module dude4you Linux - Software 2 03-01-2004 12:19 PM
dynamic library versioning kev82 Linux - General 9 12-13-2003 10:24 PM
Compile a dynamic MySQL module/load into PHP dleone Linux - General 2 01-31-2003 10:39 AM


All times are GMT -5. The time now is 06:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration