Summary: | ASTERISK-13820: Asterisk make failed: poll-compat.h:97: error: redefinition of ‘struct pollfd’ | ||
Reporter: | Vincent Li (macli) | Labels: | |
Date Opened: | 2009-03-24 23:43:38 | Date Closed: | 2009-03-29 00:22:18 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I am compiling Asterisk asterisk-1.6.1.0-rc3 on Mac OS X 10.5.2 , but the make failed. I think it might relate to the changes made from http://reviewboard.digium.com/r/198/, error message below: In file included from /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/channel.h:128, from hashtest2.c:41: /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/poll-compat.h:90:1: warning: "POLLIN" redefined In file included from /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/compat.h:71, from /Users/vincent/asterisk-1.6.1.0-rc3/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/vincent/asterisk-1.6.1.0-rc3/include/asterisk/channel.h:128, from hashtest2.c:41: /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/poll-compat.h:91:1: warning: "POLLPRI" redefined In file included from /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/compat.h:71, from /Users/vincent/asterisk-1.6.1.0-rc3/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/vincent/asterisk-1.6.1.0-rc3/include/asterisk/channel.h:128, from hashtest2.c:41: /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/poll-compat.h:92:1: warning: "POLLOUT" redefined In file included from /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/compat.h:71, from /Users/vincent/asterisk-1.6.1.0-rc3/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/vincent/asterisk-1.6.1.0-rc3/include/asterisk/channel.h:128, from hashtest2.c:41: /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/poll-compat.h:93:1: warning: "POLLERR" redefined In file included from /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/compat.h:71, from /Users/vincent/asterisk-1.6.1.0-rc3/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/vincent/asterisk-1.6.1.0-rc3/include/asterisk/channel.h:128, from hashtest2.c:41: /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/poll-compat.h:94:1: warning: "POLLHUP" redefined In file included from /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/compat.h:71, from /Users/vincent/asterisk-1.6.1.0-rc3/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/vincent/asterisk-1.6.1.0-rc3/include/asterisk/channel.h:128, from hashtest2.c:41: /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/poll-compat.h:95:1: warning: "POLLNVAL" redefined In file included from /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/compat.h:71, from /Users/vincent/asterisk-1.6.1.0-rc3/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/vincent/asterisk-1.6.1.0-rc3/include/asterisk/channel.h:128, from hashtest2.c:41: /Users/vincent/asterisk-1.6.1.0-rc3/include/asterisk/poll-compat.h:97: error: redefinition of ‘struct pollfd’ make[1]: *** [hashtest2.o] Error 1 make: *** [utils] Error 2 | ||
Comments: | By: Russell Bryant (russell) 2009-03-29 00:22:17 I fixed this a few days ago in svn. Thanks for the report! |