I thought you were just going to remove the include of wget.h ? On Aug 17, 2011, at 9:09 AM, Giuseppe Scrivano wrote:
> 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 <jackna...@gmail.com> 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