error installing HTML:Parser

error installing HTML:Parser

am 01.08.2007 03:45:50 von fulfrost

I'm trying to insatll the dependencies for libwww and I'm
installing HTML:Parrer on a Solaris 8 server and I get the
following error when running "make":



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


Help!!

Thanks.

Brian



GIS Coordinator and Lecturer
Department of Environmental Studies
University of California, Santa Cruz
http://gis.ucsc.edu
phone: 831-459-2890; fax: 831-459-4015

Re: error installing HTML:Parser

am 01.08.2007 07:07:00 von Andy

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 => andy@petdance.com => www.petdance.com => AIM:petdance