I mumbled about mdemo-exec and friends failing a while back, but hopefully
this will make the problem a bit clearer:
Just adding the following to source of 6 September 14:36 GMT:
Index: ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.154
diff -u -r1.154 ltdl.c
--- ltdl.c 2001/09/03 00:22:13 1.154
+++ ltdl.c 2001/09/10 17:25:40
@@ -1567,6 +1567,7 @@
while (syms->name)
{
+printf("filename=%s syms->name=%s\n",filename,syms->name);
if (!syms->address && strcmp(syms->name, filename) == 0)
{
module = (lt_module) syms;
gives (after suitable othe mdemo tests were ran)
% gmake VERBOSE=1 TESTS=mdemo-exec.test check
...
=== Running mdemo-exec.test
Executing uninstalled programs in ../mdemo
Welcome to GNU libtool mdemo!
filename=foo1.a syms->name=foo1.a
module name: foo1
module filename: foo1.a
module reference count: 1
** This is foolib 1 **
hello returned: 57616
hello is ok!
cos (0.0) = 1
sub() called
foo1 is ok!
filename=libfoo2.a syms->name=foo1.a
filename=libfoo2.a syms->name=_foo1_helper
filename=libfoo2.a syms->name=foo1_LTX_foo1
filename=libfoo2.a syms->name=foo1_LTX_hello
filename=libfoo2.a syms->name=foo1_LTX_nothing
filename=libfoo2.a syms->name=libsub.a
filename=libfoo2.a syms->name=sub
filename=libfoo2.a syms->name=libfoo2.a
module name: libfoo2
module filename: libfoo2.a
module reference count: 1
** This is foolib 2 **
hello returned: 57616
hello is ok!
sin (0.0) = 0
sub() called
foo2 is ok!
filename=@PROGRAM@ syms->name=foo1.a
filename=@PROGRAM@ syms->name=_foo1_helper
filename=@PROGRAM@ syms->name=foo1_LTX_foo1
filename=@PROGRAM@ syms->name=foo1_LTX_hello
filename=@PROGRAM@ syms->name=foo1_LTX_nothing
filename=@PROGRAM@ syms->name=libsub.a
filename=@PROGRAM@ syms->name=sub
filename=@PROGRAM@ syms->name=libfoo2.a
filename=@PROGRAM@ syms->name=_foo2_helper
filename=@PROGRAM@ syms->name=libfoo2_LTX_foo2
filename=@PROGRAM@ syms->name=libfoo2_LTX_hello
filename=@PROGRAM@ syms->name=libfoo2_LTX_nothing
filename=@PROGRAM@ syms->name=libsub.a
filename=@PROGRAM@ syms->name=sub
can't dlopen the program!
error was: file not found
./mdemo-exec.test: execution of ../mdemo/mdemo.static failed
Welcome to GNU libtool mdemo!
can't open the module ../mdemo/foo1.la!
error was: file not found
can't open the module ../mdemo/libfoo2.la!
error was: file not found
can't dlopen the program!
error was: file not found
./mdemo-exec.test: execution of ../mdemo/mdemo failed
FAIL: mdemo-exec.test
===================
1 of 1 tests failed
===================
which I think is from test_dlself() -> lt_dlopen(0) (as opposed to
lt_dlopen(filename) ) -> try_dlopen(&handle,0) -> tryall_dlopen(&newhandle,0)
and so on..
Hope this is clearer,
Cheers,
Patrick
_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool