On 11 Apr 2002 at 19:14, Hrvoje Niksic wrote:
> "Nelson H. F. Beebe" <[EMAIL PROTECTED]> writes:
>
> > c89 -I. -I. -I/opt/include -DHAVE_CONFIG_H
>-DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" -DLOCALEDIR=\"/usr/local/share/locale\" -O
>-c connect.c
> > cc-1164 c89: ERROR File = connect.c, Line = 94
> > Argument of type "int" is incompatible with parameter of type "const char *".
> >
> > logprintf (LOG_VERBOSE, _("Connecting to %s[%s]:%hu... "),
> > ^
> >
> > cc-1164 c89: ERROR File = connect.c, Line = 97
> > Argument of type "int" is incompatible with parameter of type "const char *".
>
> The "argument of type int" is probably an indication that the `_'
> macro is either undefined or expands to an undeclared function. The
> compiler rightfully assumes the function to return int and complains
> about the type mismatch.
>
> If you check why the macro is misdeclared, you'll likely discover the
> source of the problem.
Perhaps HAVE_NLS is defined but HAVE_LIBINTL_H isn't defined. That
would cause '_(string)' to expand to 'gettext (string)' but with no
declaration of the gettext() function, causing the compiler to assume a
default declaration of 'int gettext()'.
I think we need to examine the 'config.log' file produced when
running './configure'.