public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/37945]  New: GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
@ 2008-10-28 21:17 petri dot rokka at tut dot fi
  2008-10-28 21:46 ` [Bug ada/37945] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: petri dot rokka at tut dot fi @ 2008-10-28 21:17 UTC (permalink / raw)
  To: gcc-bugs

RTEMS has FreeBSD style structures:

Sockaddr and Sockaddr_In should have the 8bit Len and Family variable instead
of
16 family in gcc/ada/socthi.ads.

Bug prevents at least binding local address to socket, connecting tcp socket or
sending udp data.

diff g-socthi.ads g-socthi-rtems.ads
145c145,146
<       Sa_Family : C.unsigned_short;
---
>       Sa_Len    : C.unsigned_char;
>       Sa_Family : C.unsigned_char;
156c157,158
<       Sin_Family : C.unsigned_short      := Constants.AF_INET;
---
>       Sin_Len    : C.unsigned_char       := 0;
>       Sin_Family : C.unsigned_char       := Constants.AF_INET;


diff g-socthi.adb g-socthi-rtems.adb
451c451
<       Sin.Sin_Family := C.unsigned_short (Family);
---
>       Sin.Sin_Family := C.unsigned_char (Family);


-- 
           Summary: GNAT Sockaddr and Sockaddr_In does not match c-
                    structures on RTEMS
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: petri dot rokka at tut dot fi


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945


^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <bug-37945-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2012-05-26 14:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-28 21:17 [Bug ada/37945] New: GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS petri dot rokka at tut dot fi
2008-10-28 21:46 ` [Bug ada/37945] " pinskia at gcc dot gnu dot org
2008-10-28 22:01 ` joel at gcc dot gnu dot org
2008-11-05 20:37 ` joel at gcc dot gnu dot org
2008-11-05 20:39 ` joel at gcc dot gnu dot org
2009-03-08  8:57 ` ebotcazou at gcc dot gnu dot org
2009-11-10  8:24 ` ebotcazou at gcc dot gnu dot org
2009-11-10 11:57 ` joel at gcc dot gnu dot org
     [not found] <bug-37945-4@http.gcc.gnu.org/bugzilla/>
2012-05-26 14:50 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).