php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #631 loading any library using dl() doesn't resolve PHP symbols
Submitted: 1998-08-07 17:31 UTC Modified: 1998-09-11 09:34 UTC
From: georgeh at mail dot csh dot rit dot edu Assigned:
Status: Closed Package: Dynamic loading
PHP Version: 3.0.2a OS: AlphaLinux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: georgeh at mail dot csh dot rit dot edu
New email:
PHP Version: OS:

 

 [1998-08-07 17:31 UTC] georgeh at mail dot csh dot rit dot edu
I'm not sure if this is a bug or something that just has to be done differently on an Alpha.

I've got two systems, one running fairly stock RedHat 5.0, and the other RedHat 5.1. One's running Apache 1.3.0 and PHP 3.0 release, the other is running Apache 1.3.1 and PHP 3.0.2a. 

Both compiled with -rdynamic added to PHP and Apache (although strangely, the setup script in the dl directory says PHP needs to be recompiled with it even though it has been), Apache restarted after being reinstalled.

Same error happens on both.  As below:

Fatal error: Unable to load dynamic library '/usr/local/lib/calendar.so' - /usr/local/lib/calendar.so: undefined symbol:
getParameters in /usr/local/apache/share/htdocs/imap.phtml on line 4

I've tested it with imap.so and calendar.so, both have the same problem.

If this isn't a bug, where can I find info on how to get this to work?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-11 09:34 UTC] zeev
Dynamic loading isn't always the same with all platforms, and there's a good chance that it's different with Alpha based
Linux than from x86 based Linux.

Is PHP itself a dynamic module?  If it is, compile it statically and try loading dynamic modules into it then.
Please let us know if it helped.

If that's not it, I doubt we'll be able to fix this in 3.0.  Version 3.1 uses libtool which should greatly help to use
the right arguments and switches with all the various tools, to produce working dynamic libraries.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jul 11 18:01:24 2020 UTC