Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 9E70A2E003B for ; Tue, 6 May 2008 09:27:41 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88489-06 for ; Tue, 6 May 2008 09:27:33 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.227]) by developer.postgresql.org (Postfix) with ESMTP id D0F212E002D for ; Tue, 6 May 2008 09:27:37 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so566959rvf.43 for ; Tue, 06 May 2008 05:27:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=8gt71syiIs8Np6LcowvdN5kZ/1g9RkM2uhhUSroJ0tE=; b=ZbV9e/OGtSM1gvljifOteXOWNfBGo9x4XRngfTR1fdM2XgOAEyroz/qjczdZYVHa465wL/3D/8Ynz7+rBig4mpubTrpazee9/iS/LTihNdqzN6v+Jd+/vmWhLk5+V0Uli6sAT1SikFqk0uoyphanwBtF39pF/YB2DlMxKuMm6f8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DxPuqslVD+n8DN4QEZlglNXz1nacED2VcWZZwDYHm2WRGnfhIjzX4hn4CyGsUzDui0YiGOn2fGu8AbXDGPpjSbdLtLMcdAX5YM+13r0UFmZtA5rVuhP87fX3ra7lMXeW1nuY475RsUK7bUCedrNCmipmbttDPLeFVp5vxkoc0bY= Received: by 10.141.79.12 with SMTP id g12mr313917rvl.182.1210076856226; Tue, 06 May 2008 05:27:36 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Tue, 6 May 2008 05:27:36 -0700 (PDT) Message-ID: Date: Tue, 6 May 2008 14:27:36 +0200 From: "Pierre Joye" To: "Magnus Hagander" Subject: Re: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error Cc: pgsql-ports@postgresql.org In-Reply-To: <20080506133647.1f24a9f5@mha-laptop.hagander.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080506133647.1f24a9f5@mha-laptop.hagander.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200805/12 X-Sequence-Number: 2634 Hi Magnus, On Tue, May 6, 2008 at 1:36 PM, Magnus Hagander wrote: > Pierre Joye wrote: > > hi, > > > > While trying to update the PHP postgresql extension to 8.3.1, I met a > > couple of issues. > > > > The first was about not using kerberos, the makefile is incorrect as > > an error will be raised when kerberos is used and no kerberos is used. > > First of all, what version of MSVC are you building this with? And what > version of the Platform SDK? We use the last SDK working with VC6 (2003/02). That's sadly a requirement for php 5.x. We are working on supporting 2k5 and the latest SDK for 5.3+. However VC6 support has to be kept for the 5.x branches (at least). > Second, is there any particular reason you need to build it yourself, > instead of using the binaries that we ship already? Mainly because of VC6, we had many issues in the pasts with builds not using the exact same crt than PHP. > And third, I'd recommend you try to build it using the "main method" > which is using the tools in src/tools/msvc, and not the win32.mak > method. It's much more complete. You can build "just libpq" that way as > well. I did not know this one, thanks! I will give it tonight. > > The 2nd problem is about Shell32.lib, it is missing in the lib list. > > It is required for SHGetFolderPath. > > That's strange, because if that was so then nobody should be able to > build it. We should be getting the symbol from shfolder.lib. I got an unknown symbol "SHGetFolderPath" using win32.mak. > > The last two problems are more tricky. It is about addrinfo and > > sockaddr. addrinfo is actually defined on windows and seems to have > > the correct order of the structure elements (see the comment in > > src/include/getaddrinfo.h). Removing this declaration seems to work > > (not tested yet). > > Again, you seem to be doing *something* wrong here, because it builds > perfectly fine for others. :-) Anything "unusual" about your > environment, that you would guess? Besides the museum piece of software that is the 2003's SDK, nothing ;) > (And do try the "real" backend build way instead of win32.mak. Even if > it doesn't fix your issue, it might help with showing us what actually > is wrong) Yes, I will definitively try the "normal" way. It will certainly fix all the issues. I'll come back to you after my tests. Thanks for your quick reply and the tips! -- Pierre http://blog.thepimp.net | http://www.libgd.org