NetBSD Problem Report #39181
From www@NetBSD.org Mon Jul 21 13:52:04 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 8807263BD15
for <gnats-bugs@gnats.netbsd.org>; Mon, 21 Jul 2008 13:52:04 +0000 (UTC)
Message-Id: <20080721135204.5A79C63BD06@narn.NetBSD.org>
Date: Mon, 21 Jul 2008 13:52:04 +0000 (UTC)
From: srcshelton@gmail.com
Reply-To: srcshelton@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkgtools/pkg_install-20080718 fails to compile due to unresolved X509_check_ca symbol
X-Send-Pr-Version: www-1.0
>Number: 39181
>Category: pkg
>Synopsis: pkgtools/pkg_install-20080718 fails to compile due to unresolved X509_check_ca symbol
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: joerg
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 21 13:55:00 +0000 2008
>Closed-Date: Tue Jul 22 10:56:17 +0000 2008
>Last-Modified: Sun Jul 27 16:25:01 +0000 2008
>Originator: Stuart Shelton
>Release: pkgsrc latest from CVS
>Organization:
>Environment:
IRIX 6.5.30m; MIPSpro Compilers: Version 7.4.4m
>Description:
===> build-message [pkg_install-20080718] ===> Building for pkg_install-20080718
...
cc -Wl,-v,-s,-x,-n32,-mips4,-rdata_shared,-allow_jump_at_eop,-rpath,/usr/bsd/lib -L/usr/bsd/var/tmp/pkgtools/pkg_install/work/bzip2 -L/usr/bsd/var/tmp/pkgtools/pkg_install/work/libarchive/.libs -L/usr/bsd/var/tmp/pkgtools/pkg_install/work/libfetch -L/usr/bsd/var/tmp/pkgtools/pkg_install/work/libnbcompat -lmp -n32 -L/usr/lib32 -Wl,-rpath,/usr/lib32 -Wl,-rpath,/usr/bsd/lib32 -Wl,-rpath,/usr/bsd/lib -L../lib -o pkg_add main.o perform.o -linstall -lfetch -lcrypto -larchive -lbz2 -lz -lcrypto -ltermcap -ldb -lnbcompat -lmp
...
ld32: ERROR 33 : Unresolved text symbol "X509_check_ca" -- 1st referenced by ../lib/libinstall.a(pkcs7.o).
ld32: INFO 152: Output file removed because of error.
*** Error code 2
Stop.
bmake: stopped in /usr/bsd/var/tmp/pkgtools/pkg_install/work/pkg_install-20080718/add
*** Error code 1
>How-To-Repeat:
Nothing installed in pkgsrc or system libraries contain a symbol named "X509_check_ca", although SSLeay and gnutls contain other X509_check_* functions.
>Fix:
I'm assuming that this is a pkg_install issue rather than a libbncompat issue?
>Release-Note:
>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/39181: pkgtools/pkg_install-20080718 fails to compile due
to unresolved X509_check_ca symbol
Date: Mon, 21 Jul 2008 16:51:53 +0200
On Mon, Jul 21, 2008 at 01:55:01PM +0000, srcshelton@gmail.com wrote:
> Nothing installed in pkgsrc or system libraries contain a symbol named
> "X509_check_ca", although SSLeay and gnutls contain other X509_check_*
> functions.
Is this OpenSSL and if yes, which version?
Joerg
Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Mon, 21 Jul 2008 14:56:02 +0000
Responsible-Changed-Why:
Over to maintainer.
From: "Stuart Shelton" <srcshelton@gmail.com>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39181: pkgtools/pkg_install-20080718 fails to compile due to unresolved X509_check_ca symbol
Date: Mon, 21 Jul 2008 17:43:14 +0100
> Is this OpenSSL and if yes, which version?
This problem occurs on both IRIX systems: one doesn't have pkgsrc
OpenSSL installed (although system OpenSSL is 0.9.7e-sgipl1) and the
other has pkgsrc OpenSSL 0.9.8h installed.
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/39181: pkgtools/pkg_install-20080718 fails to compile due
to unresolved X509_check_ca symbol
Date: Mon, 21 Jul 2008 22:03:00 +0200
On Mon, Jul 21, 2008 at 04:45:03PM +0000, Stuart Shelton wrote:
> This problem occurs on both IRIX systems: one doesn't have pkgsrc
> OpenSSL installed (although system OpenSSL is 0.9.7e-sgipl1) and the
> other has pkgsrc OpenSSL 0.9.8h installed.
Do you have X509_check_purpose on both?
Joerg
From: Stuart Shelton <srcshelton@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: joerg@NetBSD.org,
gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39181: pkgtools/pkg_install-20080718 fails to compile due to unresolved X509_check_ca symbol
Date: Mon, 21 Jul 2008 22:58:52 +0100
> On Mon, Jul 21, 2008 at 04:45:03PM +0000, Stuart Shelton wrote:
>> This problem occurs on both IRIX systems: one doesn't have pkgsrc
>> OpenSSL installed (although system OpenSSL is 0.9.7e-sgipl1) and the
>> other has pkgsrc OpenSSL 0.9.8h installed.
>
> Do you have X509_check_purpose on both?
The system OpenSSL-0.9.7e-sgipl1 has:
# nm /usr/lib32/libcrypto.so | grep check_purpose
[2316] | 24788896| 260|FUNC |GLOB |DEFAULT |MIPS_TEXT|
X509_check_purpose
NetBSD/pkgsrc OpenSSL-0.9.8h has:
# nm /usr/bsd/lib/libssl.so | grep check
[354] | 4251080| 260|FUNC |GLOB |DEFAULT |UNDEF |
X509_check_purpose
# nm /usr/bsd/lib/libcrypto.so | grep check
[2988] | 5321792| 260|FUNC |GLOB |DEFAULT |MIPS_TEXT|
X509_check_purpose
... so libcrypto has this symbol on both machines, neither of which
are now able to build pkg_install. It's worth noting that, with the
right patches, the last pkg_install did work (although download-
vulnerability-list didn't).
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/39181 CVS commit: [pkg_install-renovation] pkgsrc/pkgtools/pkg_install/files/lib
Date: Mon, 21 Jul 2008 22:15:09 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Mon Jul 21 22:15:09 UTC 2008
Modified Files:
pkgsrc/pkgtools/pkg_install/files/lib [pkg_install-renovation]: pkcs7.c
Log Message:
Replace X509_check_ca code with X509_check_purpose and explicit
checks. X509_check_ca does not exist in older OpenSSL versions.
Fixes PR 39181.
To generate a diff of this commit:
cvs rdiff -r1.1.2.4 -r1.1.2.5 pkgsrc/pkgtools/pkg_install/files/lib/pkcs7.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/39181: pkgtools/pkg_install-20080718 fails to compile due
to unresolved X509_check_ca symbol
Date: Tue, 22 Jul 2008 00:15:58 +0200
On Mon, Jul 21, 2008 at 10:00:05PM +0000, Stuart Shelton wrote:
> > Do you have X509_check_purpose on both?
>
> The system OpenSSL-0.9.7e-sgipl1 has:
> ... so libcrypto has this symbol on both machines, neither of which
> are now able to build pkg_install. It's worth noting that, with the
> right patches, the last pkg_install did work (although download-
> vulnerability-list didn't).
OK, should be fixed. Keep in mind that you are still using a branch.
What is the problem with dvl?
Joerg
From: Stuart Shelton <srcshelton@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: joerg@NetBSD.org,
gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: pkg/39181: pkgtools/pkg_install-20080718 fails to compile due to unresolved X509_check_ca symbol
Date: Tue, 22 Jul 2008 11:09:13 +0100
>
> OK, should be fixed. Keep in mind that you are still using a branch.
> What is the problem with dvl?
It's worth noting that OpenSSL-0.9.8h is the pkgsrc OpenSSL build, and
so isn't old. The good news is that the latest pkg_install builds and
installs successfully on both machines ;)
The dvl problem is pkg/39090 - and is still a problem in this latest
release.
State-Changed-From-To: open->closed
State-Changed-By: joerg@NetBSD.org
State-Changed-When: Tue, 22 Jul 2008 10:56:17 +0000
State-Changed-Why:
Fix committed. Thanks for the PR.
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/39181: pkgtools/pkg_install-20080718 fails to compile due
to unresolved X509_check_ca symbol
Date: Tue, 22 Jul 2008 12:58:06 +0200
On Tue, Jul 22, 2008 at 10:10:06AM +0000, Stuart Shelton wrote:
> The dvl problem is pkg/39090 - and is still a problem in this latest
> release.
OK, I have basically no idea what happens for that. It works on the
platforms I have access to and IRIX doesn't belong to that list.
Joerg
From: Joerg Sonnenberger <joerg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/39181 CVS commit: [pkg_install-renovation] pkgsrc/pkgtools/pkg_install/files
Date: Sun, 27 Jul 2008 16:22:53 +0000 (UTC)
Module Name: pkgsrc
Committed By: joerg
Date: Sun Jul 27 16:22:53 UTC 2008
Modified Files:
pkgsrc/pkgtools/pkg_install/files/admin [pkg_install-renovation]:
audit.c
pkgsrc/pkgtools/pkg_install/files/lib [pkg_install-renovation]:
version.h
Log Message:
pkg_install-20080727:
When using the libnbcompat version of getopt, make sure to not use
optind = 0. For GNU getopt compatibility, it does a partial reset.
This fixes PR 39181.
To generate a diff of this commit:
cvs rdiff -r1.8.2.1 -r1.8.2.2 pkgsrc/pkgtools/pkg_install/files/admin/audit.c
cvs rdiff -r1.102.2.9 -r1.102.2.10 \
pkgsrc/pkgtools/pkg_install/files/lib/version.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.