Unix Technical Forum

Building libpq/psql with Borland BCC5

This is a discussion on Building libpq/psql with Borland BCC5 within the Pgsql Patches forums, part of the PostgreSQL category; --> The attached patch against PostgreSQL-8.2.1 was discussed on [INTERFACES]. It fixes bcc32.mak makefiles for the Borland BCC compiler to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 10:17 AM
L Bayuk
 
Posts: n/a
Default Building libpq/psql with Borland BCC5

The attached patch against PostgreSQL-8.2.1 was discussed on [INTERFACES].
It fixes bcc32.mak makefiles for the Borland BCC compiler to build libpq
and psql*. There are also changes to some header files to hide some things
BCC doesn't like.

*Note: psql compiles with bcc after the patch, but it does not run very well.


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 10:17 AM
Gavin Sherry
 
Posts: n/a
Default Re: Building libpq/psql with Borland BCC5

On Tue, 9 Jan 2007, L Bayuk wrote:

> The attached patch against PostgreSQL-8.2.1 was discussed on [INTERFACES].
> It fixes bcc32.mak makefiles for the Borland BCC compiler to build libpq
> and psql*. There are also changes to some header files to hide some things
> BCC doesn't like.
>
> *Note: psql compiles with bcc after the patch, but it does not run very well.
>


Define "does not run very well" :-)

Gavin

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-18-2008, 10:17 AM
Bruce Momjian
 
Posts: n/a
Default Re: Building libpq/psql with Borland BCC5

Gavin Sherry wrote:
> On Tue, 9 Jan 2007, L Bayuk wrote:
>
> > The attached patch against PostgreSQL-8.2.1 was discussed on [INTERFACES].
> > It fixes bcc32.mak makefiles for the Borland BCC compiler to build libpq
> > and psql*. There are also changes to some header files to hide some things
> > BCC doesn't like.
> >
> > *Note: psql compiles with bcc after the patch, but it does not run very well.
> >

>
> Define "does not run very well" :-)


See:

http://archives.postgresql.org/pgsql...1/msg00003.php

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

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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-18-2008, 10:17 AM
Gavin Sherry
 
Posts: n/a
Default Re: Building libpq/psql with Borland BCC5

On Tue, 9 Jan 2007, Bruce Momjian wrote:

> Gavin Sherry wrote:
> > On Tue, 9 Jan 2007, L Bayuk wrote:
> >
> > > The attached patch against PostgreSQL-8.2.1 was discussed on [INTERFACES].
> > > It fixes bcc32.mak makefiles for the Borland BCC compiler to build libpq
> > > and psql*. There are also changes to some header files to hide some things
> > > BCC doesn't like.
> > >
> > > *Note: psql compiles with bcc after the patch, but it does not run very well.
> > >

> >
> > Define "does not run very well" :-)

>
> See:
>
> http://archives.postgresql.org/pgsql...1/msg00003.php
>


*blinks*

Can we be sure that a BCC build libpq is even safe to use given the
problems seen when using psql?

Gavin

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-18-2008, 10:17 AM
Bruce Momjian
 
Posts: n/a
Default Re: Building libpq/psql with Borland BCC5

Gavin Sherry wrote:
> On Tue, 9 Jan 2007, Bruce Momjian wrote:
>
> > Gavin Sherry wrote:
> > > On Tue, 9 Jan 2007, L Bayuk wrote:
> > >
> > > > The attached patch against PostgreSQL-8.2.1 was discussed on [INTERFACES].
> > > > It fixes bcc32.mak makefiles for the Borland BCC compiler to build libpq
> > > > and psql*. There are also changes to some header files to hide some things
> > > > BCC doesn't like.
> > > >
> > > > *Note: psql compiles with bcc after the patch, but it does not run very well.
> > > >
> > >
> > > Define "does not run very well" :-)

> >
> > See:
> >
> > http://archives.postgresql.org/pgsql...1/msg00003.php
> >

>
> *blinks*
>
> Can we be sure that a BCC build libpq is even safe to use given the
> problems seen when using psql?


The bcc users say it is.

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

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

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-18-2008, 10:17 AM
Tom Lane
 
Posts: n/a
Default Re: Building libpq/psql with Borland BCC5

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

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-18-2008, 10:17 AM
Bruce Momjian
 
Posts: n/a
Default Re: [PATCHES] Building libpq/psql with Borland BCC5

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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-18-2008, 10:17 AM
Alvaro Herrera
 
Posts: n/a
Default Re: [HACKERS] [PATCHES] Building libpq/psql with Borland BCC5

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.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-18-2008, 10:17 AM
Bruce Momjian
 
Posts: n/a
Default Re: [HACKERS] [PATCHES] Building libpq/psql with Borland BCC5

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

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-18-2008, 10:17 AM
Merlin Moncure
 
Posts: n/a
Default Re: [HACKERS] [PATCHES] Building libpq/psql with Borland BCC5

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

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com