Forrest Garnett <[EMAIL PROTECTED]> writes:

> We see the enclosed errors attempting to compile the most recent
> wget package with aix 4.3.3 and aix 5.1.

Thanks for the report.  There are several problems with the
compilation.

For one, all the logprintf() lines are failing.  This could come from
gettext() not being declared, and the compiler assuming that it
returns `int', hence "assignment between const char * and int".
Ideally, we should find out why Wget thinks it has gettext when it
doesn't.  Perhaps GNU libintl is installed without the corresponding
header files?  config.log output might be useful for debugging this
one.  Workaround: try building with --disable-nls.

The error at line 255 is in the call to getsockname.  Apparently, it
expects `size_t *' as the third argument, rather than `int *'.  I've
now fixed configure to try to use socklen_t, else check whether
accept() and friends prefer size_t or int, and define socklen_t to
that.  As a workaround, you can change `int addrlen' to `size_t
addrlen' on line 254 of connect.c.  The same goes for lines 305 and
338.

BTW, which compiler are you using, exactly?  What are the sizes of
`long' and `void *' on the machine?

> Have you any suggestions on how to proceed?

It's always a good idea to work with the most recent source.  Please
get the sources from CVS (http://wget.sunsite.dk explains how) and try
to compile them.

Reply via email to