Subject: | make fails on Solaris 8 with gcc |
I am trying to install Compress::Zlib on Solaris 8.
(uname -a: SunOS bmfsun1 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-250)
As you know, there is no cc on Solaris 2.x, so I installed gcc
Show quoted text
> gcc version 2.95.2 19991024 (release)
I have made a link /usr/local/bin/cc to /usr/local/bin/gcc
I have set the env-variable CC=gcc
Now, make fails with the following error:
bash-2.03# pwd
/tmp/install/Compress-Zlib-1.16
bash-2.03# make
cc -c -I/usr/local/include -xO3 -xdepend -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\" -KPIC -I/usr/perl5/5.00503/sun4-solaris/CORE Zlib.c
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: Zlib.c: linker input file unused since linking not done
LD_RUN_PATH="/usr/local/lib" cc -o blib/arch/auto/Compress/Zlib/Zlib.so -R/usr/local/lib -G Zlib.o -L/usr/local/lib -lz
cc: Zlib.o: Datei oder Verzeichnis nicht gefunden
make: *** [blib/arch/auto/Compress/Zlib/Zlib.so] Error 1
Please help! Thank you!
Greetings, BlackBird (Germany)