I seem to be having a problem compiling on MacOS X Tiger. The errors are as follows:

gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -DASTERISK_VERSION=\"1.0.9\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -c -o channel.o channel.c
In file included from include/asterisk/channel.h:23,
                from include/asterisk/pbx.h:17,
                from channel.c:23:
include/asterisk/poll-compat.h:72:1: warning: "POLLIN" redefined
In file included from channel.c:22:
/usr/include/sys/poll.h:62:1: warning: this is the location of the previous definition
In file included from include/asterisk/channel.h:23,
                from include/asterisk/pbx.h:17,
                from channel.c:23:
include/asterisk/poll-compat.h:73:1: warning: "POLLPRI" redefined
In file included from channel.c:22:
/usr/include/sys/poll.h:63:1: warning: this is the location of the previous definition
In file included from include/asterisk/channel.h:23,
                from include/asterisk/pbx.h:17,
                from channel.c:23:
include/asterisk/poll-compat.h:74:1: warning: "POLLOUT" redefined
In file included from channel.c:22:
/usr/include/sys/poll.h:64:1: warning: this is the location of the previous definition
In file included from include/asterisk/channel.h:23,
                from include/asterisk/pbx.h:17,
                from channel.c:23:
include/asterisk/poll-compat.h:75:1: warning: "POLLERR" redefined
In file included from channel.c:22:
/usr/include/sys/poll.h:83:1: warning: this is the location of the previous definition
In file included from include/asterisk/channel.h:23,
                from include/asterisk/pbx.h:17,
                from channel.c:23:
include/asterisk/poll-compat.h:76:1: warning: "POLLHUP" redefined
In file included from channel.c:22:
/usr/include/sys/poll.h:84:1: warning: this is the location of the previous definition
In file included from include/asterisk/channel.h:23,
                from include/asterisk/pbx.h:17,
                from channel.c:23:
include/asterisk/poll-compat.h:77:1: warning: "POLLNVAL" redefined
In file included from channel.c:22:
/usr/include/sys/poll.h:85:1: warning: this is the location of the previous definition
In file included from include/asterisk/channel.h:23,
                from include/asterisk/pbx.h:17,
                from channel.c:23:
include/asterisk/poll-compat.h:80: error: redefinition of 'struct pollfd'
include/asterisk/poll-compat.h:92: error: conflicting types for 'poll'
/usr/include/sys/poll.h:109: error: previous declaration of 'poll' was here
make: *** [channel.o] Error 1

It compiled on my Mini running Panther without any problems. I have bison 2.0 and flex 2.5.4. Anyone have any suggestions?

Thanks,

Steve
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to