delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/03/18/19:51:40

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Sat, 18 Mar 2000 19:51:30 -0500
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: Compile warning in times.cc and strace.exe compile problem
Message-ID: <20000318195130.B1332@cygnus.com>
Reply-To: cygwin-developers AT sourceware DOT cygnus DOT com
Mail-Followup-To: cgf AT cygnus DOT com, cygwin-developers AT sourceware DOT cygnus DOT com
References: <38D3C893 DOT A95708A1 AT attglobal DOT net> <200003181934 DOT NAA13867 AT hp2 DOT xraylith DOT wisc DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.1.8i
In-Reply-To: <200003181934.NAA13867@hp2.xraylith.wisc.edu>; from khan@NanoTech.Wisc.EDU on Sat, Mar 18, 2000 at 01:34:22PM -0600

On Sat, Mar 18, 2000 at 01:34:22PM -0600, Mumit Khan wrote:
>John Fortin <fortinj AT attglobal DOT net> writes:
>> Chris Faylor wrote:
>> > 
>> > On Sat, Mar 18, 2000 at 10:14:59AM -0500, John Fortin wrote:
>> > >When I compile cygwin from the cvs extract, times.cc gets the following:
>> > >
>> > >
>> > >gcc -c -g -O2 -o ./times.o times.cc
>> > >/e/src/winsup/cygwin/times.cc:20: warning: inconsistent dll linkage for
>> > >`time_t
>> > >_timezone'. dllexport assumed.
>> > >/e/src/winsup/cygwin/times.cc:21: warning: inconsistent dll linkage for
>> > >`int _da
>> > >ylight'. dllexport assumed.
>> 
>> I'm using (I think ?) the newlib from CVS which was created when I did
>> 'cvs get winsup'.
>> Is this the correct version?
>
>This happens due to dllimport/export override rules, and typically
>results in the correct behaviour (as is the case with Cygwin DLL).
>The warning is there only to make sure developers know what's happening 
>internally, and I added it since VC++ does the same.

I know why it happens.  I don't know why it is happening to John, though.
Have you looked at the code?  If there is something wrong that is resulting
in a warning, then a patch would be appreciated.

cgf

- Raw text -


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