New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #21166 (assigned defect)

Opened 4 years ago

Last modified 3 years ago

Cannot compile and install net-snmp 5.4.2.1_1 from macports

Reported by: james.applemac@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: net-snmp

Description (last modified by toby@…) (diff)

port install net-snmp
Port command started with PID 1820
--->  Computing dependencies for net-snmp
--->  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" && /usr/bin/make -j2 all " returned error 2
Command output: /bin/sh ../../libtool  --mode=compile /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9  -fno-common -DPERL_D
ARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/include/db47  -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE   -c -o table_data.lo table_data.c
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-al
iasing -pipe -I/usr/local/include -I/opt/local/include -I/opt/local/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_container.c  -fno-common -DPIC -o .libs/table_container.o
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_data.c  -fno-common -DPIC -o .libs/table_data.o
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_container.c -o table_container.o >/dev/null 2>&1
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_data.c -o table_data.o >/dev/null 2>&1
/bin/sh ../../libtool  --mode=compile /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9  -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/include/db47  -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE   -c -o table_dataset.lo table_dataset.c
/bin/sh ../../libtool  --mode=compile /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9  -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/include/db47  -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE   -c -o table_iterator.lo table_iterator.c
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_dataset.c  -fno-common -DPIC -o .libs/table_dataset.o
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_iterator.c  -fno-common -DPIC -o .libs/table_iterator.o
table_dataset.c: In function 'netsnmp_table_data_set_helper_handler':
table_dataset.c:514: warning: pointer targets in passing argument 2 of 'netsnmp_table_get_or_create_row_stash' differ in signedness
table_dataset.c:694: warning: pointer targets in assignment differ in signedness
table_dataset.c: In function 'netsnmp_set_row_column':
table_dataset.c:1255: warning: pointer targets in passing argument 2 of 'memdup' differ in signedness
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_iterator.c -o table_iterator.o >/dev/null 2>&1
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_dataset.c -o table_dataset.o >/dev/null 2>&1
/bin/sh ../../libtool  --mode=compile /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9  -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/include/db47  -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE   -c -o table_row.lo table_row.c
/bin/sh ../../libtool  --mode=compile /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9  -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/include/db47  -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE   -c -o table_tdata.lo table_tdata.c
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_row.c  -fno-common -DPIC -o .libs/table_row.o
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_tdata.c  -fno-common -DPIC -o .libs/table_tdata.o
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_row.c -o table_row.o >/dev/null 2>&1
/bin/sh ../../libtool  --mode=compile /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9  -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/include/db47  -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE   -c -o watcher.lo watcher.c
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c table_tdata.c -o table_tdata.o >/dev/null 2>&1
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c watcher.c  -fno-common -DPIC -o .libs/watcher.o
 /usr/bin/gcc-4.0 -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/opt/local/include -I/opt/local/include -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9 -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/include/db47 -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE -c watcher.c -o watcher.o >/dev/null 2>&1
/bin/sh ../../libtool  --mode=link /usr/bin/gcc-4.0 -DNETSNMP_ENABLE_IPV6 -O2 -arch i386 -Udarwin9 -Ddarwin9=darwin9  -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/include/db47  -I/opt/local/lib/perl5/5.8.9/darwin-thread-multi-2level/CORE   -rpath /opt/local/lib -version-info 16:2:1 -o libnetsnmphelpers.la all_helpers.lo baby_steps.lo bulk_to_next.lo cache_handler.lo debug_handler.lo instance.lo mode_end_call.lo multiplexer.lo null.lo old_api.lo read_only.lo row_merge.lo scalar.lo scalar_group.lo serialize.lo stash_cache.lo stash_to_next.lo table.lo table_array.lo table_container.lo table_data.lo table_dataset.lo table_iterator.lo table_row.lo table_tdata.lo watcher.lo ../libnetsnmpagent.la ../../snmplib/libnetsnmp.la -L/opt/local/lib -L/opt/local/lib  
libtool: link: cannot find the library `../libnetsnmpagent.la' or unhandled argument `../libnetsnmpagent.la'
make[2]: *** [libnetsnmphelpers.la] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1
Error: Status 1 encountered during processing.
--->  Executing: /opt/local/bin/port install net-snmp

Change History

comment:1 Changed 4 years ago by toby@…

  • Priority changed from High to Normal
  • Keywords net-snmp removed
  • Version 1.8.0 deleted
  • Description modified (diff)

comment:2 Changed 4 years ago by toby@…

  • Owner changed from macports-tickets@… to opendarwin.org@…

comment:3 Changed 3 years ago by ryandesign@…

  • Status changed from new to assigned
  • Owner changed from opendarwin.org@… to ryandesign@…

I can't reproduce this with the latest version (5.5). Please sudo port selfupdate to get the latest portfiles, then try again and let me know how it goes. If you still see the error, please provide complete debug output.

Note: See TracTickets for help on using tickets.