[IRCServices] 5.04 wont compile on bsd
Sean Kelly
smkelly at zombie.org
Tue Nov 19 03:41:00 PST 2002
On Mon, Nov 18, 2002 at 08:27:19PM -0500, deuce wrote:
>
> Just downloaded 5.04 and this is the first time I have had compile errors,
> been using version 5 since early alpha.
> /usr/include/sys/socket.h:54: conflicting types for `socklen_t'
> defs.h:169: previous declaration of `socklen_t'
> gmake: *** [actions.o] Error 1
> This is with gmake.
The 'check_socklen_t' check in the configure script is broken. It only
includes <unistd.h>. On FreeBSD, you must also include <sys/socket.h> to
get socklen_t:
$ grep socklen_t /usr/include/sys/socket.h
typedef __socklen_t socklen_t;
If you add '#include <sys/socket.h>' to the 'check_socklen_t' check in
configure, all works well.
--
Sean Kelly | PGP KeyID: 77042C7B
smkelly at zombie.org | http://www.zombie.org