RE: Building psql.exe, libpq.dll & libpq.lib (7.1Bet a3)

From: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
To: "'Magnus Hagander'" <mha(at)sollentuna(dot)net>, "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: Building psql.exe, libpq.dll & libpq.lib (7.1Bet a3)
Date: 2001-01-22 14:02:55
Message-ID: 8568FC767B4AD311AC33006097BCD3D61A28E4@woody.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> -----Original Message-----
> From: Magnus Hagander [mailto:mha(at)sollentuna(dot)net]
> Sent: 22 January 2001 12:33
> To: 'Dave Page'; 'pgsql-interfaces(at)postgresql(dot)org'
> Subject: RE: [INTERFACES] Building psql.exe, libpq.dll & libpq.lib
> (7.1Bet a3)
>
>
> > > Please try it with the patch that I just posted to the
> > > hackers list. Note
> > > that the problem with psql.exe is not fixed yet, though.
> > >
> >
> > Thanks, I'll try it. The problem you mention with psql - is
> > that where it
> > crashes when it redisplays the prompt after a query or <cr>?
>
> Yup, that's the one. Andreas Zeugswetter had an idea to fix
> that one as well
> by adding "/MD" to the linker flags. Haven't tried it yet, though.
>
> //Magnus
>

Both problems solved! I did have to tweek a couple of things though:

fnctl.h seems to be called fcntl.h on my Visual Studio installation (I
assume they're the same file - it didn't complain after I copied one to the
other!).

The VC compiler didn't like the use of PG_VERSION in lines 607 & 629 in
src/bin/psql/startup.c - a quick hardcode of the version number cured this.

And, yes I know both of those fixes are a million miles from fixing it
properly but I'm only toying with an idea here!

BTW: I'm working with beta3 not the snapshot that I assume you are using.

Thanks, Dave.

Browse pgsql-interfaces by date

  From Date Subject
Next Message Nicholas Chan 2001-01-22 14:26:17 Re: extremely newbie questions
Previous Message Dave Page 2001-01-22 12:46:51 RE: Building psql.exe, libpq.dll & libpq.lib (7.1Bet a3)