Hi! That's my inattention. I've found the solution :) One should use -rdynamic for LD_MAIN too. Without this e.g. dlopen("lib/ht") fails with "Undefined symbol 'Nil'" error So, now all tests passed with OK. Alex, I will send you my files soon. As I understand, it's not possible to send them as attachment to mailing list Best regards, Mansur
Суббота, 5 января 2013, 18:06 +01:00 от Alexander Burger <a...@software-lab.de>: > Hi Mansur, > > > I tried different options, also without stripping, but with no success. > > Perhaps someone can help to write small assembly program with shared > > library for test dlopen/dlsym calls? > > What did you use for the 'LD-SHARED' linker options? The Makefile of > 'pil32' uses "-shared -export-dynamic" for FreeBSD (in addition to > "-m32" which obviously doesn't make sense here). Perhaps this works > for 64-bits too? > > > An assembly program is probably not so helpful. Does FreeBSD have > the 'ltrace' utility? If so, you could do > > $ ltrace bin/picolisp 2>xxx > : (ht:Prin 123) > > and then look into 'xxx' for something like > > dlopen("lib/ht", 257) = 0x011700f0 > dlsym(0x011700f0, "Prin") = 0x7fe3f3f9f222 > > > I use 'gdb' in such cases to single-step through the program, but that's > not what I would really recommend ;-) > > ♪♫ Alex > -- > UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe >