Re: error installing HTML:Parser

Andy Lester <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
On Jul 31, 2007, at 8:45 PM, Brian K Fulfrost wrote:

> gcc -c   -fno-strict-aliasing -pipe -Wdeclaration-after-statement - 
> I/usr/local/i
> nclude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -DVERSION=\"3.56 
> \" -DXS_VER
> SION=\"3.56\" -fPIC "-I/usr/local/lib/perl5/5.8.8/sun4-solaris/ 
> CORE" -DMARKED_S
> ECTION Parser.c
> cc1: unrecognized option `-Wdeclaration-after-statement'
> make: *** [Parser.o] Error 1

It looks like the config script is using an option that your GCC  
doesn't support.  I wonder if HTML::Parser is mis-detecting the  
abilities of your GCC, perhaps with some sort of table where it says  
"Oh, you're using 3.xx of GCC, you can handle these warning flags."

To get around it: Edit the Makefile manually and remove the part  
where -Wdeclaration-after-statement is in CCFLAGS.

xoxo,
Andy

--
Andy Lester => [email protected] => www.petdance.com => AIM:petdance
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.