bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/40865] New: WARNING: netinet/ip.h: present but cannot be


From: danglin at gcc dot gnu dot org
Subject: [Bug classpath/40865] New: WARNING: netinet/ip.h: present but cannot be compiled
Date: 26 Jul 2009 21:32:50 -0000

configure:17940: checking netinet/ip.h usability
configure:17952: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-
B/opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-4.5.0/hppa
2.0w-hp-hpux11.11/lib/ -isystem
/opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/inc
lude -isystem /opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/sys-include    -c -g 
-O2  conftest.c >&5
In file included from conftest.c:78:0:
/usr/include/netinet/ip.h:83:17: error: field 'ip_src' has incomplete type
/usr/include/netinet/ip.h:83:24: error: field 'ip_dst' has incomplete type
/usr/include/netinet/ip.h:151:3: error: expected specifier-qualifier-list
before
 'n_long'
configure:17958: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "GNU Classpath"
| #define PACKAGE_TARNAME "classpath"
| #define PACKAGE_VERSION "0.98"
| #define PACKAGE_STRING "GNU Classpath 0.98"
| #define PACKAGE_BUGREPORT "address@hidden"
| #define PACKAGE "classpath"
| #define VERSION "0.98"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #ifdef __cplusplus
| extern "C" void exit (int);
| #endif
| #define HAVE_GNUC25_ATTRIB
| #define HAVE_GNUC25_UNUSED
| #define STDC_HEADERS 1
| #define SIZEOF_VOID_P 4
| #define WORDS_BIGENDIAN 1
| #define HOST_WORDS_BIG_ENDIAN 1
| #define BYTEORDER 4321
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_MMAN_H 1
| #define HAVE_MAGIC_H 1
| #define HAVE_NETINET_IN_SYSTM_H 1
| /* end confdefs.h.  */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| #  include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| #  include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| #  include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <netinet/ip.h>
configure:17981: result: no
configure:17985: checking netinet/ip.h presence
configure:17995: /test/gnu/gcc/objdir/./gcc/xgcc -B/test/gnu/gcc/objdir/./gcc/
-
B/opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/bin/
-B/opt/gnu/gcc/gcc-4.5.0/hppa
2.0w-hp-hpux11.11/lib/ -isystem
/opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/inc
lude -isystem /opt/gnu/gcc/gcc-4.5.0/hppa2.0w-hp-hpux11.11/sys-include    -E 
co
nftest.c
configure:18001: $? = 0
configure:18021: result: yes
configure:18034: WARNING: netinet/ip.h: present but cannot be compiled
configure:18036: WARNING: netinet/ip.h:     check for missing prerequisite
heade
rs?
configure:18038: WARNING: netinet/ip.h: see the Autoconf documentation
configure:18040: WARNING: netinet/ip.h:     section "Present But Cannot Be
Compi
led"
configure:18042: WARNING: netinet/ip.h: proceeding with the preprocessor's
resul
t
configure:18044: WARNING: netinet/ip.h: in the future, the compiler will take
pr
ecedence
configure:18056: checking for netinet/ip.h
configure:18063: result: yes

The test fails because <netinet/in.h> is not included.  I defines
struct in_addr.

The lines in ip.h with compiler errors are:

        struct  in_addr ip_src,ip_dst;  /* source and dest address */

and

                        struct in_addr ipt_addr;


-- 
           Summary: WARNING: netinet/ip.h: present but cannot be compiled
           Product: classpath
           Version: 0.98
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40865





reply via email to

[Prev in Thread] Current Thread [Next in Thread]