Re: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error
От | Magnus Hagander |
---|---|
Тема | Re: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error |
Дата | |
Msg-id | 20080506143610.1c87053c@mha-laptop.hagander.net обсуждение исходный текст |
Ответ на | Re: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error ("Pierre Joye" <pierre.php@gmail.com>) |
Ответы |
Re: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error
|
Список | pgsql-ports |
Pierre Joye wrote: > Hi Magnus, > > On Tue, May 6, 2008 at 1:36 PM, Magnus Hagander <magnus@hagander.net> > 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). There's your problem, really. 8.3+ does not support VC6 anymore. We need 7.1 or newer. > > 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. That one will require Visual Studio 2005... > > > 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 ;) :-D //Magnus
В списке pgsql-ports по дате отправления: