• 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
Re: Symbol not found in dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Symbol not found in dylib


  • Subject: Re: Symbol not found in dylib
  • From: Phil Malin <email@hidden>
  • Date: Fri, 13 Jun 2008 09:45:58 +1000

Howdy.

Sorry for the sluggish reply but I've been caught up with work and hadn't had a chance to play with this issue some more.

I installed gcc 4.2.3 via mac ports and recompiled the app - everything worked fine this time, no namespace issues at all. And this was with exactly the same compiler/linker options as before. This is quite odd - perhaps something is up with the default gcc that comes with Leopard?

Cheers.

Phil.

Giuliano Gavazzi wrote:

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
  • Prev by Date: Diskarbitration 10.3 and 10.4
  • Next by Date: Re: Create Process As User
  • Previous by thread: Re: Diskarbitration 10.3 and 10.4
  • Next by thread: iPhone SDK Beta 6 Related Sources
  • Index(es):
    • Date
    • Thread