Hi, irssi fails to compile with '--with-socks', for a wrong header inclusion order in src/core/network.h. It has been reported as a gentoo bug,
http://bugs.gentoo.org/show_bug.cgi?id=83522 This is the patch added by Sven Wegener of gentoo for the irssi ebuild. diff -Nur irssi.orig/src/core/network.h irssi/src/core/network.h --- irssi.orig/src/core/network.h 2005-03-01 00:36:21.634296397 +0100 +++ irssi/src/core/network.h 2005-03-01 00:36:37.204104608 +0100 @@ -1,10 +1,6 @@ #ifndef __NETWORK_H #define __NETWORK_H -#ifdef HAVE_SOCKS_H -#include <socks.h> -#endif - #include <sys/types.h> #ifndef WIN32 # include <sys/socket.h> @@ -13,6 +9,10 @@ # include <arpa/inet.h> #endif +#ifdef HAVE_SOCKS_H +#include <socks.h> +#endif + #ifndef AF_INET6 # ifdef PF_INET6 # define AF_INET6 PF_INET6
