Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 936949FB1E2 for ; Mon, 15 Jan 2007 18:18:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 82103-02 for ; Mon, 15 Jan 2007 18:18:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id C6BE49FB1DF for ; Mon, 15 Jan 2007 18:18:20 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id l0FMIKU00368; Mon, 15 Jan 2007 17:18:20 -0500 (EST) From: Bruce Momjian Message-Id: <200701152218.l0FMIKU00368@momjian.us> Subject: Re: BCC55 and libpq 8.2 In-Reply-To: To: CN Date: Mon, 15 Jan 2007 17:18:20 -0500 (EST) CC: pgsql-interfaces@postgresql.org X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/22 X-Sequence-Number: 6400 CN wrote: > On Fri, 5 Jan 2007 20:57:00 -0500 (EST), Bruce Momjian > wrote: > > > I have created the following patch based on your description of how to > > get BCC compiled. Please let me know how it works against a stock > > PostgreSQL 8.2.X and I can include the patch in 8.2.2. > > I tried the CVS version just now and noticed that > > (1) I have to do "ln -s libpq.rc.in libpq.rc". Interesting question. I looked at the install instructions and there is no mention of this for MSVC or BCC: http://www.postgresql.org/docs/8.2/static/install-win32.html I looked at the win32.mak file, and see no refererence to libpq.rc.in, so how is the MSVC working? Should we add rules for both? > (2) File blibpqdll.def is missing. I then got one from > http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/postgres/postgresql-8.1.4/src/interfaces/libpq/blibpqdll.def > > Then it compiles fine and appears to work with _old_ libwine. Uh, it is supposed to be build by this rule: $(srcdir)/blibpqdll.def: exports.txt echo '; DEF file for Borland C++ Builder' > $@ echo 'LIBRARY BLIBPQ' >> $@ echo 'EXPORTS' >> $@ sed -e '/^#/d' -e 's/^\(.* \)\([0-9][0-9]*\)/ _\1@ \2/' < $< >> $@ echo '' >> $@ echo '; Aliases for MS compatible names' >> $@ sed -e '/^#/d' -e 's/^\(.* \)\([0-9][0-9]*\)/ \1= _\1/' < $< | sed 's/ *$$//' >> $@ Is there a reason this failed? > By the way, I have not received any response to BUG #2827. Hopefully > someone will help. Yes, I saw that. It is not clear whether this is a libpq problem or a Wine problem. We are unsure how to debug this. I wonder whether it is a problem with getaddrinfo. We did fix an addrinfo issue in 8.2.1: * Improve handling of getaddrinfo() on AIX (Tom) I wonder if that fixes it. -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. +