Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Tue, 12 Dec 2000 22:15:47 -0500
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: missing gmtime_r & localtime_r in .a files
Message-ID: <20001212221547.A9358@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <20001213030509.28601.qmail@web109.yahoomail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <20001213030509.28601.qmail@web109.yahoomail.com>; from earnie_boyd@yahoo.com on Tue, Dec 12, 2000 at 07:05:09PM -0800

On Tue, Dec 12, 2000 at 07:05:09PM -0800, Earnie Boyd wrote:
>--- Christopher Faylor <cgf@redhat.com> wrote:
>>On Tue, Dec 12, 2000 at 06:12:59PM -0800, Joseph Heled wrote:
>>>While I see the prototype for gmtime_r & localtime_r in
>>>/usr/include/time.h, the linker reports they are not found.
>>>
>>>I tried 'nm *.a | grep gmtime_r' in /usr/lib, which gave no hits.
>>>
>>>I am using cygwin version 1.15.  gcc version is gcc-2.95.2-5.
>>
>>The headers that are used by Cygwin come from 'newlib'.  We don't
>>necessarily export every single function from the newlib library in
>>cygwin.
>>
>>So, if you get a "not found" error when linking then you can believe
>>it.  It's not available in cygwin.
>
>However, it is possible for the cygwin1.dll to contain the functions
>but they're not available from libcygwin.a simply because the
>winsup/cygwin/cygwin.din file doesn't contain them.  ;) Both of these
>exist in the cygwin1.dll file.

Which really matters not a whit if the function is not exported.

I actually specifically did not mention this to avoid confusion, i.e.

"What is a cygwin.din?  Can I just edit that file to get the function?
If the function is in cygwin.din, why isn't it exported???????????"

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

