URL: <http://savannah.gnu.org/bugs/?33588>
Summary: osdef.h:91: error: conflicting types for 'naccept' Project: GNU Screen Submitted by: pcthegreat Submitted on: Fri 17 Jun 2011 07:58:13 PM GMT Category: Build/Install Severity: 3 - Normal Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Release: Cur Dev Sources Fixed Release: None Planned Release: 4.1.0 Work Required: None _______________________________________________________ Details: When trying to make on aix osdef.h:91: error: conflicting types for 'naccept' /usr/include/sys/socket.h:534: error: previous declaration of 'naccept' was here make: 1254-004 The error code from the last command is 1. Here's the fix: osdef.h, line in question: 89 #ifdef NAMEDPIPE 90 #else 91 extern int accept __P((int, struct sockaddr *, int *)); 92 #endif socket.h, line in question 532 533 #if !defined(_ALL_SOURCE) || defined(_KERNEL) || !defined(__cplusplus) 534 int accept(int, struct sockaddr *__restrict__, socklen_t *__restrict__); 535 int getpeername(int, struct sockaddr *__restrict__, socklen_t *__restrict__); Line 91 should be: extern int accept __P((int, struct sockaddr *, socklen_t *)); Also add #include <sys/socket.h> on top of your osdef.h otherwise it will complain over and over. make && make install fine after that. Cheers Pirabarlen Cheenaramen pcthegreat [AT] gmail _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?33588> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/