On Fri, 3 Sep 1999, Marcelo Alexandre de Oliveira wrote:
> I�m compiling o htdig 3.1.2 in my AIX 4.1.4 and received the following
> messages:
>
> Connection.cc: In method `Connection::Connection(int)':
> Connection.cc:63: passing `int *' as argument 3 of `getpeername(int,
> sockaddr *, long
> unsigned int *)'
> Connection.cc: In method `int Connection::get_port()':
> Connection.cc:287: passing `int *' as argument 3 of `getsockname(int,
> sockaddr *, long
> unsigned int *)'
> Connection.cc: In method `class Connection * Connection::accept(int =
> 0)':
> Connection.cc:313: passing `int *' as argument 3 of `accept(int,
> sockaddr *, long unsi
> gned int *)'
> Connection.cc:325: passing `int *' as argument 3 of `getpeername(int,
> sockaddr *, long
> unsigned int *)'
> Connection.cc: In method `int Connection::read_partial(char *, int)':
> Connection.cc:375: `fd_set' undeclared (first use this function)
> Connection.cc:375: (Each undeclared identifier is reported only once
> Connection.cc:375: for each function it appears in.)
> Connection.cc:375: parse error before `;'
> Connection.cc:376: warning: implicit declaration of function `int
> FD_ZERO(...)'
> Connection.cc:376: `fds' undeclared (first use this function)
> Connection.cc:377: warning: implicit declaration of function `int
> FD_SET(...)'
> Connection.cc:383: warning: implicit declaration of function `int
> select(...)'
> Connection.cc: In method `char * Connection::get_peername()':
> Connection.cc:446: passing `int *' as argument 3 of `getpeername(int,
> sockaddr *, long
> unsigned int *)'
> Connection.cc: In method `char * Connection::get_peerip()':
> Connection.cc:470: passing `int *' as argument 3 of `getpeername(int,
> sockaddr *, long
> unsigned int *)'
> make[1]: *** [Connection.o] Error 1
> make: *** [all] Error 1
Mhm - I think only the fd_set errors can be a problem, the others should
only be warning messages.
Try adding
#include <sys/select.h>
to the top of htlib/Connection.cc
Unfortunately I don't have enough space to install the C compiler on our
only AIX 4.1 box but this works for 4.2...
Hope that helps,
Leo
-----------------------------------------------------------------------
Alexander (Leo) Bergolth [EMAIL PROTECTED]
WU-Wien - Zentrum fuer Informatikdienste http://leo.wu-wien.ac.at
Info Center
Linux - because reboots are for hardware changes
------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word unsubscribe in
the SUBJECT of the message.