[MacPorts] #19771: net-snmp @5.4.2.1 fails to build on Tiger/10.4

MacPorts noreply at macports.org
Tue May 26 15:30:08 PDT 2009


#19771: net-snmp @5.4.2.1 fails to build on Tiger/10.4
----------------------------------+-----------------------------------------
 Reporter:  pkrohn@…              |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:                                       
Component:  ports                 |     Version:  1.7.1                                
 Keywords:                        |        Port:  net-snmp @5.4.2.1                    
----------------------------------+-----------------------------------------
 I installed MacPorts on Mac OS X 10.4 Server to install net-snmp. It fails
 to build, but only when the +server variant is selected. The full error
 output is at the end of this report.

 There is a workaround:


 - attempt to install as usual; wait for the build to fail

 - create a symlink from the built but not yet installed "missing" library:
 {{{
 $ sudo ln -s /opt/local/var/macports/software/net-
 snmp/5.4.2.1_1/opt/local/lib/libnetsnmpmibs.15.1.2.dylib
 /opt/local/lib/libnetsnmpmibs.15.dylib
 }}}
 - attempt to build again, ie 'sudo port install net-snmp +server'; wait
 for it to fail

 - remove the symlink at /opt/local/lib/libnetsnmpmibs.15.dylib

 - port install now succeeds.

 The build works without error on MacOS X 10.5/Leopard.

 Original 'port install' output follows:

 {{{
 osxadmin$ sudo port install net-snmp +server
 --->  Fetching net-snmp
 --->  Verifying checksum(s) for net-snmp
 --->  Extracting net-snmp
 --->  Applying patches to net-snmp
 --->  Configuring net-snmp
 --->  Building net-snmp
 Error: Target org.macports.build returned: shell command " cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-snmp-5.4.2.1" && make all "
 returned error 2
 Command output: cp SNMP.bs ../blib/arch/auto/SNMP/SNMP.bs
 chmod 644 ../blib/arch/auto/SNMP/SNMP.bs
 Manifying ../blib/man3/SNMP.3
 cp TrapReceiver.pm ../blib/lib/NetSNMP/TrapReceiver.pm
 AutoSplitting ../blib/lib/NetSNMP/TrapReceiver.pm
 (../blib/lib/auto/NetSNMP/TrapReceiver)
 /opt/local/bin/perl /opt/local/lib/perl5/5.8.9/ExtUtils/xsubpp -prototypes
 -typemap /opt/local/lib/perl5/5.8.9/ExtUtils/typemap -typemap typemap
 TrapReceiver.xs > TrapReceiver.xsc && mv TrapReceiver.xsc TrapReceiver.c
 /usr/bin/gcc-4.0 -c  -I. -I../../include -DNETSNMP_ENABLE_IPV6 -O2
 -Udarwin8 -Ddarwin8=darwin8 -fno-common -DPERL_DARWIN -I/opt/local/include
 -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include
 -I/opt/local/include -I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE
 -I/opt/local/include -I/opt/local/include -I. -I/opt/local/include -fno-
 common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-
 aliasing -pipe -I/usr/local/include -I/opt/local/include -O3
 -DVERSION=\"5.04021\" -DXS_VERSION=\"5.04021\"
 "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE"   TrapReceiver.c
 In file included from TrapReceiver.xs:6:
 ppport.h:227:1: warning: "PERL_UNUSED_DECL" redefined
 In file included from TrapReceiver.xs:3:
 /opt/local/lib/perl5/5.8.9/darwin-2level/CORE/perl.h:204:1: warning: this
 is the location of the previous definition
 TrapReceiver.xs: In function 'perl_trapd_handler':
 TrapReceiver.xs:77: warning: pointer targets in passing argument 1 of
 'Perl_newSVpv' differ in signedness
 TrapReceiver.xs:80: warning: pointer targets in passing argument 1 of
 'Perl_newSVpv' differ in signedness
 TrapReceiver.xs:86: warning: pointer targets in passing argument 1 of
 'Perl_newSVpv' differ in signedness
 TrapReceiver.xs:168: warning: pointer targets in passing argument 1 of
 'Perl_newSVpvn' differ in signedness
 Running Mkbootstrap for NetSNMP::TrapReceiver ()
 chmod 644 TrapReceiver.bs
 rm -f ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle
 LD_RUN_PATH="/opt/local/lib:/opt/local/lib/perl5/5.8.9/darwin-2level/CORE"
 env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.0  -L/opt/local/lib
 -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib
 -L/opt/local/lib TrapReceiver.o  -o
 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle      \
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../apps/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../apps
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../agent/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../agent
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../agent/helpers/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../agent/helpers
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../snmplib/.libs
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../snmplib -lnetsnmptrapd -lnetsnmpagent
 -lnetsnmp    \

 /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning can't open
 dynamic library: /opt/local/lib/libnetsnmpmibs.15.dylib referenced from:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib
 (checking for undefined symbols may be affected) (No such file or
 directory, errno = 2)
 /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning can't open
 dynamic library: /opt/local/lib/libnetsnmphelpers.15.dylib referenced
 from:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_net_net-snmp/work/net-
 snmp-5.4.2.1/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib
 (checking for undefined symbols may be affected) (No such file or
 directory, errno = 2)
 /usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: Undefined symbols:
 _log_notification referenced from libnetsnmptrapd.15 expected to be
 defined in /opt/local/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
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/19771>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list