NetBSD Problem Report #53094

From www@NetBSD.org  Mon Mar 12 20:22:33 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A7CF47A1DC
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 12 Mar 2018 20:22:33 +0000 (UTC)
Message-Id: <20180312202232.463097A227@mollari.NetBSD.org>
Date: Mon, 12 Mar 2018 20:22:32 +0000 (UTC)
From: jun@soum.co.jp
Reply-To: jun@soum.co.jp
To: gnats-bugs@NetBSD.org
Subject: dillo: undefined reference to `SSL_library_init' with OpenSSL 1.1.0g/201803081450Z
X-Send-Pr-Version: www-1.0

>Number:         53094
>Category:       pkg
>Synopsis:       dillo: undefined reference to `SSL_library_init' with OpenSSL 1.1.0g/201803081450Z
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 12 20:25:00 +0000 2018
>Closed-Date:    Sat Jul 07 14:13:06 +0000 2018
>Last-Modified:  Sat Jul 07 14:13:06 +0000 2018
>Originator:     Jun Ebihara
>Release:        NetBSD 8.99.12 201803081450Z
>Organization:
SOUM Corporation
>Environment:
NetBSD rpi 8.99.12 NetBSD 8.99.12 (RPI2) #0: Thu Mar  8 13:38:02 UTC 2018  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/RPI2 evbarm

>Description:
pkgsrc/www/dillo ssl support failed with openssl 1.1.0.

conftest.c:(.text.startup+0xc): undefined reference to `SSL_library_init'

with 
/etc/mk.conf:
PKG_OPTIONS.dillo=inet6 ssl

rpi# openssl version
OpenSSL 1.1.0g  2 Nov 2017

rpi# pkg_info |grep openssl
mozilla-rootcerts-openssl-2.1 Wedge for installing and managing mozilla-rootcerts
openssl-1.0.2nnb1   Secure Socket Layer and cryptographic library



configure:6005: checking for SSL_library_init in -lssl
configure:6030: gcc -o conftest -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/us
r/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/
freetype2 -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/include -I/usr/X11R7
/include -I/usr/X11R7/include/libdrm -I/usr/X11R7/include/freetype2 -I/usr/local
/include -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/X11R
7/lib -Wl,-R/usr/X11R7/lib -L/usr/local/lib conftest.c -lssl -lcrypto  >&5
/var/tmp//cce0xRkE.o: In function `main':
conftest.c:(.text.startup+0xc): undefined reference to `SSL_library_init'
configure:6030: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "dillo"
| #define PACKAGE_TARNAME "dillo"
| #define PACKAGE_VERSION "3.0.5"
| #define PACKAGE_STRING "dillo 3.0.5"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "dillo"
| #define VERSION "3.0.5"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define SIZEOF_CHAR 1
| #define SIZEOF_SHORT 2
| #define SIZEOF_LONG 4
| #define SIZEOF_INT 4
| #define SIZEOF_VOID_P 4
| #define HAVE_GETHOSTBYNAME 1
| #define HAVE_SETSOCKOPT 1
| #define ENABLE_JPEG 1
| #define ENABLE_PNG 1
| #define ENABLE_GIF 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char SSL_library_init ();
| int
| main ()
| {
| return SSL_library_init ();
|   ;
|   return 0;
| }
configure:6039: result: no
configure:6055: WARNING: *** No libssl found. Disabling ssl support.***

>How-To-Repeat:
1. NetBSD 8.99.12 201803081450Z

openssl version
OpenSSL 1.1.0g  2 Nov 2017

2. pkg_add pkgsrc/security/openssl

openssl-1.0.2nnb1   Secure Socket Layer and cryptographic library

3. /etc/mk.conf
PKG_OPTIONS.dillo=inet6 ssl

4. cd /usr/pkgsrc/www/dillo

5. make package

6. check log
pkgsrc/www/dillo/work.earmv6hf/dillo-3.0.5/config.log

>Fix:
apply this change:
http://mail-index.netbsd.org/pkgsrc-changes/2018/03/24/msg173237.html

earmv6hf/earmv7hf needs CFLAGS=-O0 

Report Dillo-dev mailing list.
 http://lists.dillo.org/pipermail/dillo-dev/2018-March/011080.html

Patch commited to dillo:
 http://lists.dillo.org/pipermail/dillo-dev/2018-April/011083.html

https://hg.dillo.org/dillo/rev/b171b8610400

 changeset 4662:b171b8610400 3.0.5 tip

 Support OpenSSL 1.1.0

 taken-from: pkgsrc (Ryo ONODERA)
 submitted-by: Jun Ebihara <jun@soum.co.jp>
 author 	Johannes Hofmann <Johannes.Hofmann@gmx.de>
 date 	Fri, 06 Apr 2018 09:34:31 +0200 (17 hours ago)
 parents 	ede97d37c909

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->needs-pullups
State-Changed-By: jun@NetBSD.org
State-Changed-When: Sat, 24 Mar 2018 22:13:45 +0000
State-Changed-Why:
SSL support works fine on OpenSSL 1.1.0g  2 Nov 2017


State-Changed-From-To: needs-pullups->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 07 Jul 2018 14:13:06 +0000
State-Changed-Why:
pkgsrc-2018Q2 out


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.