libtool in configure for dejagnu confused was: Catch 5.0.x
Robert Lipe
robertl@dgii.com
Tue Dec 23 22:56:00 GMT 1997
> So, the mystery to solve is why libtool (autoconf? configure?) knows
> that CC=gcc, yet it's picking up these clearly native flags for the
> OpenServer target.
>
> These aren't coming from libtool.
>
> They're coming from tcl/unix/configure.in.
Excellent analysis, Ian. Thank you. I got tripped up by the libtool
thing and forgot to look for a forest behind those trees.
> I expect that the SCO case in that file needs to be cleaned up
> somehow.
You are correct, of course.
I've now beaten it a little more and am perplexed by my findings.
Perhaps shared libraries on OpenServer egcs don't work the way I
thought they should. [ Kean, can you comment on this? ]
If I patch tcl/unix/configure.in [ and rerun autoconf ] I can get
it to spew what I thought would be believable looking .so lines
if we're building with gcc.
[ excerpt of make output in tcl/unix/dltest ]
gcc -c -g -I/home/play/d/dejagnu-971222/tcl/unix/dltest/../../generic -DTCL_MEM_
DEBUG -fPIC /home/play/d/dejagnu-971222/tcl/unix/dltest/pkga.c
gcc -shared -o pkga.so pkga.o
I have it sorting out the native tool vs. gcc thing, but apparently
either I can't follow the examples of other shared library hosts in
that file or gcc/egcs on OpenServer has broken shared library handling.
When I try the "obvious" variations of the above (-shared vs. -G, with
or without -Wl,-Bexport, etc.) I get failures in the make check:
Running ../../dejagnu-971222/tcl/testsuite/tcl.tests/tcl-test.exp ...
ERROR: Got a test case bug "couldn't load file "/home/play/d/d/tcl/unix/dltest/p
kga.so": dyn"
ERROR: Got a test case bug "couldn't load file "/home/play/d/d/tcl/unix/dltest/p
kgb.so": dynamic linker: /home/play/d/d/tcl/unix/tcltest: relocation error: symb
ol not found: Tcl_AppendResult"
FAIL: load-2.4
FAIL: load-3.1
FAIL: load-3.2
FAIL: load-4.1
FAIL: load-4.2
ERROR: Got a test case bug "couldn't load file "/home/play/d/d/tcl/unix/dltest/p
kga.so": dynamic linker: /home/play/d/d/tcl/unix/tcltest: relocation error: symb
ol not found: Tcl_AppendResult"
FAIL: load-7.4
FAIL: load-8.1
FAIL: load-8.3
ERROR: Got a test case bug "couldn't load file "/home/play/d/d/tcl/unix/dltest/p
kgb.so": dynamic linker: /home/play/d/d/tcl/unix/tcltest: relocation error: "
Hopefully, this is just pilot error on my part.
More information about the Gcc
mailing list