SteveK1979 |
11-24-2007 10:06 AM |
Compile perl-5.8.8 on Solaris 9 using Sun C compiler
Hi,
I'm having a problem compiling Perl 5.8.8 on Solaris 9 using the Sun C compiler that comes as part of Sun Studio 11.
Code:
$ /opt/SUNWspro/bin/cc -V
cc: Sun C 5.8 2005/10/13
The error I'm getting is as follows:
Code:
/opt/SUNWspro/bin/cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend -DVERSION=\"1.04_01\" -DXS_VERSION=\"1.04_01\" -KPIC "-I../../.." C.c
Running Mkbootstrap for B::C ()
chmod 644 C.bs
rm -f ../../../lib/auto/B/C/C.so
/opt/SUNWspro/bin/cc -G -L/usr/lib -L/usr/ccs/lib -L/opt/SUNWspro/prod/lib/v8plus -L/opt/SUNWspro/prod/lib -L/lib -L/usr/local/lib C.o -o ../../../lib/auto/B/C/C.so \
\
ld: fatal: relocation error: file C.o: section .rela.text: invalid relocation type: 0x52
*** Error code 1
make: Fatal error: Command failed for target `../../../lib/auto/B/C/C.so'
Any pointers would be much appreciated - I've not found much of use via Google.
Cheers,
Steve
|