IBM Support

IV02489: GCC GIVES ERROR WHEN INCLUDING IN6_VAR.H APPLIES TO AIX 6100-07

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Recent versions of gcc (such as 4.2 for AIX 6.1 from the
    AIX Linux Toolbox) will give an error when compiling a
     program that includes the
    /usr/include/netinet/in6_var.h file:
    
    test.c:
    -----------------
    #include <net/if.h>
    #include <netinet/in.h>
    #include <netinet/in6_var.h>
    
    int main () {
    
      return(1);
    }
    -----------------
    
    # gcc -c test.c
    In file included from test.c:3:
    /usr/include/netinet/in6_var.h:65: error: array type
     has incomplete element type
    

Local fix

  • Workaround:
    Add '#include <sys/protosw.h>' to your code first, if you
    are planning to include netinet/in6_var.h.
    

Problem summary

  • compilation failurewith gcc 4.2 when in6_var.h is included
    

Problem conclusion

  • include protosw.h before extern declaration of inet6sw
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV02489

  • Reported component name

    AIX 610 STD EDI

  • Reported component ID

    5765G6200

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2011-06-28

  • Closed date

    2011-06-28

  • Last modified date

    2013-04-16

  • APAR is sysrouted FROM one or more of the following:

    IV01736

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    AIX 610 STD EDI

  • Fixed component ID

    5765G6200

Applicable component levels

  • R610 PSY U838043

       UP11/10/15 I 1000

PTF to Fileset Mapping

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSAUMY","label":"IBM AIX Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"","label":""}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11Q","label":"AIX 6.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"610","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
16 April 2013