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 22:23:28 +0000 (GMT)

Ack.  I really gotta learn to work from clean source each time you give me
a change to make. :P

Okay, I deleted everything, pulled down the recently changed files from
cvs, then added those lines to poll.c.  Here's what I'm getting now:

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
poll.c:20: undefined type, found `fd_set'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
poll.c:15: warning: `struct pollfd' declared inside parameter list
poll.c:15: warning: its scope is only this definition or declaration,
which is probably not what you want
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)
poll.c:29: invalid use of undefined type `struct pollfd'
poll.c:29: dereferencing pointer to incomplete type
poll.c:29: `POLLIN' undeclared (first use in this function)
poll.c:30: invalid use of undefined type `struct pollfd'
poll.c:30: dereferencing pointer to incomplete type
poll.c:31: invalid use of undefined type `struct pollfd'
poll.c:31: dereferencing pointer to incomplete type
poll.c:31: `POLLOUT' undeclared (first use in this function)
poll.c:32: invalid use of undefined type `struct pollfd'
poll.c:32: dereferencing pointer to incomplete type
poll.c:33: invalid use of undefined type `struct pollfd'
poll.c:33: dereferencing pointer to incomplete type
poll.c:33: `POLLPRI' undeclared (first use in this function)
poll.c:34: invalid use of undefined type `struct pollfd'
poll.c:34: dereferencing pointer to incomplete type
poll.c:35: invalid use of undefined type `struct pollfd'
poll.c:35: dereferencing pointer to incomplete type
poll.c:36: invalid use of undefined type `struct pollfd'
poll.c:36: dereferencing pointer to incomplete type
poll.c:37: invalid use of undefined type `struct pollfd'
poll.c:37: dereferencing pointer to incomplete type
poll.c:40: `NULL' undeclared (first use in this function)
poll.c:53: invalid use of undefined type `struct pollfd'
poll.c:53: dereferencing pointer to incomplete type
poll.c:54: invalid use of undefined type `struct pollfd'
poll.c:54: dereferencing pointer to incomplete type
poll.c:55: invalid use of undefined type `struct pollfd'
poll.c:55: dereferencing pointer to incomplete type
poll.c:56: invalid use of undefined type `struct pollfd'
poll.c:56: dereferencing pointer to incomplete type
poll.c:57: invalid use of undefined type `struct pollfd'
poll.c:57: dereferencing pointer to incomplete type
poll.c:58: invalid use of undefined type `struct pollfd'
poll.c:58: dereferencing pointer to incomplete type
poll.c:59: invalid use of undefined type `struct pollfd'
poll.c:59: dereferencing pointer to incomplete type
make[1]: *** [poll.o] Error 1
make: *** [all] Error 2
[erwin:local/src/spamass-milter-0.1.3a] numbski#


Tony Shadwick
Manager of Internet Services
Strategic Technology Group

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]