Re: Symbol not found in dylib
Re: Symbol not found in dylib
- Subject: Re: Symbol not found in dylib
- From: Giuliano Gavazzi <email@hidden>
- Date: Fri, 30 May 2008 09:38:55 +0200
On 30 May, 2008, at 07:20 , Phil Malin wrote:
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?
yes, in courier-authlib and some Apache httpd modules.
See http://issues.apache.org/bugzilla/show_bug.cgi?id=4438
and the courier-imap mailing list.
I don't know if this has changed in new versions of 10.5, but this I
report below is what I did for courier-authlib-0.60.2, hope this helps
you. I your build does not use libtool it will not be of any use.
Mind: you will have to install the latest libtool (probably not the
latest by now...):
# The solution for apache was to use the latest GNU libtool:
/usr/local/bin/libtool --version
# ltmain.sh (GNU libtool) 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)
# Here is what I did for courier-authlib:
# starting where the tarballs are going to be expanded:
gnutar xjf courier-authlib-0.60.2.tar.bz2
cd courier-authlib-0.60.2
./configure --without-authpam [...]
# find and replace any occurrences of libtool in the build/source dir
# MIND the following step runs ln with the force flag. Be sure to be
in the correct directory!
find . -type f -name libtool -print -exec ln -sf /usr/local/bin/
libtool \{\} \;
make
make check
make install
make install-configure
# and authlib starts just fine.
Giuliano
_______________________________________________
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