Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 82A9A2E0047 for ; Tue, 6 May 2008 05:29:13 -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 70941-02 for ; Tue, 6 May 2008 05:29:01 -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.236]) by developer.postgresql.org (Postfix) with ESMTP id 53C202E0042 for ; Tue, 6 May 2008 05:29:04 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so444628rvf.43 for ; Tue, 06 May 2008 01:29:03 -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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=jJ699VYsI215pJXKP8xnAiLq7eorLXvMfAzsyJKo8wY=; b=gDxnp68Rt05rAqDE3HciPoNmdUtIEnBGN30QLhGvAsAMR6/ckd0w1RReVu3fB/otzw4zDVmkXQ/boTfIBTW6KDZegsSIiQgBZeyx2qjPZdjIWAQLWlpcrFVq1tBnCKAnY7xbYDtv6OSBcXkRWlOC3xirA1pY2PvOESjw9xNCVmI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=F+GHgaNB/3kRuvqB54WYYjpkSHXFGBUlv0yHUEM9FsA9fr9rBcuYI4ydXOJk+Q49OnYK76KrY+mmk2pcv3risWDh9wzOngOoB1xUE0K6FbG92JqSSvofUh1qnaMtfUewNv1YhEf5cHPL/AgpbeHezRLc2kVwsLAZibJGHD5S0KA= Received: by 10.140.166.21 with SMTP id o21mr217563rve.167.1210062542586; Tue, 06 May 2008 01:29:02 -0700 (PDT) Received: by 10.141.123.13 with HTTP; Tue, 6 May 2008 01:29:02 -0700 (PDT) Message-ID: Date: Tue, 6 May 2008 10:29:02 +0200 From: "Pierre Joye" To: pgsql-ports@postgresql.org Subject: Libpq visual c++ build errors, addrinfo and sockaddr_storage redefinition error MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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/10 X-Sequence-Number: 2632 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. I added the following lines to avoid libpath error: !IFDEF USE_SSL CPP_PROJ=$(CPP_PROJ) /D USE_SSL SSL_LIBS=ssleay32.lib libeay32.lib gdi32.lib SSL_LIBPATH_ARG= /libpath:"$(SSL_LIB_PATH)" !ENDIF !IFDEF USE_KFW CPP_PROJ=$(CPP_PROJ) /D KRB5 KFW_LIBS=krb5_32.lib comerr32.lib gssapi32.lib KFW_LIBPATH_ARG= /libpath:"$(KFW_LIB_PATH)" !ENDIF and use XXX_LIBPATH_ARG in the LINK32_FLAG The 2nd problem is about Shell32.lib, it is missing in the lib list. It is required for SHGetFolderPath. 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). I'm now trying to figure out the sockaddr_storage redclaration. The windows struct is different (http://msdn.microsoft.com/en-us/library/aa917505.aspx) and I'm not sure it is a good idea to force the related HAVE_* definitions. Does anyone have an idea about how to fix these two problems? If not, I can try to fix them and run some tests using PHP, any help welcome as I'm not a pgsql user (only building php releases and snapshots, www.php.net/download and snaps.php.net). The last version of my win32.mak file is available here: http://pecl2.php.net/downloads/php-windows-builds/source/libpq/win32.mak Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org