Re: Building psql.exe using the free Borland compiler

Поиск
Список
Период
Сортировка
Искать
От
Mark Morgan Lloyd
Тема
Re: Building psql.exe using the free Borland compiler
Дата
Msg-id
441FD48A.3E54ABA9@telemetry.co.uk
Список
Дерево обсуждения
Re: Building psql.exe using the free Borland compiler ljb <ljb220@mindspring.com>
Re: Building psql.exe using the free Borland compiler Bruce Momjian <pgman@candle.pha.pa.us>
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]

В списке pgsql-interfaces по дате отправления
От: Mark Morgan Lloyd
Дата:
От: Zlati
Дата:
FAQ