This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: netinet/ip.h in snapshot broken?


Hallo Corinna,

Am Donnerstag, 24. April 2003 um 10:21 schriebst du:

> On Thu, Apr 24, 2003 at 07:58:44AM +0200, Gerrit P. Haase wrote:
>> configure:7539: checking netinet/ip.h usability
>> configure:7552: gcc -c -O2 -Wall  conftest.c >&5
>> In file included from configure:7613:
>> /usr/include/netinet/ip.h:82: field `ip_src' has incomplete type
>> /usr/include/netinet/ip.h:82: field `ip_dst' has incomplete type
>> /usr/include/netinet/ip.h:167: parse error before "n_long"
>> /usr/include/netinet/ip.h:169: field `ipt_addr' has incomplete type
>> /usr/include/netinet/ip.h:170: parse error before "n_long"
>> /usr/include/netinet/ip.h:172: parse error before '}' token
>> /usr/include/netinet/ip.h:173: parse error before '}' token

> Please apply the following patch to /usr/include/netinet/ip.h and try
> the configure again:

> Index: include/netinet/ip.h
> ===================================================================
> RCS file: /cvs/src/src/winsup/cygwin/include/netinet/ip.h,v
> retrieving revision 1.3
> diff -p -u -r1.3 ip.h
> --- include/netinet/ip.h        29 May 2002 07:38:54 -0000      1.3
> +++ include/netinet/ip.h        24 Apr 2003 08:20:55 -0000
> @@ -37,6 +37,9 @@
>  #ifndef _NETINET_IP_H
>  #define _NETINET_IP_H
 
> +#include <sys/types.h>
> +#include <netinet/in.h>
> +
>  /* Added by Wu Yongwei */
>  #ifndef LITTLE_ENDIAN
>  #define LITTLE_ENDIAN   1234


Lesser errors now, four left (see below):

configure stdout:
===
checking netinet/ip.h usability... no
checking netinet/ip.h presence... yes
configure: WARNING: netinet/ip.h: present but cannot be compiled
configure: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf at gnu dot org dot  ##
configure: WARNING:     ## ------------------------------------ ##
checking for netinet/ip.h... yes


config.log:
===
configure:7539: checking netinet/ip.h usability
configure:7552: gcc -c -O2 -Wall  conftest.c >&5
In file included from configure:7613:
/usr/include/netinet/ip.h:170: parse error before "n_long"
/usr/include/netinet/ip.h:173: parse error before "n_long"
/usr/include/netinet/ip.h:175: parse error before '}' token
/usr/include/netinet/ip.h:176: parse error before '}' token
configure:7555: $? = 1
configure: failed program was:
| #line 7542 "configure"
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_LIBCRYPT 1
| #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_UNISTD_H 1
| #define HAVE_DIRENT_H 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_CTYPE_H 1
| #define HAVE_GETOPT_H 1
| #define HAVE_CRYPT_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_MOUNT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_SYS_FILE_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_NETINET_IN_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:7571: result: no
configure:7575: checking netinet/ip.h presence
configure:7586: gcc -E  conftest.c
configure:7592: $? = 0
configure:7611: result: yes
configure:7631: WARNING: netinet/ip.h: present but cannot be compiled
configure:7633: WARNING: netinet/ip.h: check for missing prerequisite headers?
configure:7635: WARNING: netinet/ip.h: proceeding with the preprocessor's result
configure:7647: checking for netinet/ip.h
configure:7654: result: yes

Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]