Symbol not found in dylib
Symbol not found in dylib
- Subject: Symbol not found in dylib
- From: Phil Malin <email@hidden>
- Date: Fri, 30 May 2008 15:20:09 +1000
Hi all.
Sorry if this question has been asked to death - I've done searches on
it and have seen it referenced but haven't found any general discussion
on the cause and solution.
I've written a C program (well, an Eiffel program which compiles to C)
which worked fine under Tiger but now fails under Leopard. The program
links the fastcgi library libfcgi. When I try to run the program I get
the following error:
dyld: Symbol not found: _environ
Referenced from: /opt/local/lib/libfcgi.2.dylib
Expected in: flat namespace
Trace/BPT trap
The above shows the MacPorts version - the same thing happens with the
one in /usr/lib. I've even tried compiling the fastcgi source with my
own compiler options and use that but to no avail. I'm guessing it has
to do with osx' two level and flat namespace distinction and I have
seen suggestions made in terms of compiler options but nothing I've
tried seems to have helped.
Has anyone else suffered this problem and if so, got a solution?
Thanks in advance for any info.
Phil.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden