Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EA4301337B7C for ; Thu, 23 Sep 2010 00:56:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 71384-05 for ; Thu, 23 Sep 2010 03:56:11 +0000 (UTC) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by mail.postgresql.org (Postfix) with ESMTP id 694761337B4E for ; Thu, 23 Sep 2010 00:56:11 -0300 (ADT) Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by pgfoundry.org (Postfix) with ESMTP id 0150910715CC for ; Thu, 23 Sep 2010 03:56:11 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 48754-10; Thu, 23 Sep 2010 03:56:03 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id 1EAE210715C9; Thu, 23 Sep 2010 03:56:03 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1010862 ] Will not run on Windows 2000 and older, missing symbols Content-type: text/plain; charset=UTF-8 Message-Id: <20100923035603.1EAE210715C9@pgfoundry.org> Date: Thu, 23 Sep 2010 03:56:03 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201009/26 X-Sequence-Number: 10436 Bugs item #1010862, was opened at 2010-08-05 18:20 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010862&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Darrell Walisser (mediak) Assigned to: Nobody (None) Summary: Will not run on Windows 2000 and older, missing symbols Initial Comment: psqlODBC version: 8.04 0200 Attempting to use the driver under Windows 2000 in ODBC driver manager yields this: "The setup routines for the PostgreSQL ANSI ODBC driver could not be loaded due to system error code 127" then another dialog: "Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed" "Could not load the setup or translator library" I turns out that the psqlodbc*.dll is missing these symbols in WS_32.dll: freeaddrinfo, getaddrinfo, getnameinfo This article explains why they are missing, these were added in XP but there is a trick to make them work in earlier versions. Basically this could be fixed with a recompile. I could not compile with VS6 but I am having a go with Visual Studio Express 2008 (I usually use mingw for all Windows development so this may not work). http://msdn.microsoft.com/en-us/library/ms737931%28VS.85%29.aspx ---------------------------------------------------------------------- >Comment By: Hiroshi Inoue (hinoue) Date: 2010-09-23 03:56 Message: Though I did nothing in my environment, you had better include Wspiapi.h in socket.c according to the following patch so as to make sure the support of the backward- compatibility version of getaddrinfo() family. *** ../psqlodbc/socket.c 2010-05-26 20:41:50.870000000 +0900 --- ./socket.c 2010-09-23 00:30:24.388000000 +0900 *************** *** 33,38 **** --- 33,39 ---- #ifdef WIN32 #include + #include #else #include #include /* for memset */ ---------------------------------------------------------------------- Comment By: Cesare Leonardi (celeonar) Date: 2010-09-22 20:17 Message: I've tried 8.4.0202 as suggested by Hiroshi, installing over 8.4.0100, and for me it works, even with SSL. I've done only basic tests so far. Hiroshi, can i ask you how do you have resolved the WS_32.dll problem? With Win2000 i'm facing error with this DLL with an increasing number of open source programs. Clearly it's an obsolete os that many developer cannot test anymore, so i can try to propose your solution (i.e. to qemu). What compiler are you using? Thank you for your work. Cesare. ---------------------------------------------------------------------- Comment By: Hiroshi Inoue (hinoue) Date: 2010-09-22 15:36 Message: Could you please try the drivers on testing for 8.4.0202 at http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/ ? ---------------------------------------------------------------------- Comment By: Cesare Leonardi (celeonar) Date: 2010-09-19 21:14 Message: I can confirm this bug: 8.04 0200 under Win2000 SP4 gives the same error as Darrel and also for me the previous 0100 works. At least one step further, since SSL is not activable, but it's another story... Cesare. ---------------------------------------------------------------------- Comment By: Darrell Walisser (mediak) Date: 2010-08-05 18:43 Message: I discovered that rolling back to 804_0100 solves the problem, for now. I hope this works as well as 0804_0200. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010862&group_id=1000125