Subject: Re: libtool upgrade [was: CVS commit: pkgsrc]
To: grant beattie <grant@NetBSD.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 02/09/2004 16:25:30
--Apple-Mail-14--787117622
Content-Type: multipart/mixed; boundary=Apple-Mail-13--787117627
--Apple-Mail-13--787117627
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
On 09/02/2004, at 1:05 PM, grant beattie wrote:
> similar happens on Solaris
Grant,
this was fixed for me with appended patch by Nick.. Or am I tired and
repeating myself here.....
C.
--
charlie@rubberduck.com - Melbourne, Australia
http://rubberduck.com/~yeled/
PGP: 0x14AA7941 || finger yeled@lazy.spodder.com
Begin forwarded message:
> From: Nick Hudson <skrll@netbsd.org>
> Date: 8 February 2004 3:27:40 AM
> To: Charlie Allom <charlie@rubberduck.com>
> Cc: tech-pkg@NetBSD.org;, grant@netbsd.org
> Subject: Re: libtool 1.5.2 doesn't install libs on Solaris
>
> On Saturday 07 February 2004 13:03, Charlie Allom wrote:
>> Anyone else see this?
>>
>> ===> [Automatic ELF shared object handling]
>> /usr/pkg/lib/libltdl.so.4: No such file or directory
>> /usr/pkg/lib/libltdl.so.4.0: No such file or directory
>> ===> Registering installation for libtool-base-1.5.2
>> pkg_create: can't stat `/usr/pkg/lib/libltdl.so.4'
>> pkg_create: can't stat `/usr/pkg/lib/libltdl.so.4.0'
>>
>> 23:54 lazy:pkgsrc/devel/libtool-base% ls -li /usr/pkg/lib/libltdl.so*
>> 106518 lrwxrwxrwx 1 root other 16 Feb 7 23:53
>> /usr/pkg/lib/libltdl.so -> libltdl.so.3.1.0*
>> 106517 lrwxrwxrwx 1 root other 16 Feb 7 23:53
>> /usr/pkg/lib/libltdl.so.3 -> libltdl.so.3.1.0*
>> 106516 -rwxr-xr-x 1 root root 41388 Feb 7 23:53
>> /usr/pkg/lib/libltdl.so.3.1.0*
>
> Please add the attached patch as libtool/patches/patch-ad do and make
> mps and
> rebuild libtool and see if that fixes it.
>
> Thanks,
> Nick
--Apple-Mail-13--787117627
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0666;
name="patch-ad"
Content-Disposition: attachment;
filename=patch-ad
$NetBSD$
--- libltdl/configure.orig 2004-01-25 12:36:58.000000000 +0000
+++ libltdl/configure
@@ -3642,10 +3642,13 @@ beos*)
lt_cv_deplibs_check_method=pass_all
;;
-bsdi4*)
- lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
- lt_cv_file_magic_cmd='/usr/bin/file -L'
- lt_cv_file_magic_test_file=/shlib/libc.so
+# Versions of BSD/OS prior to 4.0 did no have real dynamic linking
+bsdi1*|bsdi2*|bsdi3*)
+ dynamic_linker=no
+ ;;
+
+bsdi*)
+ lt_cv_deplibs_check_method=pass_all
;;
cygwin*)
@@ -8040,9 +8043,10 @@ beos*)
shlibpath_var=LIBRARY_PATH
;;
-bsdi4*)
- version_type=linux
+bsdi*)
+ version_type=sunox
need_version=no
+ need_lib_prefix=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
soname_spec='${libname}${release}${shared_ext}$major'
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
@@ -8158,15 +8162,15 @@ kfreebsd*-gnu)
freebsd*)
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
- version_type=freebsd-$objformat
- case $version_type in
- freebsd-elf*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
+ version_type=sunos
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+ case $objformat in
+ elf*)
+ soname_spec='${libname}${release}${shared_ext}$major'
need_version=no
need_lib_prefix=no
;;
- freebsd-*)
- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
+ *)
need_version=yes
;;
esac
@@ -8245,12 +8249,7 @@ hpux9* | hpux10* | hpux11*)
irix5* | irix6* | nonstopux*)
case $host_os in
nonstopux*) version_type=nonstopux ;;
- *)
- if test "$lt_cv_prog_gnu_ld" = yes; then
- version_type=linux
- else
- version_type=irix
- fi ;;
+ *) version_type=sunos ;;
esac
need_lib_prefix=no
need_version=no
@@ -8286,7 +8285,7 @@ linux*oldld* | linux*aout* | linux*coff*
# This must be Linux ELF.
linux*)
- version_type=linux
+ version_type=sunos
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
@@ -8410,7 +8409,7 @@ sco3.2v5*)
;;
solaris*)
- version_type=linux
+ version_type=sunos
need_lib_prefix=no
need_version=no
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
--Apple-Mail-13--787117627--
--Apple-Mail-14--787117622
content-type: application/pgp-signature; x-mac-type=70674453;
name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAJxnKqiZDwhSqeUERAnytAJ43enAtP4Q6+bH7nUIlFrtlg3ILawCdETvk
h86PvNH2GJv8QedOkkuHZlc=
=hptk
-----END PGP SIGNATURE-----
--Apple-Mail-14--787117622--