[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: help needed implementing a new store class
From: |
Trek |
Subject: |
Re: help needed implementing a new store class |
Date: |
Mon, 27 Oct 2003 02:46:18 +0100 (MET) |
On Sat, 25 Oct 2003, Roland McGrath wrote:
> You should run storeio under gdb and see what is going on when it tries to
> load your module.
Thanks for your reply, but i don't know how to debug storeio :-(
If i should continue this thread in help-hurd please to tell me it
i installed the debian package libc0.3-dbg (that installs the libc with
debug in /lib/debug) and compiled the hurd, then i've done three test:
$ cp crypt.c hurd/libstore ; cd hurd/libstore
added -lcrypto in Makefile for OpenSSL
$ make libstore_crypt.so.0.3
$ export LD_LIBRARY_PATH=$PWD:/lib/debug
$ cd ../storeio
$ make
$ settrans -Pac ~/test storeio -T crypt ~/pippo.enc
crypt: Invalid argument to --store-type
well i try to run a typed store to have the time to pause:
$ settrans -Pac ~/test storeio -T crypt ~/pippo.enc
Translator pid: 1234
Pausing...
in another shell (in the same directory with the same LD_LIBRARY_PATH):
$ gdb -d ../libstore storeio 1234
Attaching to program: storeio, process 1234
Reading symbols from /lib/libstore.so.0.3...done.
Loaded symbols for /lib/libstore.so.0.3
Reading symbols from /libc.so.0.3...done.
Loaded symbols for /libc.so.0.3
why my LD_LIBRARY_PATH environment variable is not used for dynamic
linking? I think this only appears when using settrans
the second test was:
$ cd hurd/libstore
created a test store class from file store class
$ make libstore_test.so.0.3
$ settrans -Pac ~/test ../storeio/storeio -T test ~/pippo.enc
test: Invalid argument to --store-type
the third:
$ cd hurd/storeio
$ make storeio.static
$ settrans -Pac ~/test storeio.static -T crypt ~/pippo.enc
$ cat ~/test
Invalid argument (or similar i don't remember)
$ settrans -Pac ~/test storeio.static -T file ~/pippo.enc
$ cat ~/test
Invalid argument (or similar)
Should i compile a static storeio in another way?
It is normal that my LD_LIBRARY_PATH is not used when setting translators?
It is correct what i've done to debug? If it is ok i'll try to reinstall
the system with an updated Debian GNU Hurd (i'm using J2).
c-ya!
3 http://www.trek.eu.org/
k PGPKey: 7016731A57D4A69B 1A8EE5E90EF2608E (since 1995)