Alexander Hansen wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Brendan Simon wrote:
>   
>> BTW, I am getting errors compiling net-snmp-unitified with "fink -b -y
>> install net-snmp-unified".
>> Is net-snmp-unified known to compile using fink ?
>> It's probably something wrong with my setup because I can't compile
>> gnucash2 either.
>>
>> There errors are related to not being able to open dynamic libraries. 
>> Here is the tail of the build messages.
>>
>>    
>>     
> 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-2/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs
>   
>>    
>>     
> -L/sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../apps
>   
>>    
>>     
> -L/sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../agent/.libs
>   
>>    
>>     
> -L/sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../agent
>   
>>    
>>     
> -L/sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers/.libs
>   
>>    
>>     
> -L/sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers
>   
>>    
>>     
> -L/sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib/.libs
>   
>>    
>>     
> -L/sw/src/fink.build/net-snmp-unified-5.4.1-2/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib
>   
>>     -lnetsnmptrapd -lnetsnmpagent -lnetsnmp 
>>     /usr/bin/ld: warning can't open dynamic library:
>>     /sw/lib/libnetsnmpmibs.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: 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.


-------------------------------------------------------------------------
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

Reply via email to