# MacOS X issue with php extensions

- Thread: https://externals.io/message/28330
- Original archive: https://news-web.php.net/php.internals/28330
- Started by Marco Bambini on 2007-03-13T22:31:56+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #28330 — Marco Bambini — 2007-03-13T22:31:56+00:00

URL: https://externals.io/message/28330#28330

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
