gcc setup

gcc setup

Post by RHS Linux Use » Tue, 13 Aug 1996 04:00:00

After installing MetroX OSF Motif my C compiler can no longer
find all of the libraries.  As near as I can tell the LIBDIR
environment variable is no longer correctly set.  How is gcc
reconfigured to correct this?


1. Solaris 8 and GCC setup probs?

My first experience with Unix was using ISC SysV unix on a 386 PC, I
guess this was circa 1991. I remember attempting to compile various
programs from source and often failing miserably.

Soon after, 1992, I was introduced to Linux, SLS, kernel 0.99pl9, RPM's
did not exist and the only way to get the stuff you wanted running was
to compile from source. This was often more successful than attempting
a compile on ISC but ocasionally I had to 'tweak' things to make it
compile, often the README's that came with the source did not even
mention Linux, it was "AIX this", "SunOS that" etc.

Anyway, along came RedHat and RPM's and I became lazy! Most stuff you
want these days for Linux can be found as an RPM. Ok they are not the
most flexible way to install some stuff and you do still have to resort
to source compiling now and again.

Well, now I am cutting my teeth on Solaris 8 on Sparc's and seem to be
running into problems compiling some things.
I installed several of the supplemental packages including gcc. I think
all this software ended up in /opt/sfw.

As an example the latest thing I just tried to compile was the Perl DBI
module stuff, after doing the 'perl Makefile.pl' I run make and get:-

bash-2.03# make
cc -c   -xO3 -xdepend    -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" -KPIC
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: 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
cc -c   -xO3 -xdepend    -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" -KPIC
cc: unrecognized option `-KPIC'
cc: language depend not recognized
cc: 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
cc: DBI.o: No such file or directory
cc: No input files
make: *** [blib/arch/auto/DBI/DBI.so] Error 1

What I am wondering, is there some routine steps that should be taken
after installing the gcc package on Solaris to make it function
e.g. PATH, LD_LIBRARY_PATH, I have heard people say link gcc to
/usr/ucb/cc etc?
What am I missing? Does a FAQ exist for this?

Many thanks for reading this far!


(mike at the-dents dot org)

Sent via Deja.com http://www.deja.com/
Before you buy.

2. et0 defaults to off...help!

3. gcc setup, need help!

4. Linux is INFERIOR to Windows

5. GCC setup question?

6. Changing default behaviour of ^Z

7. gcc setup

8. 24bpp? (not 32bpp)

9. gcc setup problems

10. newbie + gcc setup => HELP....

11. problems with cc/gcc setup in sls 1.03 distribution

12. gcc setup

13. GCC setup help