site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com -Eric On Sep 26, 2006, at 12:21 PM, Peter Hull wrote: Dear All, I've come across a bug in dyld, when a C++ program is linked with the -s option. The error message is: dyld: lazy symbol binding failed: lazy pointer not found dyld: lazy pointer not found Trace/BPT trap It must be a 'known problem' because have seen several references to it on the internet (see below), but none seem to suggest that there is a fix from Apple in the pipeline. Has anyone got any definitive information on this or should I submit a bug report to Apple? Peter More info: An example, minimal program: // example.cc struct Object { virtual void func(void) {} virtual ~Object() {}; }; int main() { Object o; return 0; } // End Steps to reproduce: 1. compile with g++ -s example.cc -o example 2. run with ./example 3. Error message appears It does not appear: 1. If you omit the -s option 2. If you use -Wl,-x instead of -s 3. If you omit the -s option and subsequently use strip(1) My system: Mac OS X 10.4.7 iMac 1.83GHz Intel Core Due gcc version 4.0.1 (Apple Computer, Inc. build 5363) _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... That'd be a bug in the linker (ld), not in dyld. Please file a bug report. References: http://lists.apple.com/archives/Streaming-server-dev/2006/Feb/ msg00010.html http://www.cocoabuilder.com/archive/message/xcode/ 2005/11/21/1344http://forum.openmsx.org/search.php?search_author=mth http://phorum5.greennet.org.uk/read.php?22,1296,1307 http://www.andre-simon.de/dokuwiki/doku.php?id=en:installation_macos etc etc This email sent to site_archiver@lists.apple.com
participants (1)
-
Eric Albert