bugGNUstep - Bugs: bug #26856, fails to compile on solaris 2.6...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #26856: fails to compile on solaris 2.6 (socklen_t)

Submitted by:  Riccardo Mottola <rmottola>
Submitted on:  Sat 20 Jun 2009 09:39:20 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: NoneStatus: Postponed
Privacy: PublicAssigned to: Richard Frith-Macdonald <CaS>
Open/Closed: Declined

Tue 23 Feb 2010 09:51:00 PM UTC, comment #5:

The last time I tried, it did exist, then with the new threading stuff we don't build on solaris 2.5 and 2.6 anymore. I wasn't yet able to adapt it.

Riccardo Mottola <rmottola>
Project Member
Thu 18 Feb 2010 02:34:59 PM UTC, comment #4:

Does this problem still exist?

Richard Frith-Macdonald <CaS>
Project MemberIn charge of this item.
Thu 06 Aug 2009 09:35:34 PM UTC, comment #3:

perhaps it doesn't get defined at all. I couldn't grep for it in the headers.

furthermore the manpage for accept

http://docs.sun.com/app/docs/doc/802-5747-03/6i9g1bg35?a=view

says

#include <sys/socket.h>
int accept (int socket, struct sockaddr * address, size_t * address_len);

it uses size_t and not socklen_t

Riccardo Mottola <rmottola>
Project Member
Wed 05 Aug 2009 06:09:51 PM UTC, comment #2:

According to Library docs http://dlc.sun.com/pdf/805-3175/805-3175.pdf should it be declared in <sys/socket.h> but a lot of googling (for how this is handled in NTP and Amanda backup) reveals that some is using size_t or int instead.
Check this tread http://www.mail-archive.com/autoconf@gnu.org/msg01926.html

Hope it helps // Tim

Tim Käck <tkack>
Tue 04 Aug 2009 05:49:03 PM UTC, comment #1:

Anyone know what header socklen_t is defined in on solaris 2.6?

Richard Frith-Macdonald <CaS>
Project MemberIn charge of this item.
Sat 20 Jun 2009 09:39:20 PM UTC, original submission:

NSSocketPort.m: In function `+[NSSocketPort portWithNumber:onHost:forceAddress:listener:]':
NSSocketPort.m:1544: error: `socklen_t' undeclared (first use in this function)
NSSocketPort.m:1544: error: parse error before "slen"
NSSocketPort.m:1546: warning: cast increases required alignment of target type

I thought this was resolved? I remember Richard fixed a similar problem for compiling on old solaris 2.5.

Riccardo Mottola <rmottola>
Project Member

 

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 tkack (Posted a comment)
  • -unavailable- added by CaS (Posted a comment)
  • -unavailable- added by rmottola (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):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 23 Feb 2010 09:53:56 PM UTCrmottolaStatusNone=>Postponed
      Open/ClosedOpen=>Declined

    Back to the top


    Powered by Savane 3.1-cleanup1