1.6.0.8 build fails on Mac OS X Leopard (struct pollfd)

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

Since there doesn’t seem to be a lot activity, does anyone know who I should report this problem to? I would be willing and available to help in debugging if I can.

Jari

Looks like this closed issue 0014714 fixes this problem, although I don’t understand why the fix didn’t make it into 1.6.0.8.

Jari