* Brandon Hume <hume-ml+open...@bofh.ca> [2009-10-21 16:17]:
> On Wed, 2009-10-21 at 10:55 -0500, Harry Putnam wrote:
> > Anyone recognize the problem I hit while installing
> > Term::ReadLine::Gnu 
> 
> > cc -c   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -xO3
> > -xspace -xildoff   -DVERSION=\"1.19\" -DXS_VERSION=\"1.19\" -KPIC
> > "-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE"  -DHAVE_STRING_H
> > Gnu.c
> > cc: unrecognized option `-KPIC'
> > cc: language ildoff not recognized
> 
> Apparently 'cc' on your system refers to GCC.  Perl, however, was
> compiled with Sun Studio.  It stores this information and tries to
> re-use the same flags.  So, your Perl is using Sun Studio flags with
> gcc.
> 
> Easiest fix?  Install Sun Studio, which I believe is in the package
> repository, and put it before GCC in your path.  Next fix?
> Edit /usr/perl5/5.8.4/lib/i86pc-solaris-64int/Config.pm and edit it to
> use GCC flags.

  I agree with easiest; next easy, however, I suggest is using
  /usr/perl5/bin/perlgcc, which already has appropriate compiler
  settings for compiling using gcc instead of Sun Studio cc.  So:

  /usr/perl5/bin/perlgcc -mCPAN -e shell/;

  to use gcc with CPAN builds.

  - Stephen

-- 
s...@sun.com  http://blogs.sun.com/sch/
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to