delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/30/15:58:50

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
From: kevinm AT ieg DOT com DOT br
Reply-to: kevinm AT ieg DOT com DOT br
To: cygwin AT cygwin DOT com
Date: Tue, 30 Oct 2001 19:53:13 GMT
Subject: Re: failed to compile cygwin <<Scan Mail hat keinen Virus gefunden>>
X-Mailer: DMailWeb Web to Mail Gateway 2.3t, http://netwinsite.com/top_mail.htm
Message-id: <3bdf0529.1a1e.0@ieg.com.br>
X-User-Info: 200.170.44.53
MIME-Version: 1.0

My make also choked on cygwin/cygheap.cc with "implicit declaration of function
int memset(...)"

The problem is that the include path in winsup/Makefile.common  starts with
-I. -I/usr/src/.../winsup/cygwin, but the <string.h> include file in winsup/cygwin/string.h
starts with:
#ifndef _CYGWIN_STRING_H
#define _CYGWIN_STRING_H
#include_next <string.h>

So the only string.h that is getting included is the local one (in winsup/cygwin/string.h),
which does not include the memset prototype. 

I "solved" the problem by changing the cygwin/string.h file:
#include_next <string.h>
#ifndef _CYGWIN_STRING_H
#define _CYGWIN_STRING_H

This ensures that the next string.h that gets included will be the system one,
and not cygwin/string.h

I'm a complete newbie to cygwin so I don't know if this is the "correct" solution
...

Kevin

http://www.ieg.com.br

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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