pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre Joye <pierre.php@gmail.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: pgsql-ports@postgresql.org
Subject: Re: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error
Date: Wed, 23 Jul 2008 23:29:27 +0200
Message-ID: <fe05d1540807231429y1e43585p982ba697cc3e3ac5@mail.gmail.com> (raw)
In-Reply-To: <20080506200147.294acd5c@mha-laptop.hagander.net>
References: <fe05d1540805060129i35cd33c4rb2d62fea090907d5@mail.gmail.com>
	<20080506133647.1f24a9f5@mha-laptop.hagander.net>
	<fe05d1540805060527s758dad50mb6c3b5b5da5d613e@mail.gmail.com>
	<20080506143610.1c87053c@mha-laptop.hagander.net>
	<fe05d1540805060544s4e79a116p8892785c80c1bd54@mail.gmail.com>
	<20080506200147.294acd5c@mha-laptop.hagander.net>

hi Magnus!

On Tue, May 6, 2008 at 8:01 PM, Magnus Hagander <magnus@hagander.net> 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



view thread (7+ messages)

Message-ID: <fe05d1540807231429y1e43585p982ba697cc3e3ac5@mail.gmail.com>
Permalink:  ../fe05d1540807231429y1e43585p982ba697cc3e3ac5@mail.gmail.com/
Also on:    postgresql.org/message-id/fe05d1540807231429y1e43585p982ba697cc3e3ac5@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: pierre.php@gmail.com, magnus@hagander.net
  Subject: Re: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error
  In-Reply-To: <fe05d1540807231429y1e43585p982ba697cc3e3ac5@mail.gmail.com>
  References: <fe05d1540805060129i35cd33c4rb2d62fea090907d5@mail.gmail.com> <20080506133647.1f24a9f5@mha-laptop.hagander.net> <fe05d1540805060527s758dad50mb6c3b5b5da5d613e@mail.gmail.com> <20080506143610.1c87053c@mha-laptop.hagander.net> <fe05d1540805060544s4e79a116p8892785c80c1bd54@mail.gmail.com> <20080506200147.294acd5c@mha-laptop.hagander.net> <fe05d1540807231429y1e43585p982ba697cc3e3ac5@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox