Oops - the syntax is "ln -s <source> <new target>" so
use "ln -s /usr/local/bin/gcc /usr/local/bin/cc" instead.

Marc


-----Original Message-----
From: Marc Beasley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 4:22 PM
To: Louie Iacona; '[EMAIL PROTECTED]'
Subject: RE: Trying to build with gcc on Solaris ...


Hi,

Try "ln -s /usr/local/bin/cc /usr/local/bin/gcc" and make sure
that /usr/local/bin is ahead of /usr/ucb in your path.  This
will let the make program find gcc even though you specified
CC=gcc.  This might be considered a hack, but it worked for
me!

Marc



-----Original Message-----
From: Louie Iacona [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:36 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: Trying to build with gcc on Solaris ...


Hello - I'm attempting to build the current DBI on
Solaris 2.8.   We did not purchase the C development option pack, 
so we're relying on gcc. 
How do I get the Makefile.PL script 
to generate a Makefile appropriate for gcc??
I tried the following command line .... 

        $   make CC=gcc
        gcc -c   -xO3 -xdepend     -DVERSION=\"1.15\"  -DXS_VERSION=\"1.15\"
-KPIC -I/us
        r/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 since 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 >xs
        tmp.c && mv xstmp.c DBI.c
        gcc -c   -xO3 -xdepend     -DVERSION=\"1.15\"  -DXS_VERSION=\"1.15\"
-KPIC -I/us
        r/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 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
        /usr/ucb/cc:  language optional software package not installed
        *** Error code 1
        make: Fatal error: Command failed for target
`blib/arch/auto/DBI/DBI.so'       

 ...... but all  brute-force change attempts to the Makefile itself 
have fixed one problem while creating two or more new problems.
The cleanest/easiest approach would be to get 
Makefile.PL to do the right thing based on gcc.

Any clues?  
Thanks much in advance.

Louie I

Louis J Iacona   [EMAIL PROTECTED] 
Sr Consulting Engineer  973.984.2229 x455
OmniE Labs, Inc.  http://www.omnie.com


Reply via email to