Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Error | 12 comments | Create New Account
Click here to return to the 'Error' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Error
Authored by: scope on Oct 05, '01 04:49:14PM

I keep on getting this message when I make, or make install:

cc -I. -I. -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/usr/local/etc/wgetrc" -DLOCALEDIR="/usr/local/share/locale" -g -O2 -c html-parse.c
html-parse.c: In function `advance_declaration':
html-parse.c:449: character constant too long
html-parse.c:449: parse error before character constant
html-parse.c:449: stray '/' in program
html-parse.c:454: character constant too long
html-parse.c:461: character constant too long
html-parse.c:472: character constant too long
html-parse.c:481: character constant too long
html-parse.c:481: character constant too long
html-parse.c:481: stray '/' in program
html-parse.c:773: Unterminated string constant
make[1]: *** [html-parse.o] Error 1
make: *** [install.bin] Error 2

Can anyone help?



[ Reply to This | # ]
Fix the compile error
Authored by: robg on Oct 09, '01 10:00:13AM
Thanks to Matthew, who submitted this fix via email. You need to change the line which reads:
assert (ch == '\'' || ch == '"');
in html-parse.c, line 435, to:
assert (ch == '\'' || ch == '\"');
It should then compile properly (I haven't tested it myself, but Matthew said it worked for him. -rob.

[ Reply to This | # ]
Fix the compile error
Authored by: macubergeek on Oct 14, '01 12:36:41AM

I tried this and it worked!
Frankly I'm in awe of anyone who can find this nit picky a detail to fix to get things working;-)
not that I understand exactly what was being fixed here of course.



[ Reply to This | # ]
Another way to fix it without editing
Authored by: nibaq on Oct 18, '01 11:03:52PM

this is what I got form the wget mailing list and works


Denis Ahrens wrote:
> In line 435 in html-parse.c is a non-escaped doubleqoute (").

That's perfectly valid code.

> I cannot compile this file under MacOSX without escaping this char.

That's a bug in cpp-precomp, Apple's C pre-processor that implements support
for pre-compiled headers. The way to avoid the error is to type the following
(tcsh shell semantics) before executing ./configure:

setenv CPPFLAGS "-no-cpp-precomp"

You pretty much want to do that with almost everything you compile on Mac OS
X, by the way. Cpp-precomp is really only useful when compiling the Darwin
kernel.

Hope this helps,
Ed



[ Reply to This | # ]