bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] getopt/'struct options' build error in 1.13.1


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] getopt/'struct options' build error in 1.13.1
Date: Wed, 17 Aug 2011 16:09:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

ops...

Thanks to have reported it.  I am sure it depends from a fix for a
similar error Perry had on AIX.

At this point, it seems the only way to fix the problem is to include
config.h at the very beginning of css.c.  I have looked at the flex
documentation but I can't find anything useful to prevent other files to
be included before the C code snippet.

Has anybody an idea?  Should I go for an hack?

Cheers,
Giuseppe



Jack Nagel <address@hidden> writes:

> I have encountered an issue building wget 1.13.1 on Mac OS X 10.6.8.
> It fails during 'make' with gcc 4.2 here:
>
> /usr/bin/cc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\"
>    -DLOCALEDIR=\"/usr/local/share/locale\" -I.  -I../lib -I../lib -c css.c
> In file included from ../lib/unistd.h:113:0,
>                  from css.c:4738:
> ../lib/getopt.h:196:8: error: redefinition of 'struct option'
> /usr/include/getopt.h:54:8: note: originally defined here
> ../lib/getopt.h:245:12: error: conflicting types for 'getopt_long'
> /usr/include/getopt.h:69:5: note: previous declaration of 'getopt_long' was 
> here
> ../lib/getopt.h:249:12: error: conflicting types for 'getopt_long_only'
> /usr/include/getopt.h:71:5: note: previous declaration of
> 'getopt_long_only' was here
>
> However, I can successfully build wget 1.13 on the same system under
> the same conditions. (Please CC as I am not subscribed to the list).
>
> Thanks in advance for the help.
>
> Jack



reply via email to

[Prev in Thread] Current Thread [Next in Thread]