[Top][All Lists]

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

is mdemo-static.test supposed to PASS?

From: Steve M. Robbins
Subject: is mdemo-static.test supposed to PASS?
Date: Sat, 14 Sep 2002 12:36:58 -0400
User-agent: Mutt/1.4i


I'm running linux (Debian/unstable) with reasonably modern autoconf
& automake.  I checked out the current libtool CVS sources, and ran
the test suite.  It failed in this section:

PASS: mdemo-static.test
PASS: mdemo-make.test
FAIL: mdemo-exec.test
FAIL: mdemo-inst.test

I ran one of the "mdemo-exec.test" tests by hand:

        Welcome to GNU libtool mdemo!
        can't open the module!
        error was: file not found
        myfunc returned: 57616
        myfunc is ok!

The file "" exists.  I traced through the code with the
debugger to be sure that "" is opened and read.  

The error comes from find_module() in ltdl.c.  That function is called
with arguments dlname=0x0 and old_name="foo1.a".  The code then
proceeds to call tryall_dlopen(handle,old_name), which fails because
"foo1.a" is not found.  

The file "foo1.a" is in subdirectory .libs.  If I copy it by hand into
"mdemo", then I can run "./mdemo".

In order to make "mdemo-exec.test" happy, I have to copy foo1.a and
libfoo2.a into directory "tests".

Who's at fault here?  The libtool code for not looking in the right
place for the .a files?  Or the test suite for not putting the .a files
in the right place?


P.S.  Here's the generated "" file.

# - a libtool library file
# Generated by - GNU libtool 1.4e (1.1131 2002/09/10 13:50:05)
# Please DO NOT delete this file!
# It is necessary for linking the library.

# The name that we can dlopen(3).

# Names of this library.

# The name of the static archive.

# Libraries that this one depends upon.
dependency_libs=' -lm 
/usr/local/src/devel/autotools/libtool-cvs/mdemo/ '

# Version information for foo1.

# Is this an already installed library?

# Files to dlopen/dlpreopen

# Directory that this library needs to be installed in:

reply via email to

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