From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Mark Morgan Lloyd <markMLl(dot)pgsql-interfaces(at)telemetry(dot)co(dot)uk> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Building psql.exe using the free Borland compiler |
Date: | 2006-04-24 04:02:11 |
Message-ID: | 200604240402.k3O42Bg09540@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Mark Morgan Lloyd wrote:
> 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.
Why remove the file if it is overwritten anyway?
> ii) Modify src\interfaces\libpq\pg_config_paths.h so that instead of reading:
>
> #define SYSCONFDIR
>
> it reads:
>
> #define SYSCONFDIR ""
OK, I originally had in the Makefile:
echo \#define SYSCONFDIR "" > pg_config_paths.h
I changed it to:
echo \#define SYSCONFDIR \"\" > pg_config_paths.h
I hope that properly puts quotes in the file.
> 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.
Done. Applied patch attached.
--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 1.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Volkan YAZICI | 2006-04-24 10:17:05 | Re: Receiving SIGPIPE for PQfinish(<broken-connection>) |
Previous Message | Bruce Momjian | 2006-04-23 04:09:58 | Re: Receiving SIGPIPE for PQfinish(<broken-connection>) |