Alexander Hansen wrote:
> On Friday 07 December 2007 10:26:02 am Neil Tiffin wrote:
[]
>> LD_RUN_PATH="/sw/lib:/System/Library/Perl/5.8.6/darwin-thread-
>> multi-2level/CORE" env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -
>> undefined dynamic_lookup -L/usr/local/lib -L/sw/lib/system-openssl/
>> lib -L/sw/lib/system-openssl/lib -L/sw/lib TrapReceiver.o  -o ../blib/
>> arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle   -L/sw/src/
>> fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/
>> TrapReceiver/../../apps/.libs -L/sw/src/fink.build/net-snmp-
>> unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../apps -L/sw/src/
>> fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/
>> TrapReceiver/../../agent/.libs -L/sw/src/fink.build/net-snmp-
>> unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent -L/sw/
>> src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/
>> TrapReceiver/../../agent/helpers/.libs -L/sw/src/fink.build/net-snmp-
>> unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers -
>> L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/
>> TrapReceiver/../../snmplib/.libs -L/sw/src/fink.build/net-snmp-
>> unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib -
>> lnetsnmptrapd -lnetsnmpagent -lnetsnmp
[]

This is a terrible linker command line. It will try to load any ancient 
version of those snmp dylibs that are lying around on the system and 
then fail. If it works (it worked for me, too, on intel/10.5), it is by 
sheer luck. Actually, in my case it is even worse, because it adds the 
flags

-mmacosx-version-min=10.5  -arch i386 -arch ppc

to that line, as if it wanted to build a universal binary, and then it 
complains about not finding universal libraries:

ld: warning in 
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/apps/.libs/libnetsnmptrapd.dylib,
 
file is not of required architecture.

This is non-fatal, though.

> It worked on my system (10.4.11, PowerPC, using Xcode 2.5) 

You did a clean build, I guess?

I think as a first attempt for a successful build, one would need to 
remove all old versions of snmp packages and all snmp dylibs that are 
elsewhere on the system.

-- 
Martin


-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to