NetBSD Problem Report #40035

From www@NetBSD.org  Wed Nov 26 14:32:11 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 3CC4763B8BD
	for <gnats-bugs@gnats.netbsd.org>; Wed, 26 Nov 2008 14:32:11 +0000 (UTC)
Message-Id: <20081126140435.596A863BD2D@narn.NetBSD.org>
Date: Wed, 26 Nov 2008 14:04:35 +0000 (UTC)
From: asau@inbox.ru
Reply-To: asau@inbox.ru
To: gnats-bugs@NetBSD.org
Subject: Installation of libraries using bsd.lib.mk is broken if SHLIB_MINOR is undefined
X-Send-Pr-Version: www-1.0

>Number:         40035
>Category:       pkg
>Synopsis:       Installation of libraries using bsd.lib.mk is broken if SHLIB_MINOR is undefined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 26 14:35:00 +0000 2008
>Closed-Date:    Thu Jun 18 05:12:58 +0000 2015
>Last-Modified:  Thu Jun 18 05:12:58 +0000 2015
>Originator:     Aleksej Saushev
>Release:        FreeBSD 6.3-STABLE i386
>Organization:
>Environment:
>Description:
Installation of shared objects is broken if SHLIB_MINOR is undefined,
the problem doesn't exists on NetBSD 4.99.73, it occurs on FreeBSD 6.3
to me, when using current pkgsrc's bootstrap-mk-files-20080808.

>How-To-Repeat:
cat > Makefile << EOF
LIB=	test
SHLIB_MAJOR=	0
#SHLIB_MINOR=	0

SRCS=	test.c

LIBDIR=		/
LINTLIBDIR=	/
LIBOWN!=	id -un
LIBGRP!=	id -gn

.include <bsd.lib.mk>
EOF
cat > test.c << EOF
static const char string[] = "Hello world!";
EOF
make && make install DESTDIR=/tmp

Note that it fails with:

building shared test library (version 0)
ld -shared -soname libtest.so.0 -o libtest.so.0    --whole-archive libtest_pic.a --no-whole-archive   
ln -sf libtest.so.0 libtest.so.0.tmp
mv -f libtest.so.0.tmp libtest.so.0
ln -sf libtest.so.0 libtest.so.tmp
mv -f libtest.so.tmp libtest.so
install   -c  -o asau  -g wheel -m 600 libtest.a /tmp//libtest.a
ranlib -t /tmp//libtest.a
chmod 444 /tmp//libtest.a
install   -c  -o asau  -g wheel -m 600 libtest_p.a /tmp//libtest_p.a
ranlib -t /tmp//libtest_p.a
chmod 444 /tmp//libtest_p.a
install   -c  -o asau  -g wheel -m 600 libtest_pic.a /tmp//libtest_pic.a
ranlib -t /tmp//libtest_pic.a
chmod 444 /tmp//libtest_pic.a
install   -c  -o asau  -g wheel -m 444 libtest.so.0 /tmp//libtest.so.0
install: libtest.so.0: Too many levels of symbolic links
*** Error code 71

>Fix:
Update pkgtools/bootstrap-mk-files?

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 18 Jun 2015 05:12:58 +0000
State-Changed-Why:
fixed by yours truly (so it seems) in November 2011; -r1.5 of the bsd.lib.mk
in bootstrap-mk-files.


>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-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.