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

Group
 
 

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

Submitter:  Riccardo Mottola <rmottola>
Submitted:  Sat 20 Jun 2009 09:39:20 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  CaS
Open/Closed:  Declined
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group Member
Thu 18 Feb 2010 02:34:59 PM UTC, comment #4: 

Does this problem still exist?

Richard Frith-Macdonald <CaS>
Group Member
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>
Group 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>
Group Member
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>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tkack (Posted a comment)
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by rmottola (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-02-23 rmottola StatusNone Postponed
        Open/ClosedOpen Declined

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code