X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A1E2B3A3D3C for ; Mon, 8 Nov 2004 03:08:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92713-01 for ; Mon, 8 Nov 2004 03:08:01 +0000 (GMT) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by svr1.postgresql.org (Postfix) with ESMTP id A05FA3A3CDB for ; Mon, 8 Nov 2004 03:08:03 +0000 (GMT) Received: from xs2.xs4all.nl (xs2.xs4all.nl [194.109.21.3]) by smtp-vbr10.xs4all.nl (8.12.11/8.12.11) with ESMTP id iA837r8n065131; Mon, 8 Nov 2004 04:07:53 +0100 (CET) (envelope-from jtv@xs4all.nl) Received: from xs2.xs4all.nl (jtv@localhost [127.0.0.1]) by xs2.xs4all.nl (8.12.11/8.12.11) with ESMTP id iA837rhe083606; Mon, 8 Nov 2004 04:07:53 +0100 (CET) (envelope-from jtv@xs4all.nl) Received: (from jtv@localhost) by xs2.xs4all.nl (8.12.11/8.12.11/Submit) id iA837llK083595; Mon, 8 Nov 2004 04:07:47 +0100 (CET) (envelope-from jtv) Date: Mon, 8 Nov 2004 04:07:47 +0100 From: "Jeroen T. Vermeulen" To: Hans-G?nther R?wekamp Cc: pgsql-interfaces@postgresql.org Subject: Re: Borland c++ compile problems Message-ID: <20041108030747.GA82614@xs4all.nl> Mail-Followup-To: Hans-G?nther R?wekamp , pgsql-interfaces@postgresql.org References: <20041103225133.AFBC53A46A6@svr1.postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041103225133.AFBC53A46A6@svr1.postgresql.org> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200411/7 X-Sequence-Number: 5133 On Wed, Nov 03, 2004 at 11:51:41PM +0100, Hans-G?nther R?wekamp wrote: > \fe connect.c: > Warning W8017..\..\include\port/win32.h 37: Redefinition of ' DLL IMPORT ' > is not identically > Error E2209 \fe connect.c 23: Include file ' unistd.h ' cannot be opened > Error E2209 \fe connect.c for 32: Include file ' pg_config_paths.h ' cannot > be opened > Error E2451 \fe connect.c for 2399: Undefined symbol ' SYSCONFDIR ' in > function parseServiceInfo > --- > Where can I get the missing file? It would seem that you're hitting several unrelated problems here: 1. The include/port/win32.h header appears to try to set things up in a way that's right for Microsoft's compiler, but thinking that it's right for Microsoft's OS. The company doesn't always make it easy to distinguish between the two; you may need to do some research to find out how DLL importing is handled in Borland C++ Builder as opposed to MS Visual C++. Either that, or look for a suitable "Visual C++ compatibility" option in your compiler. 2. The unistd.h header is something your system/compiler combination would normally provide. You either have it or you don't; it's not likely to be fixable if you don't. *However,* there's a chance that the configuration script actually checks for it and knows how to work around a missing unistd.h, and this is simply a case where the file shouldn't be included. Try commenting out the #include ; if you get lots of errors for undefined Unix types/functions, you're out of luck. 3. Have you tried doing a search for pg_config_paths.h? If it doesn't exist, it's probably generated by the configure script. Did you get any errors when you ran the configure script? Jeroen