Subject: pkg/12516: libtool fails on pmax
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 03/31/2001 10:37:48
>Number: 12516
>Category: pkg
>Synopsis: libtool fails on pmax
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 31 07:38:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Dan McMahill
>Release: 1.5<NetBSD-current source date>
>Organization:
>Environment:
System: NetBSD ampere 1.5 NetBSD 1.5 (GENERIC) #48: Mon Nov 20 08:27:21 EST 2000 root@medusa.thistledown.com.au:/NetBSD/src15/sys/arch/pmax/compile/GENERIC pmax
>Description:
mcmahill@ampere 224 # pkg_info -e libtool
libtool-1.4.20010219nb4
mcmahill@ampere 225 # libtool --config | grep ^deplibs_check_method=
deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB shared object"
mcmahill@ampere 226 # file /usr/lib/libm.so.0.1
/usr/lib/libm.so.0.1: ELF 32-bit LSB mips-1 shared object, MIPS R3000_LE, version 1, not stripped
mcmahill@ampere 227 # uname -a
NetBSD ampere 1.5 NetBSD 1.5 (GENERIC) #48: Mon Nov 20 08:27:21 EST 2000 root@medusa.thistledown.com.au:/NetBSD/src15/sys/arch/pmax/compile/GENERIC pmax
So the problem is that libtool can't recognise shared libs on pmax.
>How-To-Repeat:
try to build things in pkgsrc, note that you lose.
>Fix:
not sure. i'm scared to touch libtool...
on tech-pkg the following was suggested by
-- Todd Vierling <tv@wasabisystems.com> * Wasabi NetBSD: Run with it.
changequote({, })
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
{lt_cv_deplibs_check_method='file_magic /lib[^/\.]\.so\.[0-9]+\.[0-9]+$'}
else
{lt_cv_deplibs_check_method='file_magic /lib[^/\.]\.so$'}
fi
changequote([, ])
I didn't escape the / characters, but you can if you want (it's an egrep, so
it's not needed in the current case), but the presence of \., to disallow
periods, in the first [] is very important. I also changed the [] around
the statement -- because of changequote, these needed changing too(!).
>Release-Note:
>Audit-Trail:
>Unformatted: