Edit report at https://bugs.php.net/bug.php?id=36708&edit=1
ID: 36708
Updated by: wez@php.net
Reported by: jerome at macsaresexy dot com
Summary: PDO Extension fails to configure proper makefile
-Status: Assigned
+Status: Open
Type: Feature/Change Request
Package: PDO related
Operating System: Mac OS X 10.4.9
PHP Version: 5.2.1
-Assigned To: wez
+Assigned To:
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2007-05-14 15:30:23] jerome at macsaresexy dot com
_php_pdo_register_driver is defined in pdo.so i believe right?
So pdo_sqlite should be linking against the pdo.so extension?
How do I disable configure restriction so I can try this out and get
more information to some smarter mac devs than myself? I've been
giving this info to them and they still seem to think something isn't
being linked that it should work.
------------------------------------------------------------------------
[2007-05-14 09:19:29] tony2001@php.net
I removed the restriction in configure and compiled both PDO and PDO_SQLITE as shared.
This is what I get after enabling both of them (first PDO, then PDO_SQLITE):
dyld: lazy symbol binding failed: Symbol not found: _php_pdo_register_driver
Referenced from: /var/root/tony/php-src_5_2/modules/pdo_sqlite.so
Expected in: flat namespace
dyld: Symbol not found: _php_pdo_register_driver
Referenced from: /var/root/tony/php-src_5_2/modules/pdo_sqlite.so
Expected in: flat namespace
Trace/BPT trap
So it seems dynamic linker is still broken in MacOSX, therefor the restriction is reasonable.
------------------------------------------------------------------------
[2007-05-10 20:59:19] jerome at macsaresexy dot com
Quick comment, clarification of dlopen() if that applies to this. OS
X 10.3.x supposedly has a dl compat layer, where 10.4.x actually has
native support for dlopen() and friends.
------------------------------------------------------------------------
[2007-05-10 16:21:33] jerome at macsaresexy dot com
After some looking into, I reopened this bug after discussing this
with mac developers and the fact being stated that OS X has dlopen and
friends just like linux. ALso the fact that MOST of the php
extensions build fine on OS X except for PDO and maybe one or 2
others.
This doesn't seem reasonable to not be able to do, if other extensions
can be compiled & loaded, why can't PDO. it really limits options
like considering Zend Core when you can't install PDO via pecl.
------------------------------------------------------------------------
[2006-08-24 16:01:46] tony2001@php.net
Due to the way that loadable modules work on OSX/Darwin, you need to compile the PDO package
statically into the PHP core.
I've fixed the configure, so it will fail if you try to compile PDO dynamically.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=36708
--
Edit this bug report at https://bugs.php.net/bug.php?id=36708&edit=1