Build error, crypto library linking problem?

<[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <46EC38B4700D1E4687FA25775157C67628E2ACE4D4@HE111524.emea1.cds.t-internal.com>
Hi!

I want to use NET-SNMP for setting up SNMP access eith DTLS. Since several days I'm trying to compile NET-SNMP. It seemed to be so easy following the manuals...

Following options where (last) used for configuring...

sudo ./configure --with-security-modules=tsm --with-transports=DTLSUDP --with-default-snmp-version="3" --with-sys-contact="@@no.where" --with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp" --with-openssl="/usr/local/ssl/bin" --disable-snmpv1 --disable-snmpv2c

which lead to...

---------------------------------------------------------
            Net-SNMP configuration summary:
---------------------------------------------------------

  SNMP Versions Supported:    3
  Building for:               linux
  Net-SNMP Version:           5.7.2
  Network transport support:  Callback Unix Alias TCP UDP DTLSUDP IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase TLSBase
  SNMPv3 Security Modules:     tsm usm
  Agent MIB code:             default_modules =>  snmpv3mibs mibII ucd_snmp notification notification-log-mib target agent_mibs agentx disman/event disman/schedule utilities host
  MYSQL Trap Logging:         unavailable
  Embedded Perl support:      enabled
  SNMP Perl modules:          building -- embeddable
  SNMP Python modules:        disabled
  Crypto support from:        crypto
  Authentication support:     MD5 SHA1
  Encryption support:         DES AES
  Local DNSSEC validation:    disabled

---------------------------------------------------------


During the build some errors appear which might be dependant to the crypto library...

...
libtool: compile:  gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -fno-strict-aliasing -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.18/CORE -c snmpd.c -o snmpd.o >/dev/null 2>&1
/bin/bash ../libtool  --mode=link gcc -fno-strict-aliasing -g -O2 -Ulinux -Dlinux=linux  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.18/CORE   -o snmpd snmpd.lo   libnetsnmpagent.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lm  -Wl,-E
libtool: link: gcc -fno-strict-aliasing -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.18/CORE -o .libs/snmpd .libs/snmpd.o -Wl,-E  ./.libs/libnetsnmpagent.so -L/usr/local/lib -L/usr/lib/perl/5.18/CORE ./.libs/libnetsnmpmibs.so /home/update/net-snmp-5.7.2~dfsg/agent/.libs/libnetsnmpagent.so /home/update/net-snmp-5.7.2~dfsg/snmplib/.libs/libnetsnmp.so -lperl -ldl -lpthread -lc -lcrypt ../snmplib/.libs/libnetsnmp.so -lssl -lcrypto -lm
./.libs/libnetsnmpagent.so: undefined reference to `netsnmp_unix_parse_security'
./.libs/libnetsnmpagent.so: undefined reference to `netsnmp_udp_parse_security'
./.libs/libnetsnmpagent.so: undefined reference to `netsnmp_udp_getSecName'
./.libs/libnetsnmpagent.so: undefined reference to `netsnmp_unix_getSecName'
collect2: error: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/update/net-snmp-5.7.2~dfsg/agent'
make: *** [subdirs] Error 1

How can this be resolved?

OS: Ubuntu 14.04 (tried on version: 64 bit server, 32 bit server, 32 bit desktop)

Regards,
Guenther

------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.