Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > help!!! Errors trying to build wget-1.7 !!!

help!!! Errors trying to build wget-1.7 !!!
Thread Tools
Dedicated MacNNer
Join Date: Feb 2000
Location: Sherman Oaks, CA
Status: Offline
Reply With Quote
Aug 2, 2001, 10:00 PM
 
I know very little about building but I need wget-1.7 for its cookie support; OS X comes with wget-1.5.3 and wget-1.7 is the first to support cookie handling.

So anyway I got 1.7 from ftp.gnu.org/gnu/wget , ran ./configure ... everything seemed ok ... then ran make, and it popped up errors on html-parse.c:
"/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
Now...I went to the lines specified, and I couldn't see what the problem was. The lines with supposed stray "\"s don't have any "\" on them at all.

Could someone experienced at compiling CLI apps like this take a shot at it? Help me out? Or maybe compile it yourself and post an installer?

Thanks...
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Aug 3, 2001, 10:12 AM
 
A few lines above that, where it says assert(ch == '\'' || ch == '"'), change the '"' to '\"' (i.e. add the backslash to escape it).

I am a bit confused as to why this is necessary, but it probably has to do with how the assert() macro is defined -- it is likely trying to use the contents of the expression as a constant string (putting it inside of " ... " characters, so the escape becomes necessary). Just a guess though.
     
Dedicated MacNNer
Join Date: Feb 2000
Location: Sherman Oaks, CA
Status: Offline
Reply With Quote
Aug 3, 2001, 11:01 AM
 
thanks! That did the trick. I should have thought of that...earlier in the program he uses the '\"' syntax.

Did it take very long to figure out?
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 11:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2