RE: more ltdl stuff and more

Date view Thread view Subject view Author view

From: Parmelan, Edouard (EP510777@exchange.FRANCE.NCR.com)
Date: Fri Jan 15 1999 - 14:13:53 EST


Archie,
Godmar,

> > You should run make install before make check :(
> >
> I did! I always do!
>
> > Background:
> > 1/ libtool use --rpath to code into the binary the search path.
> > ABI spec that it is check before LD_*_PATH !
> >
> > 2/ lt_dlopen() don't test 'installed' value of the .la lib and
> > first check in the installed dir !
> >
> >
> I will do more experiments tonite.
If you have realy run make install,
$ export KAFFE_DEBUG=gdb
$ javac HelloWorldApp.java
(gdb) break lt_dlopen
(gdb) break dl_open
(gdb) break lt_dlsym
(gdb) break dl_sym
(gdb) run
Now, after last_error = dlerror(), print it.

Check if dlopen() load the correct library.

If you don't have make install,
1. edit kaffe/kaffe/Kaffe and add some magic lines
  excracted from kaffe/script/kaffe to start GDB.

2. change TestScript to not redirect output to file.
  in compile() and run().
  You may also only run the first test !.

Then make check should start gdb with the correct
environment.

Alexandre,

As kaffe/kaffe/main.c call lt_preload_default() should you
add libltdl.la in LDADD ?

Edouard.

---


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:43 EDT