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 32520537D8 for ; Sat, 30 Apr 2005 13:03:18 -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 63756-08 for ; Sat, 30 Apr 2005 16:03:12 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B77065380D for ; Sat, 30 Apr 2005 13:03:10 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3UG32gm001830; Sat, 30 Apr 2005 12:03:02 -0400 (EDT) To: "Metin Ozisik" Cc: pgsql-sql@postgresql.org Subject: Re: Build issues: "-static" builds resulting initdb problems In-reply-to: <004301c54d52$f0ea4870$3401a8c0@pengu> References: <003a01c549e4$1485eea0$3401a8c0@pengu> <28245.1114835916@sss.pgh.pa.us> <004301c54d52$f0ea4870$3401a8c0@pengu> Comments: In-reply-to "Metin Ozisik" message dated "Sat, 30 Apr 2005 00:04:36 -0700" Date: Sat, 30 Apr 2005 12:03:02 -0400 Message-ID: <1829.1114876982@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/418 X-Sequence-Number: 21311 "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