A fix is available
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
IV01736
Reported component name
AIX V7.1
Reported component ID
5765H4000
Reported release
710
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Submitted date
2011-06-13
Closed date
2011-06-13
Last modified date
2013-04-16
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
AIX V7.1
Fixed component ID
5765H4000
Applicable component levels
R710 PSY U838100
UP11/10/05 I 1000
PTF to Fileset Mapping
U838100 bos.adt.include 7.1.1.0
[{"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":"710","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":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11R","label":"AIX 7.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
16 April 2013