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

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

External poll still failing to build.


From: Tony Shadwick
Subject: External poll still failing to build.
Date: Tue, 11 Mar 2003 18:31:00 +0000 (GMT)

Here's what the top of my poll.c file looks like right now:

[erwin:local/src/spamass-milter-0.1.3a] numbski# less poll.c
#include <stdlib.h>

/* Included because MacOS X apparently chokes without them.
#include <unistd.h>
#include <sys/types.h>
#include <sys/time.h>


#include <sys/select.h>

#include "subst_poll.h"

/* This function pulled from Markus Gutschke's "wy60" package */

/* $Id: poll.c,v 1.2 2003/03/06 21:40:49 dnelson Exp $ */


When I ./configure, it goes through smoothly, then I type make.  It
insists on re-configuring, which puzzles me, but no harm seems to be done.
Then it fails out like so:

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:22: undefined type, found `fd_set'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic
mode
poll.c:17: warning: `struct pollfd' declared inside parameter list
poll.c:17: warning: its scope is only this definition or declaration,
which is probably not what you want
poll.c: In function `poll':
poll.c:22: `fd_set' undeclared (first use in this function)
poll.c:22: (Each undeclared identifier is reported only once
poll.c:22: for each function it appears in.)
poll.c:22: parse error before "readFds"
poll.c:23: storage size of `timeoutStruct' isn't known
poll.c:26: `readFds' undeclared (first use in this function)
poll.c:27: `writeFds' undeclared (first use in this function)
poll.c:28: `exceptionFds' undeclared (first use in this function)
poll.c:31: invalid use of undefined type `struct pollfd'
poll.c:31: dereferencing pointer to incomplete type
poll.c:31: `POLLIN' 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: `POLLOUT' 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:35: `POLLPRI' undeclared (first use in this function)
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:38: invalid use of undefined type `struct pollfd'
poll.c:38: dereferencing pointer to incomplete type
poll.c:39: invalid use of undefined type `struct pollfd'
poll.c:39: 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
poll.c:60: invalid use of undefined type `struct pollfd'
poll.c:60: dereferencing pointer to incomplete type
poll.c:61: invalid use of undefined type `struct pollfd'
poll.c:61: dereferencing pointer to incomplete type
make[1]: *** [poll.o] Error 1
make: *** [all] Error 2


I have to assume that this isn't normal behavior.  Knowing what little I
do about programming outside of PERL, it seems like some variable isn't
being explicitly defined early on in poll.c.  Any chance someone could
take a look?





reply via email to

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