LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Compile perl-5.8.8 on Solaris 9 using Sun C compiler (https://www.linuxquestions.org/questions/solaris-opensolaris-20/compile-perl-5-8-8-on-solaris-9-using-sun-c-compiler-602095/)

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


All times are GMT -5. The time now is 10:17 PM.