Bug 1138893 - IN6_IS_ADDR_ requires enabling non standard extensions
Summary: IN6_IS_ADDR_ requires enabling non standard extensions
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Florian Weimer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-06 03:10 UTC by ell1e
Modified: 2016-12-09 20:32 UTC (History)
6 users (show)

Fixed In Version: glibc-2.24.90-22.fc26
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-09 20:32:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Sourceware 16421 0 None None None Never

Description ell1e 2014-09-06 03:10:21 UTC
Description of problem:
Originally from https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1086787 but also present in Fedora 20 to the current day.

Test code (stolen from some other bug report):

#include <netinet/in.h>

int f(void) {
    struct sockaddr_in6 sa;
    int result = IN6_IS_ADDR_V4MAPPED(&sa.sin6_addr);
    return result;
}

Compiling with  gcc --std=c99 test.c  gives this result:

In file included from test.c:2:0:
test.c: In function ‘f’:
test.c:6:18: error: ‘const struct in6_addr’ has no member named ‘s6_addr32’
     int result = IN6_IS_ADDR_V4MAPPED(&sa.sin6_addr);
                  ^
test.c:6:18: error: ‘const struct in6_addr’ has no member named ‘s6_addr32’
     int result = IN6_IS_ADDR_V4MAPPED(&sa.sin6_addr);
                  ^
test.c:6:18: error: ‘const struct in6_addr’ has no member named ‘s6_addr32’
     int result = IN6_IS_ADDR_V4MAPPED(&sa.sin6_addr);
      

Version-Release number of selected component (if applicable):
Arch: x86_64, Version: 2.18, Release: 12.fc20

How reproducible:
100%

Steps to Reproduce:
1. Compile test code above with --std=c99 and gcc

Actual results:
breaks (see errors above)

Expected results:
works

Additional info:

Comment 1 ell1e 2014-09-06 03:18:19 UTC
Ubuntu bug report with more details (for eglibc) met with better response and more details: https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1187301

Patch on eglibc mailing list: http://www.eglibc.org/archives/patches/msg01251.html (not for glibc, but mailing list indicates this particular part of the source of eglibc is similar)

Comment 2 Siddhesh Poyarekar 2014-09-30 17:12:12 UTC
Carlos has proposed a patch in an upstream bug report:

https://sourceware.org/bugzilla/show_bug.cgi?id=16421

Carlos, could you please get it merged upstream?  I can then pull the patch in on the next resync.

Comment 3 Fedora End Of Life 2015-05-29 12:48:21 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Carlos O'Donell 2015-05-29 14:54:25 UTC
We will fix this upstream and pull into rawhide and close this issue.

Comment 5 Jan Kurik 2015-07-15 14:38:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 6 Fedora End Of Life 2016-11-24 11:13:04 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 7 Florian Weimer 2016-12-09 20:32:49 UTC
Fixed in rawhide.  Please let us know if you need this fixed anywhere else.


Note You need to log in before you can comment on or make changes to this bug.