-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Brendan Simon wrote: > Alexander Hansen wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Brendan Simon wrote: >> >> >>>>> (checking for undefined symbols may be affected) (No such file >>>>> or directory, errno = 2) /usr/bin/ld: warning can't open >>>>> dynamic library: /sw/lib/libnetsnmphelpers.15.dylib referenced >>>>> from: >>>>> >>>>> >>>>> >> /sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib >> >>>> >>>>> (checking for undefined symbols may be affected) (No such file >>>>> or directory, errno = 2) /usr/bin/ld: Undefined symbols: >>>>> _log_notification referenced from libnetsnmptrapd.15 expected >>>>> to be defined in /sw/lib/libnetsnmpmibs.15.dylib collect2: ld >>>>> returned 1 exit status make[2]: *** >>>>> [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle] >>>>> Error 1 make[1]: *** [subdirs] Error 2 make: *** [perlmodules] >>>>> Error 1 ### execution of /var/tmp/tmp.1.R6lZ9S failed, exit >>>>> code 2 Removing runtime build-lock... Removing build-lock >>>>> package... /sw/bin/dpkg-lockwait -r >>>>> fink-buildlock-net-snmp-unified-5.4.1-2 (Reading database ... >>>>> 64426 files and directories currently installed.) Removing >>>>> fink-buildlock-net-snmp-unified-5.4.1-2 ... Failed: phase >>>>> compiling: net-snmp-unified-5.4.1-2 failed >>>>> >>>>> >>>>> >>>>> >>>> net-snmp-unified works for me (10.4.11 PowerPC). >>>> >>>> I see a "/usr/local" on your build line. Do you have anything in >>>> /usr/local that may be confusing things? >>>> >>>> >>> I saw some mail archives suggesting that there could be conflicts >>> with previous installs and to move all these files out the way. I >>> see that I do have a 5.2.1 installation in /usr, so I removed all >>> the libnetsnmp* files from /usr/lib (put them in >>> /usr/lib/old-netsnmp-libs/) and also all the *snmp* files from >>> /usr/bin (put them in /usr/bin/old-netsnmp-bin/). I checked in >>> /usr/local/lib and /sw/lib and there were no other files related to >>> snmp. >>> >>> I still get the same errors above. >>> >>> The file /sw/lib/libnetsnmpmibs.15.dylib does not seem to be >>> present, so I presume it should have been generated and is not. I >>> need to capture the output to a file and do some grepping. >>> >>> Has anyone seen or resolved this? >>> >>> Does a fink install net-snmp-unified so a make clean before >>> building ??? >>> >>> Thanks, Brendan. >>> >>> >> The package shouldn't care about /usr, just /usr/local. >> Fink builds from a completely pristine source. >> >> /sw/lib/libnetsnmpmibs.15.dylib will be generated by >> net-snmp-unified-shlibs itself. By any chance, do you have something >> lDYLD_LIBRARY_PATH set in your environment? >> > > Nope. Nothing set. Both "set | grep DY" and "export | grep DY" yield > no output. > > It seems to me the problem is that ./apps/.libs/libnetsnmptrapd.dylib > has an absolute reference to /sw/libs/libnetsnmpmibs.15.dylib, but that > hasn't been installed yet. Why should this be an absolute reference? > > Cheers, Brendan. > Quite right, it shouldn't be--that was why I was checking DYLD_LIBRARY_PATH.
I was able to duplicate your issue after I removed net-snmp15-unified-shlibs. Presumably somehow the prior build didn't suffer from this mis-linkage. I'll cc the maintainer. My system's a PowerPC running OS 10.4.11, and using Xcode2.5 . A copy of my build log is posted here: http://akhmac.blogdns.net:8080/~hansen/finklogs/fink-build-log_net-snmp-unified_5.4.1-2_2007.12.23-08.43.44 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHbnGGB8UpO3rKjQ8RAgSjAKCowX/N8NzX7u8jMQGN0pgJCjmXogCeOiAQ E6FcHYTViqMqsVWZQaNdTS8= =IQO8 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users