Ok, so I am now trying a completely different script, and I am getting a
similar error. This is what I get:
[EMAIL PROTECTED]:~/PT]
58 >./pt
./pt: relocation error: /tmp/41bb5326.so: undefined symbol:
Perl_Tstack_sp_ptr
Hmm. A shared object. Lets see if I can find it in the package:
[EMAIL PROTECTED]:~/PT]
59 >unzip -v pt | grep 41bb5326
warning [pt]: 1133085 extra bytes at beginning or within zipfile
(attempting to process anyway)
29565 Defl:N 12843 57% 06-03-03 19:39 41bb5326
lib/auto/Data/Dumper/Dumper.so
Oh... a lead! Something is not right in Dumper!
[EMAIL PROTECTED]:~/PT]
62 >unzip pt lib/auto/Data/Dumper/Dumper.so
Archive: pt
warning [pt]: 1133085 extra bytes at beginning or within zipfile
(attempting to process anyway)
inflating: lib/auto/Data/Dumper/Dumper.so
[EMAIL PROTECTED]:~/PT]
63 >cd lib/auto/Data/Dumper/
[EMAIL PROTECTED]:~/PT/lib/auto/Data/Dumper]
64 >[EMAIL PROTECTED]:~/PT/lib/auto/Data/Dumper]
64 >ldd Dumper.so
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
[EMAIL PROTECTED]:~/PT/lib/auto/Data/Dumper]
65 >nm Dumper.so | grep Perl_Tstack_sp_ptr
U Perl_Tstack_sp_ptr
ok, it is undefined. So who defines it?
First off, this is perl 5.8.0 compiled as
i686-linux-thread-multi-64all.
Lets look at all the .so's in the installed tree...
[EMAIL PROTECTED]:~/PT/lib/auto/Data/Dumper]
77 >foreach s (`locate perl | grep -i "\.so" | grep 580`)
foreach? nm $s | grep Perl_Tstack_sp_ptr
foreach? end
U Perl_Tstack_sp_ptr
U Perl_Tstack_sp_ptr
...
U Perl_Tstack_sp_ptr
Ok. It isn't in the shared objects. What about the .a's?
[EMAIL PROTECTED]:~/PT/lib/auto/Data/Dumper]
80 >nm
/opt/perl580/lib/5.8.0/i686-linux-thread-multi-64all/CORE/libperl.a |
grep Perl_Tstack_sp_ptr
U Perl_Tstack_sp_ptr
00000000 T Perl_Tstack_sp_ptr
There it is. Ok, I assume that in the link process, we are not linking
against this libperl.a. If this is true, can I force this? It looks
like the -l option went away.
Ok. Now lets see if we can peel off all but this particular symbol:
[EMAIL PROTECTED]:~/PT]
98 >objcopy -S -K Perl_Tstack_sp_ptr
/opt/perl580/lib/5.8.0/i686-linux-thread-multi-64all/CORE/libperl.a
test.so
[EMAIL PROTECTED]:~/PT]
99 >nm test.so | less
perl.o:
gv.o:
...
perlapi.o:
00000000 T Perl_Tstack_sp_ptr
...
Ok. At this point I am thinking that it might make sense to rebuild
perl with a nice .so. Could someone who has a nice shared libperl.so do
a quick
nm /path/to/libperl.so | grep Perl_Tstack_sp_ptr
and let me know? If you get something other than
U Perl_Tstack_sp_ptr
then I would need to rebuild perl as a .so.
Thanks!
--
Joseph Landman, Ph.D
Scalable Informatics LLC
email: [EMAIL PROTECTED]
web: http://scalableinformatics.com
phone: +1 734 612 4615