MacOS X issue with php extensions
| From: | Marco Bambini | Date: | Tue, 13 Mar 2007 22:31:56 +0000 |
| Subject: | MacOS X issue with php extensions | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-28330@lists.php.net to get a copy of this message | ||
I have developed a php extension, the linux version works fine but the osx version has some issue when php is loaded from the command line (within apache works fine).
The terminal shows me the following error:
dyld: lazy symbol binding failed: Symbol not found: _zend_register_long_constant
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/rsql.dylib
Expected in: flat namespace
Please note that all the _zend functions are reported as "lazy symbol binding failed", this is just the first one...
I am using the standard way to compile a php extension so I am quite sure that the issue has something to do with the way the linker is invoked.
I think I need a way to tell gcc to weak link the final dylib plugin or something similar...
Your help is really appreciate...
Thanks a lot,
Marco Bambini