Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id EE3E06337E6 for ; Sat, 5 Sep 2009 13:41:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 35727-07 for ; Sat, 5 Sep 2009 16:40:53 +0000 (UTC) X-Greylist: delayed 00:09:58.881121 by SQLgrey-1.7.6 Received: from antispam1.emt.ee (antispam1.emt.ee [217.71.32.133]) by mail.postgresql.org (Postfix) with ESMTP id F27AC632C59 for ; Sat, 5 Sep 2009 13:40:53 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuEAAOcuokqsHQkZ/2dsb2JhbAAInDS7e4QYBYFUYg X-IronPort-AV: E=Sophos;i="4.44,338,1249246800"; d="scan'208";a="9656009" Received: from unknown (HELO andrusnotebook) ([172.29.9.25]) by antispam1.emt.ee with SMTP; 05 Sep 2009 19:30:49 +0300 Message-ID: <44C109BDFD44445BADD871D79D413AD9@andrusnotebook> From: "Andrus" To: "Hiroshi Inoue" Cc: References: <851644EB1A494A299A83CB453D1187FD@andrusnotebook> <4AA10952.2050906@tpf.co.jp> In-Reply-To: <4AA10952.2050906@tpf.co.jp> Subject: Re: 08.04.0100: Couldn't load libpq library Date: Sat, 5 Sep 2009 19:30:30 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-1257"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Windows Mail 6.0.6002.18005 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.003 tagged_above=-10 required=5 tests=BAYES_50=0.001, STOX_REPLY_TYPE=0.001, UPPERCASE_50_75=0.001 X-Spam-Level: X-Archive-Number: 200909/4 X-Sequence-Number: 9990 Hiroshi, > Maybe MSVC2005 redistributable package is needed. > Please try > > http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en I researched this issue in Windows 98 computer: 1. Installing VS2005 VC++ redistributable from http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en does not fix it. 2. Installation of VS2008 VC++ SP1 redistributable does not start: shutdown installer action complains about missing entry point in WinNT dll 3. Copying manually msvcrt80.dll into odbc and application directories does not fix it. I used filemon to trace this issue: Directory C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS QUERY Open C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS OPENEXISTING READONLY DENYWRITE Read C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS Offset: 0 Length: 64 Seek C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS Beginning Offset: 272 / New offset: 272 Read C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS Offset: 272 Length: 248 Seek C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS Beginning Offset: 272 / New offset: 272 Read C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS Offset: 272 Length: 488 Directory C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS QUERY Read C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS Offset: 159744 Length: 4096 .... Read C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS Offset: 151552 Length: 2048 Attributes C:\PROGRAM FILES\PSQLODBC\0803\BIN\MSVCR80.DLL SUCCESS GetAttributes Directory C:\PROGRAM FILES\PSQLODBC\0803\BIN\MSVCR80.DLL SUCCESS QUERY Open C:\PROGRAM FILES\PSQLODBC\0803\BIN\MSVCR80.DLL SUCCESS OPENEXISTING READONLY DENYWRITE Directory C:\PROGRAM FILES\PSQLODBC\0803\BIN\MSVCR80.DLL SUCCESS QUERY Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\MSVCR80.DLL SUCCESS CLOSE_FINAL Close C:\WINDOWS\SYSTEM\WLDAP32.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\GSSAPI32.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\K5SPRT32.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\COMERR32.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\KRB5_32.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBICONV2.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBINTL3.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBEAY32.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\SSLEAY32.DLL SUCCESS CLOSE_FINAL Close C:\PROGRAM FILES\PSQLODBC\0803\BIN\LIBPQ.DLL SUCCESS CLOSE_FINAL Attributes C:\MYAPPL\ALGUS\LIBPQ.DLL NOTFOUND GetAttributes Attributes C:\WINDOWS\SYSTEM\LIBPQ.DLL NOTFOUND GetAttributes Attributes C:\WINDOWS\LIBPQ.DLL NOTFOUND GetAttributes Attributes C:\WINDOWS\LIBPQ.DLL NOTFOUND GetAttributes Attributes C:\WINDOWS\COMMAND\LIBPQ.DLL NOTFOUND GetAttributes Attributes C:\WINDOWS\SYSTEM32\LIBPQ.DLL NOTFOUND GetAttributes Attributes C:\MYAPPL\ALGUS SUCCESS GetAttributes Attributes C:\WINDOWS\MEDIA\CHORD.WAV SUCCESS GetAttributes Open C:\WINDOWS\MEDIA\CHORD.WAV SUCCESS OPENEXISTING READONLY DENYNONE ... Maybe for some strange reason after initial reading and closing, LIBPQ.DLL lookup does not look into 0803\BIN directory. If SSLMODE=Allow is removed from connection string, it works. How to use SSL connections is Windows 98 ? Andrus.