X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2D67C9FA48C for ; Sun, 28 May 2006 21:46:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 94472-05 for ; Sun, 28 May 2006 21:46:23 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 552069FA131 for ; Sun, 28 May 2006 21:46:24 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id CA88631479; Mon, 29 May 2006 02:46:21 +0200 (MET DST) From: ljb X-Newsgroups: pgsql.interfaces Subject: Re: Building psql.exe using the free Borland compiler Date: Mon, 29 May 2006 00:46:13 +0000 (UTC) Organization: Hub.Org Networking Services Lines: 31 Message-ID: References: <20060528013345.GA1888@surnet.cl> <200605280236.k4S2aSW22700@candle.pha.pa.us> X-Complaints-To: usenet@news.hub.org User-Agent: slrn/0.9.8.1 (Linux) To: pgsql-interfaces@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/14 X-Sequence-Number: 6135 pgman@candle.pha.pa.us wrote: >... > > > > This change is causing me grief when trying to compile libpq from > > PostgreSQL-8.1.4 using Borland BCC32. The above echo command puts > > exactly this into my pg_config_paths.h: > > #define SYSCONFDIR \"\" > > which irks the compiler when building fe-connect.c > > I had to change it to this in the Makefile: > > echo \#define SYSCONFDIR "" > pg_config_paths.h > > Before suggesting undoing this patch, can anyone else verify which version > > works for them? > > Yes, I am getting confused why it works sometimes and not others. Are > you using bcc55? Does this work: > > echo '#define SYSCONFDIR ""' > pg_config_paths.h Yes, bcc55. In case it matters, using Windows 2000. You say echo is done by Borland make - are you sure? I thought maybe it was just passed to the command processor cmd.exe. It doesn't seem to do anything special with quotes - justs outputs them - but I will do some more checking with "'\ in a Makefile (on Tuesday, when I'm back where the Windows PC lives.) It would be interesting to hear from the original poster who changed "" to \"\" to find out what his environment is. By the way, I also had to put "#define inline" into pg_config.h.win32 after #ifdef __BORLANDC__, or the compilation failed in backend/utils/mb/wchar.c (keep in mind I'm only building libpq here).