gcc: unrecognized option `-KPIC' OR cc: language optional software package not installed"

From: Aurelien Grosshans (a.grosshans@sequences-infos.ch)
Date: Fri May 21 2004 - 08:39:42 EDT


Hi,

I'm actually trying to compile rrdtool-1.0.48 from tarball on Solaris 9
12/02.

When i'm trying to launch make using C Compiler as CC I encoured the
following error :

"/usr/ucb/cc: language optional software package not installed"

When i'm trying to launch make using C Compiler as GCC I encoured the
following error :

"gcc: unrecognized option `-KPIC'"

Please find informations bellow :

$ pkginfo -l | grep SMC
   PKGINST: SMCautoc
   PKGINST: SMCautom
   PKGINST: SMCflex
   PKGINST: SMCgcc
   PKGINST: SMClibgcc
   PKGINST: SMCliconv
   PKGINST: SMClogch
   PKGINST: SMClsof
   PKGINST: SMCmake
   PKGINST: SMCncurses
   PKGINST: SMCpsutil
   PKGINST: SMCtexi
   PKGINST: SMCzlib

$ which cc
/usr/ucb/cc
$ which gcc
/usr/local/bin/gcc
$ echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin/:/usr/ccs/bin:/usr/ucb

$ make site-perl-install CC=cc

Writing Makefile for RRDs
cd perl-shared && make
make[3]: Entering directory `/export/home/u680078/rrdtool-1.0.48/perl-shared'
cc -c -I.. -I../src -I../gd1.3 -DHAVE_CONFIG_H -xO3 -xdepend
-DVERSION=\"1.000481\" -DXS_VERSION=\"1.000481\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DPERLPATCHLEVEL=6 RRDs.c
/usr/ucb/cc: language optional software package not installed
make[3]: *** [RRDs.o] Error 1
make[3]: Leaving directory `/export/home/u680078/rrdtool-1.0.48/perl-shared'
make[2]: *** [perl_shared] Error 2
make[2]: Leaving directory `/export/home/u680078/rrdtool-1.0.48'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/u680078/rrdtool-1.0.48'
make: *** [all] Error 2

$ make site-perl-install CC=gcc

Writing Makefile for RRDs
cd perl-shared && make
make[3]: Entering directory `/export/home/u680078/rrdtool-1.0.48/perl-shared'
gcc -c -I.. -I../src -I../gd1.3 -DHAVE_CONFIG_H -xO3 -xdepend
-DVERSION=\"1.000481\" -DXS_VERSION=\"1.000481\" -KPIC
-I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE -DPERLPATCHLEVEL=6 RRDs.c
gcc: unrecognized option `-KPIC'
gcc: language depend not recognized
gcc: RRDs.c: linker input file unused because linking not done
Running Mkbootstrap for RRDs ()
chmod 644 RRDs.bs
rm -f blib/arch/auto/RRDs/RRDs.so
LD_RUN_PATH="" cc -G RRDs.o -L../src/.libs/ -lrrd_private -lm -o
blib/arch/auto/RRDs/RRDs.so
/usr/ucb/cc: language optional software package not installed
make[3]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1
make[3]: Leaving directory `/export/home/u680078/rrdtool-1.0.48/perl-shared'
make[2]: *** [perl_shared] Error 2
make[2]: Leaving directory `/export/home/u680078/rrdtool-1.0.48'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/u680078/rrdtool-1.0.48'
make: *** [all] Error 2

Have you an idea ? any suggestions ?

-- 
Aurelien Grosshans
mailto:agrosshans@ispnux.net
_______________________________________________
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:28:42 EDT