Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DA2251337B6C for ; Fri, 29 Oct 2010 18:08:57 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 13781-05 for ; Fri, 29 Oct 2010 21:08:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 80A601337B69 for ; Fri, 29 Oct 2010 18:08:50 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 593D2348017; Fri, 29 Oct 2010 14:08:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xMivOckWC4Hb; Fri, 29 Oct 2010 14:08:46 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [200.85.213.6]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id CE2F7348015; Fri, 29 Oct 2010 14:08:45 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3265B6E808; Fri, 29 Oct 2010 18:08:42 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Richard Evans , pgsql-bugs Subject: Re: BUG #5707: Cross compilation for windows is broken From: Alvaro Herrera To: Robert Haas In-reply-to: References: <201010121548.o9CFmjPa038535@wwwmaster.postgresql.org> <1286907735-sup-6339@alvh.no-ip.org> Date: Fri, 29 Oct 2010 18:08:42 -0300 Message-Id: <1288386407-sup-8831@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.324 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_NJABL_PROXY=2.224 X-Spam-Level: X-Archive-Number: 201010/272 X-Sequence-Number: 28562 Excerpts from Robert Haas's message of vie oct 29 13:23:39 -0300 2010: > On Tue, Oct 12, 2010 at 2:25 PM, Alvaro Herrera > wrote: > > Excerpts from Richard Evans's message of mar oct 12 12:48:45 -0300 2010: > > > >> When cross compiling for Windows using a separate build area, libpq.dll does > >> not build because the .def file cannot be found. > >> > >> This appears to be caused by these lines in Makefile.shlib: > > > > Hmm, apparently this was made to work here: > > http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=26af72b4 > > > > and subsequently broken later: > > http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=234c7ce9 > > > > I think the real fix is to make the DEF files be generated in the > > builddir, to complete the intention of the latter patch. > > Is anyone working on that? Not me. I tried, but mingw32-gcc doesn't work out of the box for me, because configure is not testing for the right accept() arguments. That's what I can do with the time I can dedicate to a problem like this right now (i.e. not much). -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support