I ran configure with and without the --enable-internal-poll option, but build fails with:
[CC] hashtest2.c -> hashtest2.o
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/channel.h:128,
from hashtest2.c:41:
/Users/Shared/asterisk-1.6.0.7/include/asterisk/poll-compat.h:90:1:
warning: "POLLIN" redefined
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/compat.h:71,
from /Users/Shared/asterisk-1.6.0.7/include/asterisk.h:27,
from hashtest2.c:31:
/usr/include/sys/poll.h:68:1: warning: this is the location of the
previous definition
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/channel.h:128,
from hashtest2.c:41:
/Users/Shared/asterisk-1.6.0.7/include/asterisk/poll-compat.h:91:1:
warning: "POLLPRI" redefined
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/compat.h:71,
from /Users/Shared/asterisk-1.6.0.7/include/asterisk.h:27,
from hashtest2.c:31:
/usr/include/sys/poll.h:69:1: warning: this is the location of the
previous definition
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/channel.h:128,
from hashtest2.c:41:
/Users/Shared/asterisk-1.6.0.7/include/asterisk/poll-compat.h:92:1:
warning: "POLLOUT" redefined
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/compat.h:71,
from /Users/Shared/asterisk-1.6.0.7/include/asterisk.h:27,
from hashtest2.c:31:
/usr/include/sys/poll.h:70:1: warning: this is the location of the
previous definition
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/channel.h:128,
from hashtest2.c:41:
/Users/Shared/asterisk-1.6.0.7/include/asterisk/poll-compat.h:93:1:
warning: "POLLERR" redefined
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/compat.h:71,
from /Users/Shared/asterisk-1.6.0.7/include/asterisk.h:27,
from hashtest2.c:31:
/usr/include/sys/poll.h:89:1: warning: this is the location of the
previous definition
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/channel.h:128,
from hashtest2.c:41:
/Users/Shared/asterisk-1.6.0.7/include/asterisk/poll-compat.h:94:1:
warning: "POLLHUP" redefined
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/compat.h:71,
from /Users/Shared/asterisk-1.6.0.7/include/asterisk.h:27,
from hashtest2.c:31:
/usr/include/sys/poll.h:90:1: warning: this is the location of the
previous definition
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/channel.h:128,
from hashtest2.c:41:
/Users/Shared/asterisk-1.6.0.7/include/asterisk/poll-compat.h:95:1:
warning: "POLLNVAL" redefined
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/compat.h:71,
from /Users/Shared/asterisk-1.6.0.7/include/asterisk.h:27,
from hashtest2.c:31:
/usr/include/sys/poll.h:91:1: warning: this is the location of the
previous definition
In file included from
/Users/Shared/asterisk-1.6.0.7/include/asterisk/channel.h:128,
from hashtest2.c:41:
/Users/Shared/asterisk-1.6.0.7/include/asterisk/poll-compat.h:97:
error: redefinition of ‘struct pollfd’
make[1]: *** [hashtest2.o] Error 1
make: *** [utils] Error 2
Any other Mac Asterisk users out there with better luck?
Jari