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
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
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 ` pinskia at gcc dot gnu dot org
2008-10-28 22:01 ` joel at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-10-28 21:46 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Severity|blocker |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
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
` (4 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu dot org @ 2008-10-28 22:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from joel at gcc dot gnu dot org 2008-10-28 22:00 -------
This does not impact the SVN trunk.
This requires adding g-socthi-rtems.ads and corresponding Makefile.in change. I
will prepare and test a complete patch.
We wondered if this is broken for FreeBSD as well. We use the FreeBSD TCP/IP
stack in RTEMS and it should be broken the same way. Can someone confirm that?
--
joel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |blocker
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
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
` (3 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu dot org @ 2008-11-05 20:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from joel at gcc dot gnu dot org 2008-11-05 20:35 -------
Created an attachment (id=16626)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16626&action=view)
adds RTEMS specific g-socthi*
Fixes issue. Not needed on head.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
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
` (2 preceding siblings ...)
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
` (2 subsequent siblings)
6 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu dot org @ 2008-11-05 20:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from joel at gcc dot gnu dot org 2008-11-05 20:38 -------
Please commit to 4.3 branch. Not needed on trunk since it uses a different
implementation of these files.
2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* g-socthi-rtems.ad[sb]: New files.
* Makefile.in: Add RTEMS specific files.
--
joel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-11-05 20:38:03
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
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
` (3 preceding siblings ...)
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
6 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2009-03-08 8:57 UTC (permalink / raw)
To: gcc-bugs
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu dot
| |org
Severity|blocker |normal
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
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
` (4 preceding siblings ...)
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
6 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2009-11-10 8:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from ebotcazou at gcc dot gnu dot org 2009-11-10 08:24 -------
Was the patch posted on gcc-patches@ at some point?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
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
` (5 preceding siblings ...)
2009-11-10 8:24 ` ebotcazou at gcc dot gnu dot org
@ 2009-11-10 11:57 ` joel at gcc dot gnu dot org
6 siblings, 0 replies; 9+ messages in thread
From: joel at gcc dot gnu dot org @ 2009-11-10 11:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from joel at gcc dot gnu dot org 2009-11-10 11:57 -------
(In reply to comment #4)
> Was the patch posted on gcc-patches@ at some point?
>
It has been over a year and I honestly don't know. I will repost on general
principal.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ada/37945] GNAT Sockaddr and Sockaddr_In does not match c-structures on RTEMS
[not found] <bug-37945-4@http.gcc.gnu.org/bugzilla/>
@ 2012-05-26 14:50 ` ebotcazou at gcc dot gnu.org
0 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2012-05-26 14:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37945
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2012-05-26 14:34:29 UTC ---
Obsolete.
^ permalink raw reply [flat|nested] 9+ messages in thread
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).