Bug 191342 - net-mgmt/net-snmp will not build on 10.0
Summary: net-mgmt/net-snmp will not build on 10.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Many People
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-24 14:29 UTC by paul
Modified: 2014-06-25 12:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description paul 2014-06-24 14:29:17 UTC
Attempting to build net-mgmt/net-snmp on a FreeBSD 10.0 amd64 host does not work:

  ,,,
  libtool: compile:  cc -I../include -I. -I../agent -I../agent/helpers -I../agent/mibgroup -I../snmplib -I/usr/local/include -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -fno-strict-aliasing -pipe -I/usr/local/include -D_WANT_IFADDR -Ufreebsd10 -Dfreebsd10=freebsd10 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.16/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/usr/local/lib/perl5/5.16/mach/CORE -c snmpusm.c -o snmpusm.o >/dev/null 2>&1
  /bin/sh ../libtool --mode=link cc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -fno-strict-aliasing -pipe -I/usr/local/include -D_WANT_IFADDR -Ufreebsd10 -Dfreebsd10=freebsd10  -DAPPLLIB_EXP="/usr/local/lib/perl5/5.16/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include  -I/usr/local/lib/perl5/5.16/mach/CORE -o snmpusm snmpusm.lo -L/usr/local/lib -lm -lkvm -ldevstat -lpkg -L/usr/local/lib ../snmplib/libnetsnmp.la  -lelf -lssp_nonshared
  libtool: link: cc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -O2 -fno-strict-aliasing -pipe -I/usr/local/include -D_WANT_IFADDR -Ufreebsd10 -Dfreebsd10=freebsd10 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.16/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/usr/local/lib/perl5/5.16/mach/CORE -o .libs/snmpusm .libs/snmpusm.o  -L/usr/local/lib -lm -lkvm -ldevstat -lpkg ../snmplib/.libs/libnetsnmp.so -lelf -lssp_nonshared  -Wl,-rpath -Wl,/usr/local/lib
  /usr/bin/ld: @: invalid DSO for symbol `BN_bn2bin' definition
  /usr/local/lib/libcrypto.so.8: could not read symbols: Bad value
  cc: error: linker command failed with exit code 1 (use -v to see invocation)
  *** Error code 1

  Stop.
  make[3]: stopped in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2/apps
  *** Error code 1

  Stop.
  make[2]: stopped in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.2
  *** Error code 1

  Stop.
  make[1]: stopped in /usr/ports/net-mgmt/net-snmp
  *** Error code 1

  Stop.
  make: stopped in /usr/ports/net-mgmt/net-snmp


The problem seems to be that -lcrypto is missing from the apps/Makefile.  Adding it causes net-mgmt/net-snmp to build correctly.

How-To-Repeat:
Attempt to build net-mgmt/net-snmp on a 10.0 machines

Fix:
*** ./work/net-snmp-5.7.2/apps/Makefile.in	Tue Jun 24 14:24:11 2014
--- ./work/net-snmp-5.7.2/apps/Makefile.in.orig	Tue Oct  9 22:28:58 2012
***************
*** 85,91 ****
  MYSQL_INCLUDES	= @MYSQL_INCLUDES@
  
  VAL_LIBS	= @VAL_LIBS@
! LIBS		= $(USELIBS) $(VAL_LIBS) -lcrypto @LIBS@
  PERLLDOPTS_FOR_APPS = @PERLLDOPTS_FOR_APPS@
  PERLLDOPTS_FOR_LIBS = @PERLLDOPTS_FOR_LIBS@
  
--- 85,91 ----
  MYSQL_INCLUDES	= @MYSQL_INCLUDES@
  
  VAL_LIBS	= @VAL_LIBS@
! LIBS		= $(USELIBS) $(VAL_LIBS) @LIBS@
  PERLLDOPTS_FOR_APPS = @PERLLDOPTS_FOR_APPS@
  PERLLDOPTS_FOR_LIBS = @PERLLDOPTS_FOR_LIBS@
Comment 1 Ryan Steinmetz freebsd_committer freebsd_triage 2014-06-25 12:03:24 UTC
This was resolved with the most recent commit to revision 12 of the port.