* Is __imp_reent_data Deprecated? (a.k.a Problem #3 Building Cygwin PostgreSQL)
@ 2000-09-22 6:37 Jason Tishler
[not found] ` <20000922130217.D5938@cygnus.com>
0 siblings, 1 reply; 4+ messages in thread
From: Jason Tishler @ 2000-09-22 6:37 UTC (permalink / raw)
To: Cygwin
While building PostgreSQL 7.0.2 on a stock Cygwin 1.1.4, I had problems
during the linking phase because of the attached file contributed by Mumit
Khan. Specifically, I had an undefined reference to '__imp_reent_data'
due to the following line:
_impure_ptr = __imp_reent_data;
Reading the comments, I can only assume that '__imp_reent_data' is a
vestige of b19. If so, what is the appropriate analog for the Net
release?
BTW, searching the archives I found exactly the same problem as
documented by:
http://sources.redhat.com/ml/cygwin/2000-07/msg00629.html
Unfortunately, there was no response to this post. Hopefully, I will
be more fortunate. At least, I can try, try again...
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.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is __imp_reent_data Deprecated? (a.k.a Problem #3 Building Cygwin PostgreSQL)
[not found] ` <20000922130217.D5938@cygnus.com>
@ 2000-09-22 10:18 ` Jason Tishler
2000-09-22 11:47 ` Jason Tishler
0 siblings, 1 reply; 4+ messages in thread
From: Jason Tishler @ 2000-09-22 10:18 UTC (permalink / raw)
To: Cygwin
I think that Chris meant to reply to the list too...
On Fri, Sep 22, 2000 at 01:02:17PM -0400, Chris Faylor wrote:
> On Fri, Sep 22, 2000 at 09:37:15AM -0400, Jason Tishler wrote:
> >While building PostgreSQL 7.0.2 on a stock Cygwin 1.1.4, I had problems
> >during the linking phase because of the attached file contributed by Mumit
> >Khan. Specifically, I had an undefined reference to '__imp_reent_data'
> >due to the following line:
> >
> > _impure_ptr = __imp_reent_data;
> >
> >Reading the comments, I can only assume that '__imp_reent_data' is a
> >vestige of b19. If so, what is the appropriate analog for the Net
> >release?
> >
> >BTW, searching the archives I found exactly the same problem as
> >documented by:
> >
> > http://sources.redhat.com/ml/cygwin/2000-07/msg00629.html
> >
> >Unfortunately, there was no response to this post. Hopefully, I will
> >be more fortunate. At least, I can try, try again...
>
> 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.
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.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is __imp_reent_data Deprecated? (a.k.a Problem #3 Building Cygwin PostgreSQL)
2000-09-22 10:18 ` Jason Tishler
@ 2000-09-22 11:47 ` Jason Tishler
0 siblings, 0 replies; 4+ messages in thread
From: Jason Tishler @ 2000-09-22 11:47 UTC (permalink / raw)
To: Cygwin; +Cc: dtrom
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.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Is __imp_reent_data Deprecated? (a.k.a Problem #3 Building Cygwin PostgreSQL)
@ 2000-09-22 7:48 Joost Kraaijeveld
0 siblings, 0 replies; 4+ messages in thread
From: Joost Kraaijeveld @ 2000-09-22 7:48 UTC (permalink / raw)
To: 'Jason Tishler'; +Cc: Cygwin@Sourceware. Cygnus. Com (E-mail)
If your purpose is just to get PostgreSQL compiling, you can leave out the
complete initdll source. It is just a replacement around the default
compiler functions, which do exactly what the those default functions do. (I
commented it out by a #ifdef 0 .... #endif so I did not need to edit the
PostgresQL makefile).
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
email: J.Kraaijeveld@Askesis.nl
web: www.askesis.nl
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-09-22 11:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-22 6:37 Is __imp_reent_data Deprecated? (a.k.a Problem #3 Building Cygwin PostgreSQL) Jason Tishler
[not found] ` <20000922130217.D5938@cygnus.com>
2000-09-22 10:18 ` Jason Tishler
2000-09-22 11:47 ` Jason Tishler
2000-09-22 7:48 Joost Kraaijeveld
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).