I've a compile problem on our new hp-ux machine. I'm using the aCC compiler an get the following error:
# gmake
aCC -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../include -g -c thread.cpp +Z -DPIC -o .libs/thread.o
Error (future) 600: "/usr/include/netinet/in_systm.h", line 67 # Type specifier is omitted; "int" is no longer assumed.
typedef u_short n_short; /* short as received from the net */
^^^^^^^
Error 20: "/usr/include/netinet/in_systm.h", line 67 # ',' expected before 'n_short'.
typedef u_short n_short; /* short as received from the net */
^^^^^^^
Error (future) 600: "/usr/include/netinet/in_systm.h", line 73 # Type specifier is omitted; "int" is no longer assumed.
typedef u_long n_long; /* long as received from the net */
^^^^^^^
Error 20: "/usr/include/netinet/in_systm.h", line 73 # ',' expected before 'n_long'.
typedef u_long n_long; /* long as received from the net */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 72 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_v:4, /* version */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 74 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_tos; /* type of service */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 80 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_ttl; /* time to live */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 81 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_p; /* protocol */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 145 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_code; /* IPOPT_TS */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 146 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_len; /* size of structure (variable) */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 147 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_ptr; /* index of current entry */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 148 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_oflw:4, /* overflow counter */
^^^^^^
Error 112: "../include/cc++/missing.h", line 61 # Include file <fstream> not found.
#include <fstream>
^^^^^^^^^
Error 112: "../include/cc++/missing.h", line 62 # Include file <iostream> not found.
#include <iostream>
^^^^^^^^^^
Error 699: "../include/cc++/missing.h", line 62 # Error limit reached; halting compilation.
#include <iostream>
^^^^^^^^^^
gmake[1]: *** [thread.lo] Error 1
gmake[1]: Leaving directory `/usr/caq/usr/mask/commoncpp/commoncpp2-1.3.8/src'
gmake: *** [all-recursive] Error 1
With the C++ compiler flags -AA +DA2.0W +DS2.0 +z I get the same results.
Does anybody have some idea?
Greets Jörg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello world,
I've a compile problem on our new hp-ux machine. I'm using the aCC compiler an get the following error:
# gmake
aCC -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../include -g -c thread.cpp +Z -DPIC -o .libs/thread.o
Error (future) 600: "/usr/include/netinet/in_systm.h", line 67 # Type specifier is omitted; "int" is no longer assumed.
typedef u_short n_short; /* short as received from the net */
^^^^^^^
Error 20: "/usr/include/netinet/in_systm.h", line 67 # ',' expected before 'n_short'.
typedef u_short n_short; /* short as received from the net */
^^^^^^^
Error (future) 600: "/usr/include/netinet/in_systm.h", line 73 # Type specifier is omitted; "int" is no longer assumed.
typedef u_long n_long; /* long as received from the net */
^^^^^^^
Error 20: "/usr/include/netinet/in_systm.h", line 73 # ',' expected before 'n_long'.
typedef u_long n_long; /* long as received from the net */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 72 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_v:4, /* version */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 74 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_tos; /* type of service */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 80 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_ttl; /* time to live */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 81 # 'u_char' is used as a type, but has not been defined as a type.
u_char ip_p; /* protocol */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 145 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_code; /* IPOPT_TS */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 146 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_len; /* size of structure (variable) */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 147 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_ptr; /* index of current entry */
^^^^^^
Error 419: "/usr/include/netinet/ip.h", line 148 # 'u_char' is used as a type, but has not been defined as a type.
u_char ipt_oflw:4, /* overflow counter */
^^^^^^
Error 112: "../include/cc++/missing.h", line 61 # Include file <fstream> not found.
#include <fstream>
^^^^^^^^^
Error 112: "../include/cc++/missing.h", line 62 # Include file <iostream> not found.
#include <iostream>
^^^^^^^^^^
Error 699: "../include/cc++/missing.h", line 62 # Error limit reached; halting compilation.
#include <iostream>
^^^^^^^^^^
gmake[1]: *** [thread.lo] Error 1
gmake[1]: Leaving directory `/usr/caq/usr/mask/commoncpp/commoncpp2-1.3.8/src'
gmake: *** [all-recursive] Error 1
With the C++ compiler flags -AA +DA2.0W +DS2.0 +z I get the same results.
Does anybody have some idea?
Greets Jörg