CC/GCC Problems

From: John Szkudlapski (johns@bsfc.ac.uk)
Date: Tue Mar 04 2003 - 04:06:44 EST


Hi All

I am running Solaris 9 on a Netra T1, I have installed GCC (2.95.3) from
the companion CD, but I need to use CC, there are some modules from the
CPAN archives that I need to install I have tried to create a symbolic
link from GCC to CC and even when I do

CC=GCC
or
Perl Makefile.PL CC=gcc

I still get a lot of error messages, i.e from HTML-PARSER-3.27

#perl Makefile.PL CC=gcc
# make
gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend
-DVERSION=\"3.27\" -DXS_VERSION=\"3.27\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DMARKED_SECTION Parser.c
gcc: unrecognized option `-KPIC'
gcc: language depend not recognized
gcc: Parser.c: linker input file unused since linking not done Running
Mkbootstrap for HTML::Parser () chmod 644 Parser.bs rm -f
blib/arch/auto/HTML/Parser/Parser.so
LD_RUN_PATH="" cc -G Parser.o -o blib/arch/auto/HTML/Parser/Parser.so

cc: Parser.o: No such file or directory
cc: No input files
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/HTML/Parser/Parser.so'

I tried to edit the Makefile and remove the reference to CCCDLFLAGS =
-KPIC to read CCCDLFLAGS = -fPIC, but that returned the following : -

# make
gcc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend
-DVERSION=\"3.27\" -DXS_VERSION=\"3.27\" -fPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DMARKED_SECTION Parser.c
gcc: language depend not recognized
gcc: Parser.c: linker input file unused since linking not done Running
Mkbootstrap for HTML::Parser () chmod 644 Parser.bs rm -f
blib/arch/auto/HTML/Parser/Parser.so
LD_RUN_PATH="" cc -G Parser.o -o blib/arch/auto/HTML/Parser/Parser.so

cc: Parser.o: No such file or directory
cc: No input files
*** Error code 1
make: Fatal error: Command failed for target
`blib/arch/auto/HTML/Parser/Parser.so'

Can someone shed some light on how I can get CC working on this machine,
I don't want to pay for the Sun One Studio/Forte Developer.

Regards

------------------------------------
John Paul Szkudlapski (Web Manager)
Computer Services - BSFC
t: +44 151 651 3720
f: +44 151 653 4419
m: +44 780 154 2033
w: http://hermes.bsfc.ac.uk

****************************************************************
Birkenhead Sixth Form College

This message is sent in confidence for the addressee only;
If it has come to you in error please notify compserv@bsfc.ac.uk

The contents of this e-mail are the personal views of the sender,
which may not necessarily reflect those of the college.

This message has been scanned for viruses.
The college cannot accept any responsibility for any viruses
which may have come from external sources.

****************************************************************
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:55 EDT