delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/22/14:48:23

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: Fri, 22 Sep 2000 14:46:02 -0400
From: Jason Tishler <Jason DOT Tishler AT dothill DOT com>
To: Cygwin <cygwin AT sources DOT redhat DOT com>
Cc: dtrom AT bumba DOT net
Subject: Re: Is __imp_reent_data Deprecated? (a.k.a Problem #3 Building Cygwin PostgreSQL)
Message-ID: <20000922144602.G18108@DP>
References: <20000922093715 DOT C1458 AT DP> <20000922130217 DOT D5938 AT cygnus DOT com> <20000922131830 DOT J1458 AT DP>
Mime-Version: 1.0
User-Agent: Mutt/1.2.4i
In-Reply-To: <20000922131830.J1458@DP>; from Jason.Tishler@dothill.com on Fri, Sep 22, 2000 at 01:18:30PM -0400
Organization: Dot Hill Systems Corp.

Chris,

On Fri, Sep 22, 2000 at 01:18:30PM -0400, Jason Tishler wrote:
> On Fri, Sep 22, 2000 at 01:02:17PM -0400, Chris Faylor wrote:
> > reent_data is exported by the  cygwin.def file.  Check the sources.
> > 
> > It looks like the variable is not being correctly *declared* using
> > declspec(dllimport).  Changing the source to use that rather than
> > trying to kludge the name with an __imp_ naming convention will probably
> > solve the problem.

Using your suggestion, I changed the following in src/utils/dllinit.c:

    extern struct _reent *__imp_reent_data;

to:

    extern __declspec(dllimport) struct _reent reent_data;

and the '__imp_reent_data' undefined reference problem was solved.

Thanks,
Jason

-- 
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation         Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

--
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