libtool-patches
[Top][All Lists]
Advanced

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

Re: libtool--release--2.0 test results


From: Bob Friesenhahn
Subject: Re: libtool--release--2.0 test results
Date: Thu, 7 Oct 2004 22:34:07 -0500 (CDT)

Unless someone objects in the mean-time, I plan to apply, test, and commit, this patch soon.

Bob

On Wed, 6 Oct 2004, Charles Wilson wrote:

Charles Wilson wrote:

i686-pc-cygwin: 3 of 107 tests failed (1 test was not run)
This is with automake-1.9.1, using branch-2-0

Got same results with CVS HEAD, btw.

The three failed tests were
  quote
  depdemo-relink.test
  pdemo-make.test
The skipped test was pdemo-exec, of course.

The quote and depdemo-relink failures are longstanding. The pdemo one is new; I'll try to look into it but time is of the essence right now.

Is there a reason that the piecewise linking ld script is named "xxxxx.lnk"? That extension is used on windows to represent shortcuts (and cygwin overloads it to represent symlinks). Hence, the following pdemo failure:

libtool: link: creating reloadable object files...
libtool: link: creating GNU ld script: .libs/libhello.la.lnk
gcc -shared .libs/libhello.la.lnk -o .libs/cyghello-2.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libhello.dll.a
Creating library file: .libs/libhello.dll.a
rm -f
libtool: link: using piecewise archive linking...
ar cru .libs/libhello.a longer_file_name_hello.o
: .libs/libhello.a
ar cru .libs/libhello.a longer_file_name_foo.o
: .libs/libhello.a
ar cru .libs/libhello.a longer_file_name_foo2.o
ranlib .libs/libhello.a
libtool: link: creating libhello.la
(cd .libs && rm -f libhello.la && ln -s ../libhello.la libhello.la)
ln: creating symbolic link `libhello.la' to `../libhello.la': File exists

That is, the file "libhello.la.lnk" already exists (but it isn't a symlink; it's the GNU ld script).

Further, why is "demo-make.test" a prereq for "pdemo-inst.test"?

Making the following changes allow pdemo-exec and pdemo-inst to work on cygwin:

Index: ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/config/ltmain.m4sh,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 ltmain.m4sh
--- ltmain.m4sh 5 Oct 2004 04:15:28 -0000       1.1.2.3
+++ ltmain.m4sh 6 Oct 2004 08:44:42 -0000
@@ -4994,7 +4994,7 @@
         k=1

if test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
-           output=${output_objdir}/${output_la}.lnk
+           output=${output_objdir}/${output_la}.lnkscript
           func_echo "creating GNU ld script: $output"
           $ECHO 'INPUT (' > $output
           for obj in $save_libobjs
Index: pdemo-inst.test
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/pdemo-inst.test,v
retrieving revision 1.10
diff -u -r1.10 pdemo-inst.test
--- pdemo-inst.test     23 Sep 2004 14:50:36 -0000      1.10
+++ pdemo-inst.test     6 Oct 2004 08:52:41 -0000
@@ -23,10 +23,10 @@

. ./defs || exit 1

-func_require "demo-make" "demo/hell$EXEEXT"
+func_require "pdemo-make" "pdemo/hell$EXEEXT"

func_mkprefixdir
-func_cd "demo"
+func_cd "pdemo"
func_make "install"
func_exec_init "installed"
func_exec "$prefix/bin/hell_static" 'Welcome to GNU Hell'





======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen




reply via email to

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