Subject: pkg/10106: libtool doesn't know NetBSD/ELF supports inter-library dependencies
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dave@dtsp.co.nz>
List: netbsd-bugs
Date: 05/12/2000 20:53:09
>Number:         10106
>Category:       pkg
>Synopsis:       libtool doesn't know NetBSD/ELF supports inter-library dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 12 20:54:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Dave Sainty
>Release:        20000513
>Organization:
Dynamic Technology Services and Products Ltd (NZ)
>Environment:
System: NetBSD tequila.dave.dtsp.co.nz 1.4R NetBSD 1.4R (TEQUILA) #3: Wed Feb 16 20:01:31 NZDT 2000 dave@tequila.dave.dtsp.co.nz:/vol/tequila/userB/u2/NetBSD-current/src/sys/arch/i386/compile/TEQUILA i386


>Description:
	The libtool package does not know how to tell on NetBSD whether
	inter-library dependencies will work or not.  This can lead to
	sub-optimal behaviour in some cases.
>How-To-Repeat:
	Notice warnings about inter-library dependencies and workarounds when
	compiling some programs (in my case, 'oms').
>Fix:
	Add this patch to devel/libtool/patches (and update sums).  Basically
	the same as the FreeBSD test.

--- ltconfig.in.orig	Sat May 13 15:32:45 2000
+++ ltconfig.in	Sat May 13 15:29:47 2000
@@ -1988,6 +1988,9 @@
     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     dynamic_linker='NetBSD (a.out) ld.so'
   else
+    deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
+    file_magic_cmd=/usr/bin/file
+    file_magic_test_file=`echo /usr/lib/libc.so*`
     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
     soname_spec='${libname}${release}.so$major'
     dynamic_linker='NetBSD ld.elf_so'
>Release-Note:
>Audit-Trail:
>Unformatted: