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

 
 

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

Submitted by:  pirabarlen Cheenaramen <pcthegreat>
Submitted on:  Fri 17 Jun 2011 07:58:13 PM UTC  
 
Category: Build/InstallSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: Cur Dev Sources
Fixed Release: NonePlanned Release: 4.1.0
Work Required: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by pcthegreat (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup