View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 2 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Jul 27, 2006 9:03 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
I'm having a lot of trouble with my perl. A while back I was using CPAN to install some perl modules to get my PPV listings to show up in my guide and in the process of trying to get that up and running, I seemed to have broken my perl portion of KnoppMyth. I never did get it up and running, but I know I had it working on previous KM installs. Now, whenever I use CPAN to install a perl module, I get the following error:
Code:
Writing Makefile for Digest::SHA
cp SHA.pm blib/lib/Digest/SHA.pm
/usr/bin/perl /usr/share/perl/5.8/ExtUtils/xsubpp  -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap typemap  SHA.xs > SHA.xsc && mv SHA.xsc SHA.c
cc -c  -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"5.42\" -DXS_VERSION=\"5.42\" -fPIC "-I/usr/lib/perl/5.8/CORE"  -DSHA_PERL_MODULE -DSHA_STO_CLASS=static SHA.c
cc1: error: unrecognized option `-Wdeclaration-after-statement'
make: *** [SHA.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Failed during this command:
  MSHELOR/Digest-SHA-5.42.tar.gz               : make NO


The above was run as root, so there should not be any permission problems (I assume. :?) I was thinking of "refreshing" my perl with the KM install CD. However, I'm not sure what I need to refresh to bring my perl back to a virgin state. Does anyone know (1) how I can fix my problem with the errors or (2) what I need to "refresh" without breaking my box?

Thanks!

_________________
Mike
My Hardware Profile


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 01, 2006 4:20 pm 
Offline
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location: Los Angeles
I figured out the answer to my problems, so I thought I'd share...

Quote:
cc1: error: unrecognized option `-Wdeclaration-after-statement'

is a result of perl-5.8.8 and gcc <= 3.4 not playing nicely together. To work around this, you need to manually edit your perl module's Makefile (located under the /root/.cpan directory) to remove the reference to
Quote:
Wdeclaration-after-statement
and then issue:
Code:
# make
# make test
# make install

_________________
Mike
My Hardware Profile


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu