spamass-milt-list
[Top][All Lists]
Advanced

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

Re: Compile fails on OS X still with new poll()


From: Tony Shadwick
Subject: Re: Compile fails on OS X still with new poll()
Date: Mon, 10 Mar 2003 21:19:10 +0000 (GMT)

Hmm, no joy.  Sorry, I'm a PERL head, I thought those #'s were comments.
:P

[erwin:local/src/spamass-milter-0.1.3a] numbski# make
make  all-am
gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2  -c `test -f 'poll.c' || echo
'./'`poll.c
/usr/include/sys/select.h:80: undefined type, found `u_int'
poll.c:20: undefined type, found `fd_set'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
In file included from poll.c:2:
/usr/include/sys/select.h:80: parse error before "u_int"
poll.c: In function `poll':
poll.c:20: `fd_set' undeclared (first use in this function)
poll.c:20: (Each undeclared identifier is reported only once
poll.c:20: for each function it appears in.)
poll.c:20: parse error before "readFds"
poll.c:21: storage size of `timeoutStruct' isn't known
poll.c:24: `readFds' undeclared (first use in this function)
poll.c:25: `writeFds' undeclared (first use in this function)
poll.c:26: `exceptionFds' undeclared (first use in this function)
make[1]: *** [poll.o] Error 1
make: *** [all] Error 2


Tony Shadwick
Manager of Internet Services
Strategic Technology Group
314-480-1324

On Mon, 10 Mar 2003, Dan Nelson wrote:

> In the last episode (Mar 10), Tony Shadwick said:
> > Oops, my bad.  There's problems, but not what I said below.  I had
> > problems getting cvs to like my ssh key, so I gave up on it and
> > downloaded.  It looks like I got HTML stuck in my source.  I got that
> > straight now, but here's the latest failure:
> >
> > config.status: creating config.h
> > make  all-am
> > g++ -DHAVE_CONFIG_H -I. -I. -I.     -g -O2  -c -o spamass-milter.o `test
> > -f 'spamass-milter.cpp' || echo './'`spamass-milter.cpp
> > gcc -DHAVE_CONFIG_H -I. -I. -I.     -g -O2  -c `test -f 'poll.c' || echo
> > './'`poll.c
> > /usr/include/sys/select.h:80: undefined type, found `u_int'
> > poll.c:15: undefined type, found `fd_set'
> > cpp-precomp: warning: errors during smart preprocessing, retrying in basic
> > mode
> > In file included from poll.c:2:
> > /usr/include/sys/select.h:80: parse error before "u_int"
> > poll.c: In function `poll':
> > poll.c:15: `fd_set' undeclared (first use in this function)
>
> Adding
>
> #include <unistd.h>
> #include <sys/types.h>
> #include <sys/time.h>
>
> to the top of poll.c should fix it.  At least those are the includes at
> the top of OSX's select manpage :)
>
> --
>       Dan Nelson
>       address@hidden
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]