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

View: New views
4 Messages — Rating Filter:   Alert me  

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

by Ilguiz Latypov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


URL:
  <http://savannah.gnu.org/bugs/?26856>

                 Summary: fails to compile on solaris 2.6 (socklen_t)
                 Project: GNUstep
            Submitted by: rmottola
            Submitted on: Sat 20 Jun 2009 09:39:20 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: CaS
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26856>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@...
http://lists.gnu.org/mailman/listinfo/bug-gnustep

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

by Ilguiz Latypov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #1, bug #26856 (project gnustep):

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


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26856>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@...
http://lists.gnu.org/mailman/listinfo/bug-gnustep

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

by Ilguiz Latypov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #2, bug #26856 (project gnustep):

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@.../msg01926.html

Hope it helps // Tim

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26856>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@...
http://lists.gnu.org/mailman/listinfo/bug-gnustep

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

by Ilguiz Latypov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Follow-up Comment #3, bug #26856 (project gnustep):

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


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?26856>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-gnustep mailing list
Bug-gnustep@...
http://lists.gnu.org/mailman/listinfo/bug-gnustep