Обсуждение: Re: [PATCHES] Building libpq/psql with Borland BCC5

Поиск
Список
Период
Сортировка

Re: [PATCHES] Building libpq/psql with Borland BCC5

От
Tom Lane
Дата:
Gavin Sherry <swm@linuxworld.com.au> writes:
> Can we be sure that a BCC build libpq is even safe to use given the
> problems seen when using psql?

Well, I'd not trust it a lot, but surely we have to get it to build
before anyone can debug it ...

            regards, tom lane

Re: [PATCHES] Building libpq/psql with Borland BCC5

От
Bruce Momjian
Дата:
Tom Lane wrote:
> Gavin Sherry <swm@linuxworld.com.au> writes:
> > Can we be sure that a BCC build libpq is even safe to use given the
> > problems seen when using psql?
>
> Well, I'd not trust it a lot, but surely we have to get it to build
> before anyone can debug it ...

It does build, but the report is that psql crashes after a few commands.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

Re: [PATCHES] Building libpq/psql with Borland BCC5

От
Alvaro Herrera
Дата:
Bruce Momjian wrote:
> Tom Lane wrote:
> > Gavin Sherry <swm@linuxworld.com.au> writes:
> > > Can we be sure that a BCC build libpq is even safe to use given the
> > > problems seen when using psql?
> >
> > Well, I'd not trust it a lot, but surely we have to get it to build
> > before anyone can debug it ...
>
> It does build, but the report is that psql crashes after a few commands.

What about a Mingw or VC++ psql with a BCC libpq?  Is it possible to
link something like that?

It would be nice to have the libpq at least able to pass the regression
tests.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Re: [PATCHES] Building libpq/psql with Borland BCC5

От
Bruce Momjian
Дата:
Alvaro Herrera wrote:
> Bruce Momjian wrote:
> > Tom Lane wrote:
> > > Gavin Sherry <swm@linuxworld.com.au> writes:
> > > > Can we be sure that a BCC build libpq is even safe to use given the
> > > > problems seen when using psql?
> > >
> > > Well, I'd not trust it a lot, but surely we have to get it to build
> > > before anyone can debug it ...
> >
> > It does build, but the report is that psql crashes after a few commands.
>
> What about a Mingw or VC++ psql with a BCC libpq?  Is it possible to
> link something like that?

No idea.

> It would be nice to have the libpq at least able to pass the regression
> tests.

True.

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

Re: [pgsql-patches] [PATCHES] Building libpq/psql with Borland BCC5

От
"Merlin Moncure"
Дата:
On 1/10/07, Alvaro Herrera <alvherre@commandprompt.com> wrote:

> What about a Mingw or VC++ psql with a BCC libpq?  Is it possible to
> link something like that?
>
> It would be nice to have the libpq at least able to pass the regression
> tests.

you can use microsoft/mingw compiled DLL files but not library files.
however, borland provides a command line tool (implib i thnk) to
create an import library for it which works ok. (i think you have to
pass a switch to fix underscore issue).

libpq.lib is not directly usable (coff vs. omf) but digital mars makes
a tool which can do this and I have confirmed it works.

note: I've used borland compiled libpq (not psql) with borland C++
builder 3 & 5 with no problems. I had to hack pg_config.h however.

merlin