From: Mark Morgan Lloyd <markMLl.pgsql-interfaces@telemetry.co.uk>
To: pgsql-interfaces@PostgreSQL.org
Subject: Re: Building psql.exe using the free Borland compiler
Date: Tue, 21 Mar 2006 10:25:14 +0000
Message-ID: <441FD48A.3E54ABA9@telemetry.co.uk> (raw)
References: <441B08C8.857148BC@telemetry.co.uk>
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]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: markMLl.pgsql-interfaces@telemetry.co.uk
Subject: Re: Building psql.exe using the free Borland compiler
In-Reply-To: <441FD48A.3E54ABA9@telemetry.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox