Thread

Posted on Fri Feb 10 21:37:27 2006 by redbeard
HTML::Parser installation borking
Hey, all, I'm trying to install HTML::Parser 3.49 with gcc 2.95.3, and I get the following error that I am unsure of how to fix. Any help would be appreciated.
cc -c -fno-strict-aliasing -pipe -I/usr/local/include -O2 -DVERSION=\"3.49\" -DXS_VERSION=\" +3.49\" -DPIC -fPIC "-I/usr/libdata/perl5/i386-openbsd/5.8.5/CORE" -DMARKED_SECTION Parser.c In file included from Parser.xs:115: hparser.c: In function `report_event': hparser.c:145: syntax error before `offset' hparser.c:197: `line' undeclared (first use in this function) hparser.c:197: (Each undeclared identifier is reported only once hparser.c:197: for each function it appears in.) hparser.c:298: `offset' undeclared (first use in this function) hparser.c:300: `column' undeclared (first use in this function) *** Error code 1 Stop in /root/HTML-Parser-3.49.
Direct Responses: 1789 | Write a response
Posted on Sat Feb 11 21:02:33 2006 by redbeard in response to 1783
Re: HTML::Parser installation borking
Note: I was doing the above on openBSD 3.6. Solution: Use a newer version of gcc. For those who, for whatever reason, can't replace their system's compiler wholesale, just install the new version (I used pkg_add to get 3.3) and then edit the Makefile, replacing cc in 'CC = cc' with /usr/local/bin/egcc - worked like a charm.
Write a response