May be U also have a compiler other than GCC and the Makefile.PL detected
that and set the compilation flags accordingly. By manually changing the CC
and LD settings to GCC U seem to end up with illegal flags.
I would suggest that U do a make realclean and start again. This time
without changing the CC and LD vars.
Then do a make, make test and if all is well do a make install
regards
adrian
-----Original Message-----
From: Srinivasa Rao Katta [mailto:[EMAIL PROTECTED]]
Sent: Friday, 14 September 2001 04:43
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Help Please
Folks,
How are you ?.
I have downloaded DBI-1.20.tar.gz from the www.perl.org.
Here is the system info.
SunOS suncore 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-60
I have updated Makefile for gcc ,as like following;
CC = gcc
LD = gcc
I have got following error mesg,When I run the make cmd.
Here is the error info.
-----------------------------
# /usr/ccs/bin/make
gcc -c -xO3 -xdepend -DVERSION=\"1.20\" -DXS_VERSION=\"1.20\"
-KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS Perl.c
gcc: unrecognized option `-KPIC'
gcc: language depend not recognized
gcc: Perl.c: linker input file unused because linking not done
/usr/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.20\" -DXS_VERSION=\"1.20\"
-KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE -DDBI_NO_THREADS DBI.c
gcc: unrecognized option `-KPIC'
gcc: language depend not recognized
gcc: DBI.c: linker input file unused because linking not done
LD_RUN_PATH="" gcc -o blib/arch/auto/DBI/DBI.so -G DBI.o
gcc: DBI.o: No such file or directory
gcc: No input files
*** Error code 1
make: Fatal error: Command failed for target `blib/arch/auto/DBI/DBI.so'
-----------------------------------------------------
Please advice me.
Thanks,
Srinivas.