compiling xpdf on amd64 on 7.0
Dieter
freebsd at sopwith.solgatos.com
Thu Apr 10 17:13:41 UTC 2008
Is there a particular type of goat that needs to be sacrificed
to get xpdf to compile on amd64 running 7.0?
Problem #1:
/usr/ports/devel/p5-Locale-gettext
===> p5-gettext-1.05_1 depends on file: /usr/local/bin/perl5.8.8 - found
===> p5-gettext-1.05_1 depends on shared library: intl - found
===> Configuring for p5-gettext-1.05_1
checking for gettext...NOT USING GCC-4
no
checking for gettext in -L/usr/local/lib -lintl -I/usr/local/include...NOT USING GCC-4
no
gettext function not found. Please install libintl at ./Makefile.PL line 18.
*** Error code 2
Stop in /usr/ports/devel/p5-Locale-gettext.
After figuring out that I'm not supposed to install libintl into the
Makefile.PL file at line 18, but rather build and install port libintl,
I get...
Problem #2:
cd /usr/ports/devel/p5-Locale-libintl
make
In file included from Cwd.xs:6:
ppport.h:3042:1: warning: "PERL_UNUSED_DECL" redefined
In file included from Cwd.xs:2:
/usr/local/lib/perl5/5.8.8/mach/CORE/perl.h:163:1: warning: this is the location of the previous definition
Running Mkbootstrap for Cwd ()
chmod 644 Cwd.bs
rm -f blib/arch/auto/Cwd/Cwd.so
cc -shared -L/usr/local/lib Cwd.o -o blib/arch/auto/Cwd/Cwd.so
NOT USING GCC-4
/usr/bin/ld: /usr/lib/crtbeginT.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/crtbeginT.o: could not read symbols: Bad value
*** Error code 1
cd /usr/ports/devel/p5-PathTools
make
===> Building for p5-PathTools-3.25
rm -f blib/arch/auto/Cwd/Cwd.so
cc -shared -L/usr/local/lib Cwd.o -o blib/arch/auto/Cwd/Cwd.so
NOT USING GCC-4
/usr/bin/ld: /usr/lib/crtbeginT.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
/usr/lib/crtbeginT.o: could not read symbols: Bad value
*** Error code 1
Editing the Makefile to build static instead of shared doesn't work.
Removing -DPIC -fPIC doesn't work either.
I'm afraid to think how much stuff would break if I tried changing
/usr/lib/crtbeginT.o.
So what is the secret?
More information about the freebsd-amd64
mailing list