Bug 238097

Summary: net-mgmt/net-snmp: Fails to configure when TLS=ON
Product: Ports & Packages Reporter: Grzegorz Junka <list1>
Component: Individual Port(s)Assignee: Ryan Steinmetz <zi>
Status: Closed DUPLICATE    
Severity: Affects Some People CC: w.schwarzenfeld
Priority: --- Keywords: needs-patch, needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (zi)
koobs: merge-quarterly?
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
pkg version -v
none
net-snmp build log none

Description Grzegorz Junka 2019-05-24 09:16:11 UTC
Logs:

checking for DTLSv1_method in -lssl... yes
checking for SSL_library_init in -lssl... no
configure: error: The DTLS based transports require the libssl library from OpenSSL to be available
===>  Script "configure" failed unexpectedly.
Please report the problem to zi@FreeBSD.org [maintainer] and attach the
"/wrkdirs/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.7.3/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Stop.
make: stopped in /usr/ports/net-mgmt/net-snmp
=>> Cleaning up wrkdir
===>  Cleaning for net-snmp-5.7.3_19
build of net-mgmt/net-snmp | net-snmp-5.7.3_19 ended at Fri May 24 09:06:16 UTC 2019
build time: 00:00:42
!!! build failure encountered !!!
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2019-05-24 09:20:42 UTC
Thank you for your report Grzegorz

Could you please include:

- system uname -a output

And as attachments:

- /etc/make.conf contents (sanitized if necessary)
- full build log
- pkg version -v output
Comment 2 Grzegorz Junka 2019-05-24 11:06:17 UTC
This defect is easy to reproduce.

#1 Create new options folder

root@someserv:/usr/local/etc/poudriere.d # mkdir 12rel0-gui-snmptest2-options

#2 Edit options, leave defaults but only enable TLS

poudriere options -c -j 12rel0 -p gui -z snmptest2 net-mgmt/net-snmp

root@someserv:/usr/local/etc/poudriere.d # cat 12rel0-gui-snmptest2-options/net-mgmt_net-snmp/options 
# This file is auto-generated by 'make config'.
# Options for net-snmp-5.7.3_19
_OPTIONS_READ=net-snmp-5.7.3_19
_FILE_COMPLETE_OPTIONS_LIST=AX_DISABLE_TRAP AX_SOCKONLY DOCS DUMMY IPV6 JAIL MFD_REWRITES MYSQL NEWSYSLOG PERL PERL_EMBEDDED PYTHON SMUX TKMIB TLS UNPRIVILEGED
OPTIONS_FILE_UNSET+=AX_DISABLE_TRAP
OPTIONS_FILE_UNSET+=AX_SOCKONLY
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_SET+=DUMMY
OPTIONS_FILE_SET+=IPV6
OPTIONS_FILE_UNSET+=JAIL
OPTIONS_FILE_UNSET+=MFD_REWRITES
OPTIONS_FILE_UNSET+=MYSQL
OPTIONS_FILE_SET+=NEWSYSLOG
OPTIONS_FILE_SET+=PERL
OPTIONS_FILE_SET+=PERL_EMBEDDED
OPTIONS_FILE_UNSET+=PYTHON
OPTIONS_FILE_SET+=SMUX
OPTIONS_FILE_UNSET+=TKMIB
OPTIONS_FILE_SET+=TLS
OPTIONS_FILE_UNSET+=UNPRIVILEGED

#3 Then build

poudriere bulk -j 12rel0 -p gui -z snmptest2 net-mgmt/net-snmp

Then the build error occurs.

Requested info:

Ports tree last time updated at 18 May 13:29 gui/

FreeBSD crayon2.yoonka.com 12.0-RELEASE-p4 FreeBSD 12.0-RELEASE-p4 GENERIC  amd64

root@someserv:/usr/local/poudriere/ports # cat /etc/make.conf 
QT4_OPTIONS= CUPS QGTKSTYLE NAS

# Enable Tahoma in x11-fonts/webfonts
.if ${.CURDIR:M*/x11-fonts/webfonts}
WITH_MSWINDOWS_LICENSE=yes
.endif

WITH_CCACHE_BUILD=yes
CCACHE_DIR=/var/cache/ccache

I will add pkg version and build log as attachments in a sec.
Comment 3 Grzegorz Junka 2019-05-24 11:07:03 UTC
Created attachment 204590 [details]
pkg version -v
Comment 4 Grzegorz Junka 2019-05-24 11:08:34 UTC
Created attachment 204591 [details]
net-snmp build log
Comment 5 Walter Schwarzenfeld freebsd_triage 2019-08-15 08:43:01 UTC
Is fixed with ports r506141 (bugs # 228898).

(If there still problems, please reopen).

*** This bug has been marked as a duplicate of bug 228898 ***