* [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment
@ 2014-11-03 16:59 Rainer Orth
2015-02-06 16:18 ` Ian Lance Taylor
0 siblings, 1 reply; 6+ messages in thread
From: Rainer Orth @ 2014-11-03 16:59 UTC (permalink / raw)
To: gcc-patches; +Cc: Ian Lance Taylor
[-- Attachment #1: Type: text/plain, Size: 870 bytes --]
The recent godump changes broke Solaris 11.1+ bootstrap in libgo:
before, gen-sysinfo.so had
type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 _in6_addr; }; }
which was filtered out by mksysinfo.sh due to the use of _in6_addr.
After the change, there's now
type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }
instead, not filtered, but added a second time by the _zone_net_addr_t
code in mksysinfo.sh, which leads to redefinition warnings/errors.
Simply removing the old _zone_net_addr_t fragment fixes this and
restores bootstrap.
Bootstrapped without regressions on i386-pc-solaris2.1[01], ok for
mainline?
Rainer
2014-10-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* mksysinfo.sh (_zone_net_addr_t): Remove handling.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sol2-libgo-zone_net_addr_t-remove.patch --]
[-- Type: text/x-patch, Size: 722 bytes --]
# HG changeset patch
# Parent 99be3781928c62bd9d00f98b4cd5304bcc7d8043
Remove Solaris 11.1+ zone_net_addr_t treatment
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -1203,11 +1203,6 @@ grep '^type _inotify_event ' gen-sysinfo
grep '^const _CLONE_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\(CLONE_[^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
-# The Solaris 11 Update 1 _zone_net_addr_t struct.
-grep '^type _zone_net_addr_t ' gen-sysinfo.go | \
- sed -e 's/_in6_addr/[16]byte/' \
- >> ${OUT}
-
# Struct sizes.
set cmsghdr Cmsghdr ip_mreq IPMreq ip_mreqn IPMreqn ipv6_mreq IPv6Mreq \
ifaddrmsg IfAddrmsg ifinfomsg IfInfomsg in_pktinfo Inet4Pktinfo \
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment
2014-11-03 16:59 [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment Rainer Orth
@ 2015-02-06 16:18 ` Ian Lance Taylor
2015-04-08 13:49 ` Rainer Orth
0 siblings, 1 reply; 6+ messages in thread
From: Ian Lance Taylor @ 2015-02-06 16:18 UTC (permalink / raw)
To: Rainer Orth; +Cc: gcc-patches, gofrontend-dev
On Mon, Nov 3, 2014 at 8:59 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>
> The recent godump changes broke Solaris 11.1+ bootstrap in libgo:
> before, gen-sysinfo.so had
>
> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 _in6_addr; }; }
>
> which was filtered out by mksysinfo.sh due to the use of _in6_addr.
>
> After the change, there's now
>
> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16; zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }
>
> instead, not filtered, but added a second time by the _zone_net_addr_t
> code in mksysinfo.sh, which leads to redefinition warnings/errors.
>
> Simply removing the old _zone_net_addr_t fragment fixes this and
> restores bootstrap.
>
> Bootstrapped without regressions on i386-pc-solaris2.1[01], ok for
> mainline?
I just got back to this. Committed to mainline. Thanks.
Ian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment
2015-02-06 16:18 ` Ian Lance Taylor
@ 2015-04-08 13:49 ` Rainer Orth
2015-04-08 14:08 ` Ian Lance Taylor
0 siblings, 1 reply; 6+ messages in thread
From: Rainer Orth @ 2015-04-08 13:49 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: gcc-patches, gofrontend-dev
Ian Lance Taylor <iant@golang.org> writes:
> On Mon, Nov 3, 2014 at 8:59 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>>
>> The recent godump changes broke Solaris 11.1+ bootstrap in libgo:
>> before, gen-sysinfo.so had
>>
>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>> zna_addru struct { znau_addr6 _in6_addr; }; }
>>
>> which was filtered out by mksysinfo.sh due to the use of _in6_addr.
>>
>> After the change, there's now
>>
>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>> zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }
>>
>> instead, not filtered, but added a second time by the _zone_net_addr_t
>> code in mksysinfo.sh, which leads to redefinition warnings/errors.
>>
>> Simply removing the old _zone_net_addr_t fragment fixes this and
>> restores bootstrap.
>>
>> Bootstrapped without regressions on i386-pc-solaris2.1[01], ok for
>> mainline?
>
>
> I just got back to this. Committed to mainline. Thanks.
Sorry for the late reply, but between the time I submitted the patch and
you committing it, something changed and the mksysinfo.sh fragment
became necessary again. In fact, without it Solaris 11 bootstrap is
broken.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment
2015-04-08 13:49 ` Rainer Orth
@ 2015-04-08 14:08 ` Ian Lance Taylor
2015-04-08 14:10 ` Rainer Orth
0 siblings, 1 reply; 6+ messages in thread
From: Ian Lance Taylor @ 2015-04-08 14:08 UTC (permalink / raw)
To: Rainer Orth; +Cc: gcc-patches, gofrontend-dev
On Wed, Apr 8, 2015 at 6:48 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
> Ian Lance Taylor <iant@golang.org> writes:
>
>> On Mon, Nov 3, 2014 at 8:59 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>>>
>>> The recent godump changes broke Solaris 11.1+ bootstrap in libgo:
>>> before, gen-sysinfo.so had
>>>
>>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>>> zna_addru struct { znau_addr6 _in6_addr; }; }
>>>
>>> which was filtered out by mksysinfo.sh due to the use of _in6_addr.
>>>
>>> After the change, there's now
>>>
>>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>>> zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }
>>>
>>> instead, not filtered, but added a second time by the _zone_net_addr_t
>>> code in mksysinfo.sh, which leads to redefinition warnings/errors.
>>>
>>> Simply removing the old _zone_net_addr_t fragment fixes this and
>>> restores bootstrap.
>>>
>>> Bootstrapped without regressions on i386-pc-solaris2.1[01], ok for
>>> mainline?
>>
>>
>> I just got back to this. Committed to mainline. Thanks.
>
> Sorry for the late reply, but between the time I submitted the patch and
> you committing it, something changed and the mksysinfo.sh fragment
> became necessary again. In fact, without it Solaris 11 bootstrap is
> broken.
To avoid any confusion, can you send me the patch I should apply to mainline?
Ian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment
2015-04-08 14:08 ` Ian Lance Taylor
@ 2015-04-08 14:10 ` Rainer Orth
2015-04-08 14:17 ` Ian Lance Taylor
0 siblings, 1 reply; 6+ messages in thread
From: Rainer Orth @ 2015-04-08 14:10 UTC (permalink / raw)
To: Ian Lance Taylor; +Cc: gcc-patches, gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 1558 bytes --]
Ian Lance Taylor <iant@golang.org> writes:
> On Wed, Apr 8, 2015 at 6:48 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>> Ian Lance Taylor <iant@golang.org> writes:
>>
>>> On Mon, Nov 3, 2014 at 8:59 AM, Rainer Orth
>>> <ro@cebitec.uni-bielefeld.de> wrote:
>>>>
>>>> The recent godump changes broke Solaris 11.1+ bootstrap in libgo:
>>>> before, gen-sysinfo.so had
>>>>
>>>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>>>> zna_addru struct { znau_addr6 _in6_addr; }; }
>>>>
>>>> which was filtered out by mksysinfo.sh due to the use of _in6_addr.
>>>>
>>>> After the change, there's now
>>>>
>>>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>>>> zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }
>>>>
>>>> instead, not filtered, but added a second time by the _zone_net_addr_t
>>>> code in mksysinfo.sh, which leads to redefinition warnings/errors.
>>>>
>>>> Simply removing the old _zone_net_addr_t fragment fixes this and
>>>> restores bootstrap.
>>>>
>>>> Bootstrapped without regressions on i386-pc-solaris2.1[01], ok for
>>>> mainline?
>>>
>>>
>>> I just got back to this. Committed to mainline. Thanks.
>>
>> Sorry for the late reply, but between the time I submitted the patch and
>> you committing it, something changed and the mksysinfo.sh fragment
>> became necessary again. In fact, without it Solaris 11 bootstrap is
>> broken.
>
> To avoid any confusion, can you send me the patch I should apply to mainline?
Sure: here's what I have in my tree.
Thanks.
Rainer
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sol2-libgo-zone_net_addr_t.patch --]
[-- Type: text/x-patch, Size: 566 bytes --]
# HG changeset patch
# Parent fb5daa5b2c139aa02220feb898ac29bbafb1cb00
Handle Solaris 11 Update 1 zone_net_addr_t
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -1065,4 +1065,9 @@ grep '^type _ipv6_member_t ' gen-sysinfo
egrep '^const _(MIB2|EXPER)_' gen-sysinfo.go | \
sed -e 's/^\(const \)_\([^= ]*\)\(.*\)$/\1\2 = _\2/' >> ${OUT}
+# The Solaris 11 Update 1 _zone_net_addr_t struct.
+grep '^type _zone_net_addr_t ' gen-sysinfo.go | \
+ sed -e 's/_in6_addr/[16]byte/' \
+ >> ${OUT}
+
exit $?
[-- Attachment #3: Type: text/plain, Size: 143 bytes --]
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment
2015-04-08 14:10 ` Rainer Orth
@ 2015-04-08 14:17 ` Ian Lance Taylor
0 siblings, 0 replies; 6+ messages in thread
From: Ian Lance Taylor @ 2015-04-08 14:17 UTC (permalink / raw)
To: Rainer Orth; +Cc: gcc-patches, gofrontend-dev
On Wed, Apr 8, 2015 at 7:10 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
> Ian Lance Taylor <iant@golang.org> writes:
>
>> On Wed, Apr 8, 2015 at 6:48 AM, Rainer Orth <ro@cebitec.uni-bielefeld.de> wrote:
>>> Ian Lance Taylor <iant@golang.org> writes:
>>>
>>>> On Mon, Nov 3, 2014 at 8:59 AM, Rainer Orth
>>>> <ro@cebitec.uni-bielefeld.de> wrote:
>>>>>
>>>>> The recent godump changes broke Solaris 11.1+ bootstrap in libgo:
>>>>> before, gen-sysinfo.so had
>>>>>
>>>>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>>>>> zna_addru struct { znau_addr6 _in6_addr; }; }
>>>>>
>>>>> which was filtered out by mksysinfo.sh due to the use of _in6_addr.
>>>>>
>>>>> After the change, there's now
>>>>>
>>>>> type _zone_net_addr_t struct { zna_family uint16; zna_plen uint16;
>>>>> zna_addru struct { znau_addr6 [16]byte; Godump_0_align [0]uint32; }; }
>>>>>
>>>>> instead, not filtered, but added a second time by the _zone_net_addr_t
>>>>> code in mksysinfo.sh, which leads to redefinition warnings/errors.
>>>>>
>>>>> Simply removing the old _zone_net_addr_t fragment fixes this and
>>>>> restores bootstrap.
>>>>>
>>>>> Bootstrapped without regressions on i386-pc-solaris2.1[01], ok for
>>>>> mainline?
>>>>
>>>>
>>>> I just got back to this. Committed to mainline. Thanks.
>>>
>>> Sorry for the late reply, but between the time I submitted the patch and
>>> you committing it, something changed and the mksysinfo.sh fragment
>>> became necessary again. In fact, without it Solaris 11 bootstrap is
>>> broken.
>>
>> To avoid any confusion, can you send me the patch I should apply to mainline?
>
> Sure: here's what I have in my tree.
Committed.
Ian
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-04-08 14:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-03 16:59 [libgo] Remove Solaris 11.1+ zone_net_addr_t treatment Rainer Orth
2015-02-06 16:18 ` Ian Lance Taylor
2015-04-08 13:49 ` Rainer Orth
2015-04-08 14:08 ` Ian Lance Taylor
2015-04-08 14:10 ` Rainer Orth
2015-04-08 14:17 ` Ian Lance Taylor
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).