Subject: Re: libtool 1.5.2 doesn't install libs on Solaris
To: Charlie Allom <charlie@rubberduck.com>
From: Nick Hudson <skrll@netbsd.org>
List: tech-pkg
Date: 02/07/2004 16:27:40
--Boundary-00=_8HRJAaBB9mLKpgy
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--Boundary-00=_8HRJAaBB9mLKpgy
Content-Type: text/x-diff;
  charset="iso-8859-1";
  name="patch-ad"
Content-Transfer-Encoding: 7bit
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}'

--Boundary-00=_8HRJAaBB9mLKpgy--