delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/03/10:39:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sun, 3 Sep 2000 18:37:41 +0400
From: Egor Duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: Egor Duda <deo AT logos-m DOT ru>
Organization: DEO
X-Priority: 3 (Normal)
Message-ID: <103159724501.20000903183741@logos-m.ru>
To: "Dr. Volker Zell" <Dr DOT Volker DOT Zell AT oracle DOT com>
CC: cygwin AT sources DOT redhat DOT com
Subject: Re: including winsock.h gives STATUS_ACCESS_VIOLATION in cc1
In-reply-To: <yxjpuml36wq.fsf@vzell.de.oracle.com>
References: <yxjpuml36wq DOT fsf AT vzell DOT de DOT oracle DOT com>
Mime-Version: 1.0

Hi!

Sunday, 03 September, 2000 Dr. Volker Zell Dr DOT Volker DOT Zell AT oracle DOT com wrote:

DVZ> I tried compiling

DVZ>  openldap-2.0.0.tgz

DVZ> with latest cygwin-1.1.4 (including patch from Chris announced in one of his mails)

DVZ> When running configure like this:

DVZ>  ./configure  --with-gnu-ld --enable-shared=no --with-threads=no

DVZ> I get

DVZ> configure:4715: checking for winsock
DVZ> configure:4732: gcc -o conftest.exe -g -O2 -I/usr/local/include  -s conftest.c  1>&5
DVZ> In file included from configure:4721:
DVZ> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winsock.h:26: parse error before `SOCKET'
DVZ> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winsock.h:26: warning: data definition has no type or storage class
...
DVZ> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winsock.h:431: parse error before `int'
DVZ> /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/../../../../include/winsock.h:433: warning: parameter has incomplete type
DVZ>       0 [main] cc1 9750 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
DVZ>   52035 [main] cc1 9750 stackdump: Dumping stack trace to cc1.exe.stackdump
DVZ> gcc: Internal compiler error: program cc1 got fatal signal 11
DVZ> configure: failed program was:
DVZ> #line 4720 "configure"
DVZ> #include "confdefs.h"
DVZ> #include <winsock.h>
DVZ> int main() {

DVZ>                         socket(0,0,0);
DVZ>                         select(0,NULL,NULL,NULL,NULL);
DVZ>                         closesocket(0);
DVZ>                         gethostname(NULL,0);
        
DVZ> ; return 0; }

DVZ> Any hints ??  Can anybody verify this ?

yes.  same  here.  as  a  workaround  you  can  either  add
#include <sys/types.h> before #include <winsock.h> in configure
(or more likely, you should do this in configure.in), or
comment #ifndef _SYS_TYPES_H_ (and respective #endif's) in winsock.h

as  for  internal  error in cc1, maybe someone with home-compiled gcc,
who  had  debug  info  in cc1 will make symbolic trace?

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019