jingyuan wang wrote:

> Yes, I have substitued -fPIC. but i have another error:
> 
> gcc -c   -xO3 -xdepend     -DVERSION=\"1.18\"  -DXS_VERSION=\"1.18\" -fPIC
> -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c
> gcc: language depend not recognized
> gcc: Perl.c: linker input file unused since linking not done
> /bin/perl -I/usr/perl5/5.00503/sun4-solaris -I/usr/perl5/5.00503
> /usr/perl5/5.00503/ExtUtils/xsubpp  -typemap
> /usr/perl5/5.00503/ExtUtils/typemap DBI.xs >xstmp.c && mv xstmp.c DBI.c
> gcc -c   -xO3 -xdepend     -DVERSION=\"1.18\"  -DXS_VERSION=\"1.18\" -fPIC
> -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS DBI.c
> gcc: language depend not recognized
> gcc: DBI.c: linker input file unused since linking not done
> Running Mkbootstrap for DBI ()
> chmod 644 DBI.bs
> LD_RUN_PATH="" cc -o blib/arch/auto/DBI/DBI.so  -G DBI.o
> /usr/ucb/cc:  language optional software package not installed
> *** Error code 1
> make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so'
> 
> Do you known about this error?


Rebuild Perl with the GCC compiler.  Anything else is too fraught with 
peril to be reliable.

This is the standard FAQ advice for Solaris 8.



> Andrew Crum wrote:
>>Yes.
>>gcc does not understand -KPIC. For gcc, substitute -fPIC.
>>Look for it in the Makefile.PL or possibly in the Makefile generated by
>>'make Makefile.PL'.
>>
>>At 03:55 PM 6/21/2002 +0200, you wrote:
>>
>>>Hallo,
>>>I have tried  to install the Mysql module. By the instruction of
>>>http://www.mysql.com/doc/P/e/Perl_installation.html I have a problem in
>>>the 3 step:make!!!(I
>>>have the sun solaris 8 system.)
>>>I have following errors:gcc -c   -xO3 -xdepend     -DVERSION=\"2.101\"
>>>-DXS_VERSION=\"2.101\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE
>>>Dumper.c
>>>gcc: unrecognized option `-KPIC'
>>>gcc: language depend not recognized
>>>gcc: Dumper.c: linker input file unused since linking not done


-- 
Jonathan Leffler ([EMAIL PROTECTED], [EMAIL PROTECTED]) #include 
<disclaimer.h>
Guardian of DBD::Informix 1.00.PC2 -- http://dbi.perl.org/

Reply via email to