X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3F2625331C for ; Sat, 30 Apr 2005 16:26:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53456-08 for ; Sat, 30 Apr 2005 19:26:02 +0000 (GMT) Received: from delta.evincetek.com (h-67-102-112-170.snvacaid.covad.net [67.102.112.170]) by svr1.postgresql.org (Postfix) with ESMTP id 856D552949 for ; Sat, 30 Apr 2005 16:26:01 -0300 (ADT) Received: from pengu (pengu.evincetek.com [192.168.1.52]) (authenticated bits=0) by delta.evincetek.com (8.12.11/8.12.11) with ESMTP id j3UJYDB4016152; Sat, 30 Apr 2005 12:34:26 -0700 Message-ID: <000501c54dba$6bab2040$3401a8c0@pengu> From: "Metin Ozisik" To: "Tom Lane" Cc: References: <003a01c549e4$1485eea0$3401a8c0@pengu> <28245.1114835916@sss.pgh.pa.us> <004301c54d52$f0ea4870$3401a8c0@pengu> <1829.1114876982@sss.pgh.pa.us> Subject: Re: Build issues: "-static" builds resulting initdb problems Date: Sat, 30 Apr 2005 12:25:39 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.082 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/59 X-Sequence-Number: 21372 Correct. A static binary is perfectly capable of dynamic-loading shared objects; therefore "-static" should not shadow "-E". I will forward this to linker folks. In the meantime, if you guys can provide self-sufficient conversion shared-objects by any chance in some future release perhaps, that will be much appreciated. Regards, -metin ----- Original Message ----- From: "Tom Lane" To: "Metin Ozisik" Cc: Sent: Saturday, April 30, 2005 9:03 AM Subject: Re: [SQL] Build issues: "-static" builds resulting initdb problems > "Metin Ozisik" writes: >> The purpose of using static linking is to reduce dependencies to >> shared-libraries (dependencies to different types and versions of Linux), >> so >> an instance of postgreSQL, say built on Suse 9.0, would still work on >> Mandrake 10.1. Yes it gets a bit bulky and have a number of disadvantages >> over dynamic linking (on the plus side it would be a bit faster), however >> the main motivater is binary portability. > > Well, both the PL languages and the character set conversion support are > *only* buildable as shared libraries right now. If you want to > statically link those into the main backend build, you can probably do > it, but it will take some nontrivial hacking. > > In the meantime it would appear that your linker ignores the -E (export > all symbols) switch when -static is specified. I suppose it thinks > that not only don't you want any shared libraries now, but you won't > want any dynamically loaded libraries later. This is a Bad Idea; > complain to the linker hackers about it. > > regards, tom lane