NetBSD Problem Report #53274

From www@NetBSD.org  Fri May 11 08:27:18 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 E12917A1B7
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 11 May 2018 08:27:17 +0000 (UTC)
Message-Id: <20180511082716.C86F17A1E5@mollari.NetBSD.org>
Date: Fri, 11 May 2018 08:27:16 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: x11/qt5-qtbase does not build on Solaris 11.3
X-Send-Pr-Version: www-1.0

>Number:         53274
>Category:       pkg
>Synopsis:       x11/qt5-qtbase does not build on Solaris 11.3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    solaris-pkg-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 11 08:30:00 +0000 2018
>Last-Modified:  Sun Jul 08 10:36:43 +0000 2018
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
Building x11/qt5-qtbase on Solaris 11.3 fails with

g++ -shared -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg-hrz/20180102/lib -Wl,-R/opt/pkg-hrz/20180102/lib -Wl,--no-undefined -Wl,-O1 -pthread -Wl,-rpath,/opt/pkg-hrz/20180102/qt5/lib -shared -o libqsqlite.so .obj/qsql_sqlite.o .obj/smain.o .obj/moc_qsql_sqlite_p.o   -L/opt/pkg-hrz/20180102/lib -L/opt/pkgsrc/pkg-hrz/pkgsrc/x11/qt5-qtbase/work.pkgsrc-sol11i86/qtbase-everywhere-src-5.10.1/lib -lQt5Sql -lQt5Core -lpthread -lrt -lsqlite3 
Undefined                       first referenced
 symbol                             in file
sqlite3_column_table_name16         .obj/qsql_sqlite.o
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status


although sqlite3-3.23.1nb1 is installed and seems to provide the symbol in question:

$ nm /opt/pkg-hrz/20180102/lib/libsqlite3.so.0.8.6 | grep sqlite3_column_table_name16
[2666]  |              289328|                  17|FUNC |GLOB |0    |21     |sqlite3_column_table_name16

and even here:

$ nm /opt/pkg-hrz/20180102/lib/libsqlite3.a | grep sqlite3_column_table_name16
[1644]  |               52128|                  15|FUNC |GLOB |0    |1      |sqlite3_column_table_name16

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Joerg Sonnenberger <joerg@bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53274: x11/qt5-qtbase does not build on Solaris 11.3
Date: Fri, 11 May 2018 14:29:53 +0200

 On Fri, May 11, 2018 at 08:30:00AM +0000, joern.clausen@uni-bielefeld.de wrote:
 > g++ -shared -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -L/opt/pkg-hrz/20180102/lib -Wl,-R/opt/pkg-hrz/20180102/lib -Wl,--no-undefined -Wl,-O1 -pthread -Wl,-rpath,/opt/pkg-hrz/20180102/qt5/lib -shared -o libqsqlite.so .obj/qsql_sqlite.o .obj/smain.o .obj/moc_qsql_sqlite_p.o   -L/opt/pkg-hrz/20180102/lib -L/opt/pkgsrc/pkg-hrz/pkgsrc/x11/qt5-qtbase/work.pkgsrc-sol11i86/qtbase-everywhere-src-5.10.1/lib -lQt5Sql -lQt5Core -lpthread -lrt -lsqlite3 
 > Undefined                       first referenced
 >  symbol                             in file
 > sqlite3_column_table_name16         .obj/qsql_sqlite.o

 Does /usr/lib/amd64 by chance contain another sqlite3 instance?

 Joerg

From: Joern Clausen <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
 pkgsrc-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/53274: x11/qt5-qtbase does not build on Solaris 11.3
Date: Fri, 11 May 2018 15:41:39 +0200

 On 05/11/18 14:35, Joerg Sonnenberger wrote:
 >   Does /usr/lib/amd64 by chance contain another sqlite3 instance?

 Yes, there is also a libsqlite3.so.0.8.6, but it does not export that 
 symbol. And according to

 $ bmake show-var VARNAME=BUILDLINK_PREFIX.sqlite3
 /usr

 it seems to get picked up by qtbase.

 After adding sqlite3 to PREFER_PKGSRC in mk.conf, qt5-qtbase compiles, 
 but installation fails with exactly the same symptoms described in 
 pkg/53249 for NetBSD 7.1.1.

 -- 
 Jörn Clausen
 Plattformen & Serverdienste
 BITS - Bielefelder IT-Servicezentrum

Responsible-Changed-From-To: pkg-manager->solaris-pkg-people
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sun, 08 Jul 2018 10:36:43 +0000
Responsible-Changed-Why:
Solaris issue


>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.