Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with a dylib



I developed a PHP extension for MacOS X and when loaded from within apache+php everything works fine.
The issue occurs every time I try to execute php from the command like for example:


php -r "print ini_get('extension_dir');"

then PHP crashes and I got a dylib error:

dyld: lazy symbol binding failed: Symbol not found: ZEND_ROUTINE_HERE
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/ rsql.dylib
Expected in: flat namespace


dyld: Symbol not found: ZEND_ROUTINE_HERE
Referenced from: /usr/lib/php/extensions/no-debug-non-zts-20020429/ rsql.dylib
Expected in: flat namespace


please note that ZEND_ROUTINE_HERE is the first routine I use in the dylib entrypoint PHP_MINIT_FUNCTION.

Something is wrong, but I really do not understand how I can solve the issue because as I already said when loaded from within apache everything works fine without any error.

The dylib is generated with the following parameters to gcc:
-dynamic -flat_namespace -bundle -undefined suppress

 I tried also to modify these flags to:
-dynamic -twolevel_namespace -bundle -bundle_loader /usr/bin/php

but nothing changed.

Please help.
---
Thanks a lot,
Marco Bambini
Italy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.