bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TEST FAILURE] libtool-1.5.14, Solaris 9, Sun Compiler 5.5


From: Ralf Wildenhues
Subject: Re: [TEST FAILURE] libtool-1.5.14, Solaris 9, Sun Compiler 5.5
Date: Fri, 18 Mar 2005 14:49:38 +0100
User-agent: Mutt/1.4.1i

Hi Ralf,

Just noted there are (at least) two open bug reports by you.  :)

* Ralf Menzel wrote on Tue, Feb 15, 2005 at 04:59:09PM CET:
> 
> the test suite give 7 failures for libtool-1.5.14 using Solaris 9 and
> the Sun Workshop compiler 5.5. I attach the output of `make check' to
> this e-mail. The output of `./libtool --version' is:
> 
> ltmain.sh (GNU libtool) 1.5.14 (1.1220.2.195 2005/02/12 12:12:33)

> I'm using autoconf 2.59 and automake 1.9.5 as well GNU make 3.80.

Alright.  Let's see.

[ mdemo-make ..]
| /bin/bash ./libtool --tag=CC --mode=link cc  -g   -o libmlib.la -rpath
| +/home/menzel/src/testing/suncc/libtool-1.5.14/tests/_inst/lib -no-undefined 
mlib.lo ./../libltdl/libltdlc.la
| +"-dlopen" foo1.la "-dlopen" libfoo2.la
| /usr/ccs/bin/ld -G -z text -h libmlib.so.0 -o .libs/libmlib.so.0.0.0  
.libs/mlib.o -Wl,-z -Wl,allextract
| +./../libltdl/.libs/libltdlc.a -Wl,-z -Wl,defaultextract  -ldl -lc
| /usr/ccs/bin/ld: illegal option -- W
| /usr/ccs/bin/ld: illegal option -- W
| /usr/ccs/bin/ld: illegal option -- W
| /usr/ccs/bin/ld: illegal option -- W
 
Does the patch against branch-1-5 below help with the mdemo failures?

Note that there is at least one Solaris-related patch HEAD/branch-2-0
that needs to be backported yet.

Regards,
Ralf

        * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS) [solaris]: Use ${wlarc}
        and set to empty when using $LD for linking.
        Reported by Ralf Menzel <address@hidden>.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.70
diff -u -r1.314.2.70 libtool.m4
--- libtool.m4  14 Mar 2005 11:12:05 -0000      1.314.2.70
+++ libtool.m4  18 Mar 2005 13:37:03 -0000
@@ -5757,10 +5757,12 @@
     solaris*)
       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
       if test "$GCC" = yes; then
+       wlarc='${wl}'
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o 
$lib $libobjs $deplibs $compiler_flags'
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > 
$lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo 
"local: *; };" >> $lib.exp~
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib 
$libobjs $deplibs $compiler_flags~$rm $lib.exp'
       else
+       wlarc=''
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h 
$soname -o $lib $libobjs $deplibs $linker_flags'
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > 
$lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo 
"local: *; };" >> $lib.exp~
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs 
$deplibs $linker_flags~$rm $lib.exp'
@@ -5770,7 +5772,7 @@
       case $host_os in
       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
-       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z 
${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wlarc}-z 
${wlarc}allextract$convenience ${wlarc}-z ${wlarc}defaultextract' ;;
       esac
       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
       ;;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]