X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E82F29DCE58 for ; Tue, 21 Mar 2006 06:25:22 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31238-01 for ; Tue, 21 Mar 2006 06:25:24 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id ED1EF9DCBD1 for ; Tue, 21 Mar 2006 06:25:20 -0400 (AST) Received: from pye-srv-01.telemetry.co.uk (kdgmtbu.demon.co.uk [194.222.45.178]) by svr4.postgresql.org (Postfix) with ESMTP id 0B82D5AF678 for ; Tue, 21 Mar 2006 10:25:22 +0000 (GMT) Received: from pye-srv-01.telemetry.co.uk (IDENT:2@localhost [127.0.0.1]) by pye-srv-01.telemetry.co.uk (8.12.4/8.12.4) with ESMTP id k2LAPGkY018816 for ; Tue, 21 Mar 2006 10:25:16 GMT Received: (from daemon@localhost) by pye-srv-01.telemetry.co.uk (8.12.4/8.12.4/Submit) id k2LAPG4k018811; Tue, 21 Mar 2006 10:25:16 GMT From: Mark Morgan Lloyd Subject: Re: Building psql.exe using the free Borland compiler Date: Tue, 21 Mar 2006 10:25:14 +0000 Organization: KDG Telemetry Message-ID: <441FD48A.3E54ABA9@telemetry.co.uk> References: <441B08C8.857148BC@telemetry.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: pgsql-interfaces@PostgreSQL.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.08 required=5 tests=[AWL=0.080] X-Spam-Score: 0.08 X-Spam-Level: X-Archive-Number: 200603/23 X-Sequence-Number: 6079 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]