Re: [htdig] Compiling on AIX 3.2


Alexander Bergolth (leo@strike.wu-wien.ac.at)
Sat, 29 May 1999 18:31:38 +0200 (MES)


On Tue, 25 May 1999, Brian Salter-Duke wrote:

> I am trying to compile htdig on an old RS6000 running AIX 3.2.
> The db library compiles fine and then I get:-
>
> gmake[1]: Leaving directory `/home/b_duke/prog/htdig-3.1.2/db/dist'
> gmake[1]: Entering directory `/home/b_duke/prog/htdig-3.1.2/htlib'
> c++ -c -DDEFAULT_CONFIG_FILE=\"/home/web/htdig.conf\" -I../htlib -I../htcommon -I../db/dist -I../include -g -O2 Connection.cc
> Connection.cc: In method `Connection::Connection(int)':
> Connection.cc:63: warning: implicit declaration of function `int getpeername(...)'
> Connection.cc:98: warning: implicit declaration of function `int socket(...)'
> [...]

Mhm - I don't think that these messages are the real problem.
They appear only because there are no prototypes for this function in the
header files.

> Connection.cc:375: `fd_set' undeclared (first use this function)
                      ^^^^^^
This causes the compiler to abort.

To use this structure you have to include <sys/select.h>.
(FD_ZERO, FD_SET are also defined in this header.)

Hope that helps!

Cheers,
         Leo

-----------------------------------------------------------------------
Alexander (Leo) Bergolth leo@leo.wu-wien.ac.at
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
htdig@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Sat May 29 1999 - 08:50:31 PDT