Re: Building psql.exe using the free Borland compiler

From: Mark Morgan Lloyd <markMLl(dot)pgsql-interfaces(at)telemetry(dot)co(dot)uk>
To: pgsql-interfaces(at)PostgreSQL(dot)org
Subject: Re: Building psql.exe using the free Borland compiler
Date: 2006-03-21 10:25:14
Message-ID: 441FD48A.3E54ABA9@telemetry.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Mark Morgan Lloyd wrote:
>
> Has anybody succeeded in building psql from 8.1.3 using bcc55?

Well, looks like it's me then. Skipping the standard stuff to do with setting up
the compiler and selecting the correct makefiles, and with the strong caveat
that this is for BCC 5.5 and is untested against earlier and later Borland
compilers:

i) Delete src\include\pg_config.h if it exists, it's recreated by the
makefile.

ii) Modify src\interfaces\libpq\pg_config_paths.h so that instead of reading:

#define SYSCONFDIR

it reads:

#define SYSCONFDIR ""

iii) Modify src\include\port.h so that instead of reading:

#ifndef __BORLANDC__
#define popen(a,b) _popen(a,b)
#define pclose(a) _pclose(a)
#endif

it reads:

// ifndef __BORLANDC__
#define popen(a,b) _popen(a,b)
#define pclose(a) _pclose(a)
// endif

Should now compile and run without problems.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Zlati 2006-03-21 11:05:25 using libpq with the free Borland compiler or DEV-cpp
Previous Message Mark Morgan Lloyd 2006-03-17 19:06:48 Building psql.exe using the free Borland compiler