NetBSD Problem Report #50831

From brad.harder@gmail.com  Thu Feb 18 23:08:57 2016
Return-Path: <brad.harder@gmail.com>
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 68A877A0F0
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 18 Feb 2016 23:08:57 +0000 (UTC)
Message-Id: <CABfrOT9Ykq-+YFqGtLi55dvEy372GcAiugCvSjXVxphAk3OjwQ@mail.gmail.com>
Date: Thu, 18 Feb 2016 15:08:53 -0800
From: bch <brad.harder@gmail.com>
Reply-To:
To: gnats-bugs@NetBSD.org
Subject: pkgsrc devel/nss fails to build

>Number:         50831
>Category:       pkg
>Synopsis:       ./pkgsrc/devel/nss fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 18 23:10:00 +0000 2016
>Closed-Date:    
>Last-Modified:  Fri Aug 26 02:35:01 +0000 2016
>Originator:     bch <brad.harder@gmail.com>
>Release:        NetBSD 7.99.26
>Organization:
	Method Logic Digital
>Environment:
System: NetBSD strathcona 7.99.26 NetBSD 7.99.26 (GENERIC.dtrace) #20:
Thu Feb 18 11:08:54 PST 2016
root@strathcona:/usr/obj/sys/arch/amd64/compile/GENERIC.dtrace amd64
Architecture: x86_64
Machine: amd64
>Description:
	Latest ./pkgsrc/devel/nss (3.22.1) fails to build.
>How-To-Repeat:

(in ./pkgsrc/devel/nss)


# make

[...]

gmake[2]: Entering directory
'/usr/pkgsrc/devel/nss/work/nss-3.22.1/nss/cmd/bltest'
gcc -o NetBSD7.99.26_64_OPT.OBJ/blapitest.o -c -O2 -I/usr/pkg/include
-I/usr/pkg/include/nspr -I/usr/include -O -fPIC -DPIC  -ansi -Wall
-Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-DXP_UNIX -UDEBUG -DNDEBUG -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/pkg/include/nspr
-I/usr/X11R6/include -I./../dist/NetBSD7.99.26_64_OPT.OBJ/include
-I./../dist/public/ -I./../dist/private/  -O -fPIC -DPIC  -ansi -Wall
-Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-DXP_UNIX -UDEBUG -DNDEBUG -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/pkg/include/nspr
-I/usr/X11R6/include -I./../dist/NetBSD7.99.26_64_OPT.OBJ/include
-I./../dist/public/ -I./../dist/private/ -I/usr/X11R6/include
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/include -I../../dist/public/
-I../../dist/private/ -I../../dist/public/nss -I../../dist/public/nspr
-I../../dist/public/libdbm
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/../public/security -I./include
-O -fPIC -DPIC  -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix
-DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG
-DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DNSS_USE_STATIC_LIBS
-I/usr/pkg/include/nspr -I/usr/X11R6/include
-I./../dist/NetBSD7.99.26_64_OPT.OBJ/include -I./../dist/public/
-I./../dist/private/ -I/usr/X11R6/include
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/include -I../../dist/public/
-I../../dist/private/ -I../../dist/public/nss -I../../dist/public/nspr
-I../../dist/public/libdbm
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/../public/security -I./include
-I../../nss/lib/softoken -I/usr/X11R6/include
-I../../../dist/NetBSD7.99.26_64_OPT.OBJ/include
-I../../../dist/public/nss -I../../../dist/private/nss
-I../../../dist/public/seccmd -I../../../dist/public/dbm
-I../../../dist/public/softoken  blapitest.c
gcc -o NetBSD7.99.26_64_OPT.OBJ/bltest -O2 -I/usr/pkg/include
-I/usr/pkg/include/nspr -I/usr/include -O -fPIC -DPIC  -ansi -Wall
-Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-DXP_UNIX -UDEBUG -DNDEBUG -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/pkg/include/nspr
-I/usr/X11R6/include -I./../dist/NetBSD7.99.26_64_OPT.OBJ/include
-I./../dist/public/ -I./../dist/private/  -O -fPIC -DPIC  -ansi -Wall
-Wno-switch -pipe -DNETBSD -Dunix -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-DXP_UNIX -UDEBUG -DNDEBUG -DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -I/usr/pkg/include/nspr
-I/usr/X11R6/include -I./../dist/NetBSD7.99.26_64_OPT.OBJ/include
-I./../dist/public/ -I./../dist/private/ -I/usr/X11R6/include
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/include -I../../dist/public/
-I../../dist/private/ -I../../dist/public/nss -I../../dist/public/nspr
-I../../dist/public/libdbm
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/../public/security -I./include
-O -fPIC -DPIC  -ansi -Wall -Wno-switch -pipe -DNETBSD -Dunix
-DHAVE_STRERROR -DHAVE_BSD_FLOCK -DXP_UNIX -UDEBUG -DNDEBUG
-DUSE_UTIL_DIRECTLY -DNO_NSPR_10_SUPPORT
-DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES -DNSS_USE_STATIC_LIBS
-I/usr/pkg/include/nspr -I/usr/X11R6/include
-I./../dist/NetBSD7.99.26_64_OPT.OBJ/include -I./../dist/public/
-I./../dist/private/ -I/usr/X11R6/include
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/include -I../../dist/public/
-I../../dist/private/ -I../../dist/public/nss -I../../dist/public/nspr
-I../../dist/public/libdbm
-I../../dist/NetBSD7.99.26_64_OPT.OBJ/../public/security -I./include
-I../../nss/lib/softoken -I/usr/X11R6/include
-I../../../dist/NetBSD7.99.26_64_OPT.OBJ/include
-I../../../dist/public/nss -I../../../dist/private/nss
-I../../../dist/public/seccmd -I../../../dist/public/dbm
-I../../../dist/public/softoken  NetBSD7.99.26_64_OPT.OBJ/blapitest.o
-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib/nspr
-Wl,-R/usr/pkg/lib/nspr -L/usr/lib -Wl,-R/usr/lib
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsmime.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libssl.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libnss.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libssl.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsectool.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkcs12.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkcs7.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libcerthi.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libcryptohi.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpk11wrap.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libcertdb.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libnsspki.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libnssdev.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libnssb.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libfreebl.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libdbm.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixtop.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixutil.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixsystem.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixcrlsel.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixmodule.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixstore.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixparams.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixchecker.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixpki.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixtop.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixresults.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpkixcertsel.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libnss.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libpk11wrap.a
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libcerthi.a
-Wl,-R/usr/pkg/lib/nspr -Wl,-R,/usr/pkg/lib/nss -L/usr/pkg/lib/nspr
-lplc4 -lplds4 -lnspr4 -Wl,-R/usr/pkg/lib/ -Wl,-R/usr/pkg/lib/
-Wl,-R/usr/pkg/lib/ `pkg-config --libs-only-L sqlite3` `pkg-config
--libs-only-l sqlite3` -L../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib
-lnssutil3 -L../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib -lplc4 -lplds4
-lnspr4  -lcompat
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(pkcs11c.o): In
function `NSC_GenerateKeyPair':
pkcs11c.c:(.text+0x719a): undefined reference to `PR_GetEnvSecure'
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(fipstokn.o):
In function `FC_Initialize':
fipstokn.c:(.text+0x20ff): undefined reference to `PR_GetEnvSecure'
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(lgglue.o): In
function `sftkdbCall_Shutdown':
lgglue.c:(.text+0x7b6): undefined reference to `PR_GetEnvSecure'
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(pkcs11.o): In
function `nsc_CommonInitialize':
pkcs11.c:(.text+0x563d): undefined reference to `PR_GetEnvSecure'
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(sdb.o): In
function `sdb_init':
sdb.c:(.text+0x1fe4): undefined reference to `PR_GetEnvSecure'
../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(sdb.o):sdb.c:(.text+0x2083):
more undefined references to `PR_GetEnvSecure' follow
../../coreconf/rules.mk:242: recipe for target
'NetBSD7.99.26_64_OPT.OBJ/bltest' failed
gmake[2]: *** [NetBSD7.99.26_64_OPT.OBJ/bltest] Error 1
gmake[2]: Leaving directory
'/usr/pkgsrc/devel/nss/work/nss-3.22.1/nss/cmd/bltest'
../coreconf/rules.mk:101: recipe for target 'libs' failed
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory '/usr/pkgsrc/devel/nss/work/nss-3.22.1/nss/cmd'
coreconf/rules.mk:101: recipe for target 'libs' failed
gmake: *** [libs] Error 2
*** Error code 2

Stop.
make[1]: stopped in /usr/pkgsrc/devel/nss
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/nss


>Fix:

>Release-Note:

>Audit-Trail:
From: bch <brad.harder@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/50831: pkgsrc devel/nss fails to build
Date: Mon, 7 Mar 2016 16:17:35 -0800

 This is still an issue for me even with a point-revision update x.x.21
 -> x.x.22.

 On 2/18/16, gnats-admin@netbsd.org <gnats-admin@netbsd.org> wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `pkg/50831'.
 > The individual assigned to look at your
 > report is: pkg-manager.
 >
 >>Category:       pkg
 >>Responsible:    pkg-manager
 >>Synopsis:       ./pkgsrc/devel/nss fails to build
 >>Arrival-Date:   Thu Feb 18 23:10:00 +0000 2016
 >
 >

From: SODA Noriyuki <soda@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: bch <brad.harder@gmail.com>
Subject: Re: pkg/50831: pkgsrc devel/nss fails to build
Date: Sat, 12 Mar 2016 15:43:32 +0900

 >>>>> On Thu, 18 Feb 2016 23:10:00 +0000 (UTC),
 	bch <brad.harder@gmail.com> said:

 >> Number:         50831
 >> Synopsis:       ./pkgsrc/devel/nss fails to build

 > ../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(pkcs11c.o): In function `NSC_GenerateKeyPair':
 > pkcs11c.c:(.text+0x719a): undefined reference to `PR_GetEnvSecure' ../../../dist/NetBSD7.99.26_64_OPT.OBJ/lib/libsoftokn.a(fipstokn.o):

 I have same problem with the latest pkgsrc (nss-3.22.2nb1),
 when I tried to built it by "cd /usr/pkgsrc/devel/nss && make".
 But when I built pkgsrc/www/firefox, devel/nss was successfully built
 via firefox's dependency.

 Some strange things have been happening here.
 -- 
 soda

State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 26 Aug 2016 02:35:01 +0000
State-Changed-Why:
Is this still an issue? I had no trouble building nss-3.25nb1 (at least) on
7.99.30.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.