[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiling problem



On Mon, Jan 08, 2001 at 03:02:50PM +0000, Michele Cerioni wrote:
> I have some problem when I compiling the server irc 2.10.3
> 
> This is the output:
> -DIAUTH="\"iauth\""
> -DIRCDDBG_PATH="\"/usr/local/var/log/ircd/ircd.log\"" \
> -c -o ircd.o ../ircd/ircd.c
> gcc -O2 -g -I. -I../ircd -I../common  -c -o list.o ../ircd/list.c
> gcc -O2 -g -I. -I../ircd -I../common  -c -o res.o ../ircd/res.c
> gcc -O2 -g -I. -I../ircd -I../common  -c -o s_auth.o ../ircd/s_auth.c
> gcc -O2 -g -I. -I../ircd -I../common 
> -DIRCDPID_PATH="\"/usr/local/var/run/ircd.pid\""
> -DIAUTH_PATH="\"/usr/local/sbin/iauth\"" -DIAUTH="\"iauth\"" -c -o
> s_bsd.o ../ircd/s_bsd.c
> ../ircd/s_bsd.c: In function `read_message':
> ../ircd/s_bsd.c:2032: `POLLWRNORM' undeclared (first use in this
> function)
> ../ircd/s_bsd.c:2032: (Each undeclared identifier is reported only once
> ../ircd/s_bsd.c:2032: for each function it appears in.)
> make: *** [s_bsd.o] Error 1

It seems you're compiling under linux, with glibc2.  glibc
requires us to #define _GNU_SOURCE to use it, but we did it
incorrectly in 2.10.3, it was fixed in 2.10.3p1.

I suggest that you use 2.10.3p1, but if you really want to use
2.10.3, put a "#define _GNU_SOURCE 1" on top of common/os.h


Kurt