• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Issue with a dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with a dylib


  • Subject: Issue with a dylib
  • From: Marco Bambini <email@hidden>
  • Date: Tue, 1 Aug 2006 08:52:48 +0200

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:
This email sent to email@hidden


  • Prev by Date: Linking in CW shared lib vs. Xcode framework
  • Previous by thread: Linking in CW shared lib vs. Xcode framework
  • Index(es):
    • Date
    • Thread