Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9827B64FCCC for ; Wed, 23 Jul 2008 18:29:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 95993-09 for ; Wed, 23 Jul 2008 18:29:26 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.229]) by postgresql.org (Postfix) with ESMTP id 8108064FCD2 for ; Wed, 23 Jul 2008 18:29:29 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so3140902rvf.43 for ; Wed, 23 Jul 2008 14:29:28 -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=0WX12m3pLEaKG0VCZAPpLwBzlS/0n0eZcEYBDxRfEk8=; b=YTtoWTrgJBwORSDyv0Xa7WFKSiXuwXV4RBV++zc3LsXb7cbed+SlPkrvlu+Ihhxtcp qSGPu33pcGUssXUCFtuT2jm48k+tG2iRaSGKSlaL0rwZ7cctGNbzU5A+AVE2rCRXBEg2 OZjU+v+Hl1bd4K7lycOV6E1jO/7bmM/koN1fQ= 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=fx4m+r5tg3qH3xD0d4Ax/SNshtJ3uBITm9q0Y8X5HXbraTZNn8eDYgdkOdyr6sSgiR EMc9regvyJc2B8TwpxoqGD66QSrmh3dHhsg9A6WmcnWc6wh3TXvoAGLgjwVEp9iV9sBx 1zC530XsTo5zdJCgGkm6QxaXix1xJ8ay5twU4= Received: by 10.141.29.21 with SMTP id g21mr112350rvj.225.1216848567990; Wed, 23 Jul 2008 14:29:27 -0700 (PDT) Received: by 10.140.178.14 with HTTP; Wed, 23 Jul 2008 14:29:27 -0700 (PDT) Message-ID: Date: Wed, 23 Jul 2008 23:29:27 +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: <20080506200147.294acd5c@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> <20080506143610.1c87053c@mha-laptop.hagander.net> <20080506200147.294acd5c@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: 200807/10 X-Sequence-Number: 2662 hi Magnus! On Tue, May 6, 2008 at 8:01 PM, Magnus Hagander wrote: > Pierre Joye wrote: >> > > 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). >> > >> > There's your problem, really. 8.3+ does not support VC6 anymore. We >> > need 7.1 or newer. Ok, time for some news :) We have finally decide of a death sentence for VC6 (php 5.3.x is the last release to support it). Then only VC9 binaries will be provided (be 5.4 or 6). >> I was suspecting this problem. Do you have any experiences of using >> these 2k5 binaries with VC6 (especially in threaded environment)? We >> may give it a try in the next weeks and update it again in 5.2.7 and >> 5.3 if it works well. > > It shouldn't be a problem, other than requiring both runtimes to be > present. Unless you use PQtrace() in which case it will be a big > problem. > > Basically, as long as you don't free() something in one runtime that > was malloced():d in a nother one, and as long as you don't pass "CRT > pointers" between the two runtimes, you are fine. And we do pass a CRT > pointer around in PQtrace, but that's the only case. We used to have a > problem with some Kerberos structure that was malloced in one place and > free()d in another, but that has been fixed. I managed to compile the latest libpq with VC6, it requires only some minor changes. I describe the procedure here (not asking to merge the changes but it may help someone reading this list or the archive): http://wiki.php.net/internals/windows/libs/libpg (should be pq =) VC8 and VC9 works out of the box except that the command line options are ignored (I will try to find the cause and report a bug for it). You made a great work :) I'm about to update the PHP Snapbox with the new versions, if you know some pgsql+php Windows users, it would be the right time to test (online on Monday 28th of July). Thanks for your fantastic work and help :) Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org