site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eZVNbSxlqhO7jluSdmcdrGgNTWTEQnZdalt0lTm9vvI=; b=IjYdEF53I0vpD8+wngslaIZx7IK8qmo2FAYo/4bhjIhWcUSI2bTBRJNjagLn5S18y9 RDK+2zdiWnHphzIpBiqQdGwCwwQ442rgHW1V9MJsKTiVDoK1fMtCVIUPZkSGe/ce00DK mPaVPVx19R36XkhtzQY9h9+VZEaTFwEvwBMPo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=a/W9LLCqKooaCOK7rktFU1zdazSR2YMkuhAow0r9d0G4ywTNqNAYBVegGo7MGMWUPp ZX+3zSuRNoCQS2pkeS5UDThuFVZ1j5FHdTP0CM3TABmSKZObzx7xpVtCq7yrn5rYSHnD kosrnEeRCr++n+fKda0iXWIepMsKYND0TOGds= User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080412 SeaMonkey/1.1.9 Howdy. Cheers. Phil. On 30 May, 2008, at 07:20 , Phil Malin wrote: Hi all. dyld: Symbol not found: _environ Referenced from: /opt/local/lib/libfcgi.2.dylib Expected in: flat namespace Trace/BPT trap 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. # 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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? Giuliano Gavazzi wrote: 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: 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? 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...): This email sent to site_archiver@lists.apple.com
participants (1)
-
Phil Malin