bugGNU Screen - Bugs: bug #33588, osdef.h:91: error: conflicting...

 
 

bug #33588: osdef.h:91: error: conflicting types for 'naccept'

Submitter:  pirabarlen Cheenaramen <pcthegreat>
Submitted:  Fri 17 Jun 2011 07:58:13 PM UTC
   
 
Category:  Build/Install Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  Cur Dev Sources
Fixed Release:  None Planned Release:  4.1.0
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Jun 2011 07:59:57 PM UTC, comment #1: 

uname -a
AIX myhost 3 5 00CB083F4C00

pirabarlen Cheenaramen <pcthegreat>
Fri 17 Jun 2011 07:58:13 PM UTC, original submission:  

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

pirabarlen Cheenaramen <pcthegreat>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31420:  0001-Fix-bug-33588-osdef.h-91-error-conflicting-types-for.patch added by ewfalor (2KiB - text/x-diff - This patch makes Screen 4.2.1 build on AIX 6.1 and 7.1)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by ewfalor (Updated the item)
  • -email is unavailable- added by pcthegreat (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-23 ewfalor Attached File- Added 0001-Fix-bug-33588-osdef.h-91-error-conflicting-types-for.patch, #31420

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code