NetBSD Problem Report #48793
From diro@nixsyspaus.org Thu May 8 11:06:13 2014
Return-Path: <diro@nixsyspaus.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4A443A584B
for <gnats-bugs@gnats.netbsd.org>; Thu, 8 May 2014 11:06:13 +0000 (UTC)
Message-Id: <20140508110609.798EF2041E4@asche.nixsyspaus.org>
Date: Thu, 8 May 2014 11:06:09 +0000 (UTC)
From: diro@nixsyspaus.org
Reply-To: diro@nixsyspaus.org
To: gnats-bugs@gnats.netbsd.org
Subject: devel/libexecinfo fails during install
X-Send-Pr-Version: 3.95
>Number: 48793
>Category: pkg
>Synopsis: devel/libexecinfo fails during install
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: ryoon
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 08 11:10:00 +0000 2014
>Closed-Date: Mon Jun 02 02:20:13 +0000 2014
>Last-Modified: Mon Jun 02 02:20:13 +0000 2014
>Originator: diro@nixsyspaus.org
>Release: OpenBSD 5.5
>Organization:
>Environment:
System: OpenBSD sunny 5.5 GENERIC.MP#173 sparc64
>Description:
devel/libexecinfo fails to add the -soname option to ld. Thus, during the
install phase, libexecinfo.so{,1} cannot be found. From install:
=> Bootstrap dependency digest>=20010302: found digest-20121220
=> Bootstrap dependency tnftp-[0-9]*: found tnftp-20070806
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/pkg/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for libexecinfo-1.1.tar.bz2
=> Checksum RMD160 OK for libexecinfo-1.1.tar.bz2
===> Installing dependencies for libexecinfo-1.1
=> Tool dependency bzip2>=0.9.0b: found bzip2-1.0.6nb1
===> Overriding tools for libexecinfo-1.1
===> Extracting for libexecinfo-1.1
===> Patching for libexecinfo-1.1
=> Applying pkgsrc patches for libexecinfo-1.1
===> Creating toolchain wrappers for libexecinfo-1.1
===> Configuring for libexecinfo-1.1
===> Building for libexecinfo-1.1
--- execinfo.o ---
--- execinfo.so ---
--- stacktraverse.o ---
--- stacktraverse.so ---
--- execinfo.o ---
cc -O -Werror -c execinfo.c
--- execinfo.so ---
cc -O -Werror -c -fPIC -DPIC execinfo.c -o execinfo.so
--- stacktraverse.o ---
cc -O -Werror -c stacktraverse.c
--- stacktraverse.so ---
cc -O -Werror -c -fPIC -DPIC stacktraverse.c -o stacktraverse.so
--- libexecinfo.a ---
building standard execinfo library
ar cq libexecinfo.a `NM=nm lorder stacktraverse.o execinfo.o | tsort -q`
--- libexecinfo_pic.a ---
building shared object execinfo library
ar cq libexecinfo_pic.a `NM=nm lorder stacktraverse.so execinfo.so | tsort -q`
--- libexecinfo.a ---
ranlib libexecinfo.a
--- libexecinfo_pic.a ---
ranlib libexecinfo_pic.a
--- libexecinfo.so.1.0 ---
building shared execinfo library (version 1.0)
ld -shared -o libexecinfo.so.1.0 --whole-archive libexecinfo_pic.a --no-whole-archive -lm
=> Unwrapping files-to-be-installed.
===> Installing for libexecinfo-1.1
=> Creating installation directories
/usr/bin/install -c -o root -g wheel -m 600 libexecinfo.a /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.a
ranlib -t /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.a
chmod 644 /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.a
/usr/bin/install -c -o root -g wheel -m 600 libexecinfo_pic.a /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo_pic.a
ranlib -t /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo_pic.a
chmod 644 /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo_pic.a
/usr/bin/install -c -o root -g wheel -m 644 libexecinfo.so.1.0 /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.so.1.0
/usr/bin/install -c -o root -g wheel -m 644 /usr/pkgsrc/devel/libexecinfo/work/libexecinfo-1.1/execinfo.h /usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/include
=> Automatic manual page handling
pkg_create: can't stat `/usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.so'
pkg_create: can't stat `/usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.so.1'
=> Creating binary package /usr/pkgsrc/devel/libexecinfo/work/.packages/libexecinfo-1.1.tgz
pkg_create: can't stat `/usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.so'
pkg_create: can't stat `/usr/pkgsrc/devel/libexecinfo/work/.destdir/usr/pkg/lib/libexecinfo.so.1'
pkg_create: lstat failed for file lib/libexecinfo.so: No such file or directory
*** Error code 2
Stop.
bmake: stopped in /usr/pkgsrc/devel/libexecinfo
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/devel/libexecinfo
>How-To-Repeat:
cd pkgsrc/devel/libexecinfo; bmake install
>Fix:
Setting LDFLAGS.OpenBSD does not work.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: obache@NetBSD.org
State-Changed-When: Thu, 08 May 2014 11:21:33 +0000
State-Changed-Why:
already should be fixed with devel/libexecinfo/Makefile rev 1.3.
Please update your pkgsrc tree and try again if you are using pkgsrc-current.
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, diro@nixsyspaus.org
Cc:
Subject: Re: pkg/48793: devel/libexecinfo fails during install
Date: Thu, 08 May 2014 20:15:55 +0900 (JST)
Hi,
I think that the problem is caused from OpenBSD's
/usr/share/mk/bsd.lib.mk .
Rev. 1.3 of devel/libexecinfo/Makefile has custom post-install target.
It works for my OpenBSD/amd64 5.5 test environment.
--
Ryo ONODERA // ryo_on@yk.rim.or.jp
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
From: rodent@NetBSD.org
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48793 (devel/libexecinfo fails during install)
Date: Thu, 8 May 2014 08:15:18 -0400
Resolved! Thanks!! This would be good to be pulled up to 2014Q1.
From: "OBATA Akio" <obata@lins.jp>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/48793: devel/libexecinfo fails during install
Date: Thu, 08 May 2014 21:40:39 +0900
On Thu, 08 May 2014 20:35:00 +0900, Ryo ONODERA <ryo_on@yk.rim.or.jp> wrote:
> I think that the problem is caused from OpenBSD's
> /usr/share/mk/bsd.lib.mk .
It will not be used by bmake from pkgsrc.
No issue on OpenBSD-5.5-i386, and fails on your amd64 and reporter's sparc64.
Issue is in bsd.own.mk.
amd64 and sparc64 are not marked as OBJECT_FMT=ELF.
(pkgsrc/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in)
from elf(1) of OpenBSD-5.5:
HISTORY
OpenBSD ELF support first appeared in OpenBSD 1.2. Starting with
OpenBSD 5.4, all supported platforms use it as the native binary file
format. ELF in itself first appeared in AT&T System V UNIX. The ELF
format is an adopted standard.
So probably, it is better to switch OBJECT_FMT=ELF by default for 5.4 and later.
Index: pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in
===================================================================
RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in,v
retrieving revision 1.3
diff -u -r1.3 OpenBSD.bsd.own.mk.in
--- pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in 15 Nov 2008 13:06:42 -0000 1.3
+++ pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in 8 May 2014 12:34:47 -0000
@@ -106,6 +106,7 @@
.if ${MACHINE_ARCH} == "alpha" || \
${MACHINE_ARCH} == "powerpc" || \
${MACHINE_ARCH} == "sparc" || \
+ ${OS_VERSION} >= 5.4 || \
( ${MACHINE_ARCH} == "i386" && ${OS_VERSION} >= 3.4 )
OBJECT_FMT?=ELF
.else
--
OBATA Akio / obata@lins.jp
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48793: devel/libexecinfo fails during install
Date: Thu, 08 May 2014 22:46:26 +0900 (JST)
From: "OBATA Akio" <obata@lins.jp>, Date: Thu, 8 May 2014 12:45:00 +0000 (UTC)
> The following reply was made to PR pkg/48793; it has been noted by GNATS.
>
> From: "OBATA Akio" <obata@lins.jp>
> To: gnats-bugs@netbsd.org
> Cc:
> Subject: Re: pkg/48793: devel/libexecinfo fails during install
> Date: Thu, 08 May 2014 21:40:39 +0900
>
> On Thu, 08 May 2014 20:35:00 +0900, Ryo ONODERA <ryo_on@yk.rim.or.jp> wrote:
>
> > I think that the problem is caused from OpenBSD's
> > /usr/share/mk/bsd.lib.mk .
>
> It will not be used by bmake from pkgsrc.
>
> No issue on OpenBSD-5.5-i386, and fails on your amd64 and reporter's sparc64.
>
> Issue is in bsd.own.mk.
> amd64 and sparc64 are not marked as OBJECT_FMT=ELF.
> (pkgsrc/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in)
>
> from elf(1) of OpenBSD-5.5:
>
> HISTORY
> OpenBSD ELF support first appeared in OpenBSD 1.2. Starting with
> OpenBSD 5.4, all supported platforms use it as the native binary file
> format. ELF in itself first appeared in AT&T System V UNIX. The ELF
> format is an adopted standard.
>
> So probably, it is better to switch OBJECT_FMT=ELF by default for 5.4 and later.
>
> Index: pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in
> ===================================================================
> RCS file: /cvsroot/pkgsrc/pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in,v
> retrieving revision 1.3
> diff -u -r1.3 OpenBSD.bsd.own.mk.in
> --- pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in 15 Nov 2008 13:06:42 -0000 1.3
> +++ pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in 8 May 2014 12:34:47 -0000
> @@ -106,6 +106,7 @@
> .if ${MACHINE_ARCH} == "alpha" || \
> ${MACHINE_ARCH} == "powerpc" || \
> ${MACHINE_ARCH} == "sparc" || \
> + ${OS_VERSION} >= 5.4 || \
> ( ${MACHINE_ARCH} == "i386" && ${OS_VERSION} >= 3.4 )
> OBJECT_FMT?=ELF
> .else
It is my misunderstanding.
I will try to apply your patch.
Thank you.
--
Ryo ONODERA // ryo_on@yk.rim.or.jp
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: ryoon@NetBSD.org
Responsible-Changed-When: Sat, 10 May 2014 06:33:15 +0000
Responsible-Changed-Why:
I will take it.
From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48793 CVS commit: pkgsrc/pkgtools/bootstrap-mk-files
Date: Sat, 10 May 2014 23:01:26 +0000
Module Name: pkgsrc
Committed By: ryoon
Date: Sat May 10 23:01:26 UTC 2014
Modified Files:
pkgsrc/pkgtools/bootstrap-mk-files: Makefile
pkgsrc/pkgtools/bootstrap-mk-files/files/mods: OpenBSD.bsd.own.mk.in
Log Message:
Update to 20140510
Fix PR pkg/48793: treat OpenBSD 5.4 or later as ELF platform
Patch from obache@, thank you.
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 pkgsrc/pkgtools/bootstrap-mk-files/Makefile
cvs rdiff -u -r1.3 -r1.4 \
pkgsrc/pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.own.mk.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48793 CVS commit: pkgsrc/devel/libexecinfo
Date: Sat, 10 May 2014 23:03:25 +0000
Module Name: pkgsrc
Committed By: ryoon
Date: Sat May 10 23:03:25 UTC 2014
Modified Files:
pkgsrc/devel/libexecinfo: Makefile
Log Message:
Remove hack for OpenBSD
The problem should be fixed with PR pkg/48793.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/libexecinfo/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48793: devel/libexecinfo fails during install
Date: Sun, 11 May 2014 08:04:48 +0900 (JST)
I have just committed the fix for pkgtools/bootstrap-mk-files.
Please bootstrap pkgsrc with bootstrap-mk-file-20140510 again.
Thank you.
--
Ryo ONODERA // ryo_on@yk.rim.or.jp
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
From: rodent@NetBSD.org
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/48793: devel/libexecinfo fails during install
Date: Mon, 12 May 2014 22:30:55 -0400
On Sat, May 10, 2014 at 11:10:00PM +0000, Ryo ONODERA wrote:
> The following reply was made to PR pkg/48793; it has been noted by GNATS.
>
> From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
> To: gnats-bugs@NetBSD.org
> Cc:
> Subject: Re: pkg/48793: devel/libexecinfo fails during install
> Date: Sun, 11 May 2014 08:04:48 +0900 (JST)
>
> I have just committed the fix for pkgtools/bootstrap-mk-files.
> Please bootstrap pkgsrc with bootstrap-mk-file-20140510 again.
>
> Thank you.
Done and seems to work fine. Thanks!
From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org, rodent@NetBSD.org
Cc:
Subject: Re: pkg/48793: devel/libexecinfo fails during install
Date: Wed, 14 May 2014 12:09:53 +0900 (JST)
Hi,
The resulting binary, libexecinfo.so have undefined __guard_local.
cc should be used as linker instead of ld.
I will commit
pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.lib.mk
later.
--
Ryo ONODERA // ryo_on@yk.rim.or.jp
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48793 CVS commit: pkgsrc/pkgtools/bootstrap-mk-files
Date: Fri, 16 May 2014 13:13:22 +0000
Module Name: pkgsrc
Committed By: ryoon
Date: Fri May 16 13:13:22 UTC 2014
Modified Files:
pkgsrc/pkgtools/bootstrap-mk-files: Makefile
Added Files:
pkgsrc/pkgtools/bootstrap-mk-files/files/mods: OpenBSD.bsd.lib.mk
Log Message:
Update to 20140516
Fix PR pkg/48793: Use cc as linker instead of ld under OpenBSD.
Fix undefined __guard_local in devel/libexecinfo.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/pkgtools/bootstrap-mk-files/Makefile
cvs rdiff -u -r0 -r1.1 \
pkgsrc/pkgtools/bootstrap-mk-files/files/mods/OpenBSD.bsd.lib.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 02 Jun 2014 02:20:13 +0000
State-Changed-Why:
Reported fixed at least twice... if it's not still fixed, let me know
>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.