Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <3987B905.19E480A2@ece.gatech.edu> Date: Wed, 02 Aug 2000 02:00:37 -0400 From: Charles Wilson X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cygwin AT sources DOT redhat DOT com Subject: Re: Clipboard from Cygwin? References: <003b01bffc0a$6da278a0$3c5350d8 AT guinness> <200008012327 DOT TAA29658 AT envy DOT delorie DOT com> <398783D9 DOT E25355B6 AT ece DOT gatech DOT edu> <20000801221652 DOT A21157 AT cygnus DOT com> <3987873C DOT 857BF466 AT ece DOT gatech DOT edu> <20000801223301 DOT A21289 AT cygnus DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Chris Faylor wrote: > > On Tue, Aug 01, 2000 at 10:28:12PM -0400, Charles Wilson wrote: > >I did a cvs checkout of the whole schmeal. Here's my tree: > > Ah. You've been subjected to recent sourceware breakage. I should have > remembered this. I just "yelled" at someone in gcc-patches about this. > > The patch for this is here: > > http://gcc.gnu.org/ml/gcc-patches/2000-07/msg01217.html > > It should propagate into sourceware soon, I hope. > > You can also get the same effect by removing the -nostdinc from the > FLAGS_FOR_TARGET that get set in configure.in for cygwin. > Doesn't seem to help. Now I get a bunch of _imp___ctype not found errors when trying to link cygwin1.dll. I think the problem is related to this: /src/newlib/libc/include/sys/config.h has this little snippet: #if defined(__CYGWIN32__) || defined(__CYGWIN__) #if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB) #define __IMPORT #else #define __IMPORT __declspec(dllimport) #endif #endif /src/newlib/libc/include/ctype.h defines ctype: extern __IMPORT _CONST char _ctype_[]; So it's important that __IMPORT get defined correctly -- that is, that __INSIDE_CYGWIN__ is defined before anything in newlib/libc/include gets included. winsup.h has the following: #ifdef HAVE_CONFIG_H # include "config.h" #endif #define __INSIDE_CYGWIN__ (Don't let it throw you, that's a different config.h file). The problem is, winsup.h defines __INSIDE_CYGWIN__, but most of the .cc files in winsup include stuff like and *before* winsup.h. These get resolved to the newlib/libc/include directory, and poof: libc/include/sys/config.h gets included but __INSIDE_CYGWIN__ hasn't been defined yet. I don't know what the right way to fix this is. Help? --Chuck -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com