Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id DDC2D9F9B23 for ; Thu, 20 Sep 2007 05:38:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 41424-03 for ; Thu, 20 Sep 2007 05:38:18 -0300 (ADT) X-Greylist: delayed 00:20:55.934517 by SQLgrey-1.7.5 Received: from tower.psoft.od.ua (unknown [217.175.82.6]) by postgresql.org (Postfix) with ESMTP id 471959F9B20 for ; Thu, 20 Sep 2007 05:38:26 -0300 (ADT) Received: from [192.168.70.23] (robert.psoftod [192.168.70.23]) by tower.psoft.od.ua (8.13.6/8.13.6) with ESMTP id l8K8HLrS035833 for ; Thu, 20 Sep 2007 11:17:26 +0300 (EEST) (envelope-from robert.ayrapetyan@comodo.com) Date: Thu, 20 Sep 2007 11:17:34 +0300 From: Robert Ayrapetyan X-Mailer: The Bat! (v3.95.6) Professional Reply-To: Robert Ayrapetyan Organization: Comodo Group X-Priority: 3 (Normal) Message-ID: <1902207738.20070920111734@comodo.com> To: pgsql-interfaces@postgresql.org Subject: Re: Problem with getting static libpq.a from PostgresSQL 8.2.4 sources using MinGW In-Reply-To: <692511163.20070917162346@comodo.com> References: <692511163.20070917162346@comodo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.90.1, clamav-milter version 0.90.1 on tower.psoft.od.ua X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.101 tagged_above=0 required=5 tests=BAYES_50=0.001, RDNS_NONE=0.1 X-Spam-Level: X-Archive-Number: 200709/5 X-Sequence-Number: 6627 btw, the bug (or feature?) of libpq.a building still exists (that's why my problem occurred). Maybe it can be useful for someone. Here is description. You will never get real static libpq.a if you have done building of shared version of libpq before. You MUST delete pseudo-static libpq.a before building real static libpq.a Folder "\src\interfaces\libpq\": Here is failure scenario: 1. make install (dynamic libpq.dll and pseudo-static libpq.a were created) 2. make install enable_shared=no (get real static libpq.a - fails). Real static libpq.a wasn't created. Instead of it we can see old, pseudo-static libpq.a. Another failure scenario: 1. make install enable_shared=no (real static libpq.a was created - indeed). 2. make install (dynamic libpq.dll and pseudo-static libpq.a were created). Real static libpq.a was overwritten by pseudo-static libpq.a! Here is successful, working scenario: 1. make install (dynamic libpq.dll and pseudo-static libpq.a were created). 2. delete pseudo-static libpq.a. 3. make install enable_shared=no (get real static libpq.a). So that's only possible way to get both shared and real static libpq libraries. Strange, why pseudo-static libp.q can overwrite real static one but can't vice-versa? I think lot of bugs peoples have with libpq are based on that bug... Best regards, Robert Ayrapetyan