[osol-discuss] cpan problem with installing readline::gnu

2009-10-21 Thread Harry Putnam
Anyone recognize the problem I hit while installing Term::ReadLine::Gnu 

(Note: I first installed the SUNW pkg SUNWgnu-readline)

Output from installing Term::ReadLine::Gnu

----   ---=---   -   
  CPAN.pm: Going to build H/HA/HAYASHI/Term-ReadLine-Gnu-1.19.tar.gz

Found `/lib/libtermcap.so'.
cc  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -DHAVE_STRING_H 
rlver.c -o rlver-lreadline -ltermcap
It seems that you have the GNU Readline Library version 5.2.
Checking if your kit is complete...
Looks good
Writing Makefile for Term::ReadLine::Gnu
cp Gnu.pm blib/lib/Term/ReadLine/Gnu.pm
cp Gnu/XS.pm blib/lib/Term/ReadLine/Gnu/XS.pm
AutoSplitting blib/lib/Term/ReadLine/Gnu/XS.pm 
(blib/lib/auto/Term/ReadLine/Gnu/XS)
/usr/local/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap 
/usr/perl5/5.8.4/lib/ExtUtils/typemap -typemap typemap  Gnu.xs  Gnu.xsc  mv 
Gnu.xsc Gnu.c
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
cc: Gnu.c: linker input file unused because linking not done
Running Mkbootstrap for Term::ReadLine::Gnu ()
chmod 644 Gnu.bs
rm -f blib/arch/auto/Term/ReadLine/Gnu/Gnu.so
LD_RUN_PATH=/usr/lib:/lib cc  -G Gnu.o  -o 
blib/arch/auto/Term/ReadLine/Gnu/Gnu.so   -lreadline -ltermcap   
cc: Gnu.o: No such file or directory
make: *** [blib/arch/auto/Term/ReadLine/Gnu/Gnu.so] Error 1
  /usr/gnu/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] cpan problem with installing readline::gnu

2009-10-21 Thread Brandon Hume
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.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] cpan problem with installing readline::gnu

2009-10-21 Thread Stephen Hahn
* 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


Re: [osol-discuss] cpan problem with installing readline::gnu

2009-10-21 Thread Harry Putnam
Stephen Hahn s...@sun.com writes:

 * 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.

That actually looks like it might hold the mantle of easiest... since
no installs are required.

So anyway... giving it a try that way.

Whoops.. was I supposed to be able to use the command verbatim?

If so, it fails here:

  # /usr/perl5/bin/perlgcc -mCPAN -e shell/;
  syntax error at -e line 1, at EOF
  Execution of -e aborted due to compilation errors.

So trying /usr/perl5/bin/perlgcc -MCPAN -e shell;

 (ok we're off and running)

But, still fails to install Term::ReadLine::gnu

Cpan told me when the run started I probably needed to install
Term::ReadKey, so I installed that first then tried
Term::ReadLine::Gnu

It fails as shown below but also had stalled the terminal right at the
point you see at the end.

  CPAN.pm: Going to build H/HA/HAYASHI/Term-ReadLine-Gnu-1.19.tar.gz

Found `/lib/libtermcap.so'.
gcc  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -DHAVE_STRING_H 
rlver.c -o rlver-lreadline -ltermcap
It seems that you have the GNU Readline Library version 5.2.
Checking if your kit is complete...
Looks good
Have /usr/perl5/5.8.4/lib/Sun/Solaris/PerlGcc
Want /usr/perl5/5.8.4/lib/i86pc-solaris-64int
Your perl and your Config.pm seem to have different ideas about the 
architecture they are running on.
Perl thinks: [PerlGcc]
Config says: [i86pc-solaris-64int]
This may or may not cause problems. Please check your installation of perl 
if you have problems building this extension.
Writing Makefile for Term::ReadLine::Gnu
cp Gnu.pm blib/lib/Term/ReadLine/Gnu.pm
cp Gnu/XS.pm blib/lib/Term/ReadLine/Gnu/XS.pm
AutoSplitting blib/lib/Term/ReadLine/Gnu/XS.pm 
(blib/lib/auto/Term/ReadLine/Gnu/XS)
/usr/perl5/5.8.4/bin/perl /usr/perl5/5.8.4/lib/ExtUtils/xsubpp  -typemap 
/usr/perl5/5.8.4/lib/ExtUtils/typemap -typemap typemap  Gnu.xs  Gnu.xsc  mv 
Gnu.xsc Gnu.c
gcc -c   -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TS_ERRNO -O2 
-fno-strict-aliasing   -DVERSION=\1.19\ -DXS_VERSION=\1.19\ -fPIC 
-I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE  -DHAVE_STRING_H Gnu.c
Running Mkbootstrap for Term::ReadLine::Gnu ()
chmod 644 Gnu.bs
rm -f blib/arch/auto/Term/ReadLine/Gnu/Gnu.so
LD_RUN_PATH=/usr/lib:/lib gcc  -G Gnu.o  -o 
blib/arch/auto/Term/ReadLine/Gnu/Gnu.so   \
   -lreadline -ltermcap \
  
chmod 755 blib/arch/auto/Term/ReadLine/Gnu/Gnu.so
cp Gnu.bs blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs
chmod 644 blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs
Manifying blib/man3/Term::ReadLine::Gnu.3
  HAYASHI/Term-ReadLine-Gnu-1.19.tar.gz
  /usr/gnu/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/perl5/5.8.4/bin/perl -MExtUtils::Command::MM -e 
test_harness(0, 'blib/lib', 'blib/arch') t/*.t
t/00checkver.t ..   HAYASHI/Term-ReadLine-Gnu-1.19.tar.gz
  /usr/gnu/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports HAYASHI/Term-ReadLine-Gnu-1.19.tar.gz
Running make install
  make test had returned bad status, won't install without force

Term::ReadLine::Gnu version: 1.19
GNU Readline Library version: 5.2
t/00checkver.t .. ok   
Failed during this command:
 HAYASHI/Term-ReadLine-Gnu-1.19.tar.gz: make_test NO

cpan[2] install Term::ReadLine::Gnu
t/callback.t  ok
t/history.t . ok tory.t . 
cpan[3] okt ...Try `/usr/perl5/5.8.4/bin/perl -Mblib t/readline.t verbose', if 
you will.
t/readline.t  ok   
All tests successful.
 Files=4, Tests=196,  1 wallclock secs 
( 0.08 usr  0.02 sys +  0.20 cusr  0.04 csys =  0.34 CPU)
Result: PASS

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


Re: [osol-discuss] cpan problem with installing readline::gnu

2009-10-21 Thread Harry Putnam
Brandon Hume hume-ml+open...@bofh.ca writes:

 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.

The `next' fix there.. it certainly is not obvious, after looking at
the file, as to how I might edit that file to use GCC flags.

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org