perl 5 extensions on AMD64
David Bremner
bremner at unb.ca
Mon Jan 26 09:20:16 PST 2004
I have just discovered (Hi Kris!) that a port I made does not work
on AMD64
A quick look at the bento error logs reveals several p5-* ports with the same
fatal error
c -O -pipe -fpic -DPIC -shared -Wl,-x,-soname,libplperl.so.0 plperl.o eloglvl.o SPI.o -L../../../src/port -Wl,-E -L/usr/local/lib /usr/local/lib/perl5/5.6.1/mach/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.6.1/mach/CORE -lperl -lm -lc -lcrypt -lutil -R/usr/local/lib -o libplperl.so.0
/usr/bin/ld: /usr/local/lib/perl5/5.6.1/mach/CORE/libperl.a(perl.o): relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/perl5/5.6.1/mach/CORE/libperl.a: could not read symbols: Bad value
gmake: *** [libplperl.so.0] Error 1
gmake: Leaving directory `/tmp/a/ports/databases/p5-postgresql-plperl/work/postgresql-7.4.1/src/pl/plperl'
*** Error code 2
To this non-expert observer, that suggest that the perl 5 extension
mechanism is not working write on AMD64. Can anyone point to a
p5-* port, that
1) works on AMD64
2) makes a shared library for an extension.
(oh, same question for IA64 I guess, although I have not trawled the
logs).
More information about the freebsd-ports
mailing list