Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2014 14:29:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 191342] New: net-mgmt/net-snmp will not build on 10.0
Message-ID:  <bug-191342-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191342

            Bug ID: 191342
           Summary: net-mgmt/net-snmp will not build on 10.0
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: Normal
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: paul@dokas.name

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@

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191342-13>