Kelvin Chung <[email protected]> said:
> I'm having trouble compiling net-snmp-unified (5.4.1-3) on a G4  
> running Tiger.  Here's what I have:
>
> 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-3/net-snmp-5.4.1/perl/TrapReceiver/../../ 
> apps/.libs -L/sw/src/fink.build/net-snmp-unified-5.4.1-3/net- 
> snmp-5.4.1/perl/TrapReceiver/../../apps -L/sw/src/fink.build/net-snmp- 
> unified-5.4.1-3/net-snmp-5.4.1/perl/TrapReceiver/../../agent/.libs -L/ 
> sw/src/fink.build/net-snmp-unified-5.4.1-3/net-snmp-5.4.1/perl/ 
> TrapReceiver/../../agent -L/sw/src/fink.build/net-snmp-unified-5.4.1-3/ 
> net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers/.libs -L/sw/src/ 
> fink.build/net-snmp-unified-5.4.1-3/net-snmp-5.4.1/perl/ 
> TrapReceiver/../../agent/helpers -L/sw/src/fink.build/net-snmp- 
> unified-5.4.1-3/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib/.libs - 
> L/sw/src/fink.build/net-snmp-unified-5.4.1-3/net-snmp-5.4.1/perl/ 
> TrapReceiver/../../snmplib -lnetsnmptrapd -lnetsnmpagent -lnetsnmp - 
> lnetsnmpmibs -lnetsnmphelpers
> /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-3/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-3/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/ 
> libnetsnmpagent.15.dylib referenced from: /sw/src/fink.build/net-snmp- 
> unified-5.4.1-3/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/libnetsnmp. 
> 15.dylib referenced from: /sw/src/fink.build/net-snmp-unified-5.4.1-3/ 
> 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:
> _config_perror referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _convert_v1pdu_to_v2 referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmpagent.15.dylib
> _copy_nword referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _debugmsg referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _debugmsg_oid referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _debugmsgtoken referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _fprint_variable referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _log_notification referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmpmibs.15.dylib
> _memdup referenced from libnetsnmptrapd.15 expected to be defined in / 
> sw/lib/libnetsnmp.15.dylib
> _read_objid referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _register_config_handler referenced from libnetsnmptrapd.15 expected  
> to be defined in /sw/lib/libnetsnmp.15.dylib
> _run_shell_command referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmpagent.15.dylib
> _send_v2trap referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmpagent.15.dylib
> _snmp_clone_pdu referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_close referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _snmp_free_pdu referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_get_do_debugging referenced from libnetsnmptrapd.15 expected to  
> be defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_get_quick_print referenced from libnetsnmptrapd.15 expected to  
> be defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_log referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _snmp_log_perror referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_oid_compare referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_oidsubtree_compare referenced from libnetsnmptrapd.15 expected  
> to be defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_open referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _snmp_send referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _snmp_sess_init referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_sess_perror referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_set_quick_print referenced from libnetsnmptrapd.15 expected to  
> be defined in /sw/lib/libnetsnmp.15.dylib
> _init_vacm_config_tokens referenced from libnetsnmptrapd.15 expected  
> to be defined in /sw/lib/libnetsnmpagent.15.dylib
> _netsnmp_ds_get_boolean referenced from libnetsnmptrapd.15 expected to  
> be defined in /sw/lib/libnetsnmp.15.dylib
> _netsnmp_ds_register_config referenced from libnetsnmptrapd.15  
> expected to be defined in /sw/lib/libnetsnmp.15.dylib
> _netsnmp_oid_equals referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _se_find_label_in_slist referenced from libnetsnmptrapd.15 expected to  
> be defined in /sw/lib/libnetsnmp.15.dylib
> _vacm_check_view referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmpagent.15.dylib
> _vacm_is_configured referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _netsnmpUDPDomain referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _netsnmp_snmpTCPDomain referenced from libnetsnmptrapd.15 expected to  
> be defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_realloc referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.15.dylib
> _snmp_strcat referenced from libnetsnmptrapd.15 expected to be defined  
> in /sw/lib/libnetsnmp.15.dylib
> _sprint_realloc_objid referenced from libnetsnmptrapd.15 expected to  
> be defined in /sw/lib/libnetsnmp.15.dylib
> _sprint_realloc_variable referenced from libnetsnmptrapd.15 expected  
> to be defined in /sw/lib/libnetsnmp.15.dylib
> _uptime_string referenced from libnetsnmptrapd.15 expected to be  
> defined in /sw/lib/libnetsnmp.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.9zpqN1 failed, exit code 2
>
> Can anyone help me resolve this?

IIRC, the technical problem is a bug in libtool-1.5, so the technical
solution is either to patch ltmain.sh or to redo the libtool bits
using libtool2. This is a fix that would need to be made by the
maintainer. If you have any net-snmp-* packages presently installed,
especially any -dev ones, sometimes removing them while your are
building this package works around the problem.

dan

-- 
Daniel Macks
[email protected]
http://www.netspace.org/~dmacks



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to