Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 637619FA43C for ; Sat, 23 Dec 2006 12:15:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 80980-08 for ; Sat, 23 Dec 2006 12:15:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 7FE079F939E for ; Sat, 23 Dec 2006 12:15:18 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 1E08830E06; Sat, 23 Dec 2006 17:15:15 +0100 (MET) From: "Deadwood" X-Newsgroups: pgsql.interfaces Subject: Re: pgtcl installation problem Date: 23 Dec 2006 08:15:08 -0800 Organization: http://groups.google.com Lines: 84 Message-ID: <1166890507.995228.251400@a3g2000cwd.googlegroups.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Complaints-To: groups-abuse@google.com In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061216 Firefox/1.5.0.8,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 tetralith:3128 (squid/2.6.STABLE5) Complaints-To: groups-abuse@google.com Injection-Info: a3g2000cwd.googlegroups.com; posting-host=66.133.198.96; posting-account=RL3e6Q0AAABZ6pwXbqhIAqeJG5ddfXwZ To: pgsql-interfaces@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200612/31 X-Sequence-Number: 6365 I ran into the same problem. When I manually specified libdir, with-postgres-include, and with-postgres-lib for the configure script, it worked. Note that I also had to untar the source code again for the second install to work (no make mrproper?). For my system, the following values pulled from the INSTALL file worked: ./configure --libdir=/usr/lib/tcl8.4 --with-postgres-include=$(pg_config --includedir) --with-postgres-lib=$(pg_config --libdir) It would be nice if the install script checks that the library loads successfully before installing. Adam Michael Talbot-Wilson wrote: > I have installed postgresql 8.2.0 and pgtclng 1.5.3 but the > installation of pgtclng 1.5.3 is faulty. I hope someone can tell me > what I'm doing wrong. > > I try to run this script (named see): > > #!/usr/local/bin/tclsh > package require Pgtcl > set fd [pg_connect -conninfo "host = localhost dbname = mtw"] > > and get this response: > > couldn't load file "/usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so": > /usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so: undefined symbol: > lo_export > while executing > "load /usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so pgtcl" > ("package ifneeded" script) > invoked from within > "package require Pgtcl" > (file "./see" line 2) > > With nm /usr/local/lib/pgtcl1.5.3/libpgtcl1.5.3.so I see > > U lo_close > U lo_creat > U lo_export > U lo_import > U lo_lseek > U lo_open > U lo_read > U lo_tell > U lo_unlink > U lo_write > U memcpy@@GLIBC_2.0 > > but > > 00005740 T Pg_lo_close > 00004f80 T Pg_lo_creat > 00004a70 T Pg_lo_export > 00004bd0 T Pg_lo_import > 000051c0 T Pg_lo_lseek > 00005860 T Pg_lo_open > 00005560 T Pg_lo_read > 00004e40 T Pg_lo_tell > 00004d20 T Pg_lo_unlink > 000053e0 T Pg_lo_write > > This is on Linux, fairly up-to-date. > > Hope someone can help. I have been using an earlier version of pgtcl > with postgresql 8.1 but now I'm lost and stuck. > > Dunno why I see > U memcpy@@GLIBC_2.0 > because I have /lib/libc-2.4.so. But I have very little understanding > this stuff (the linker). > > --Mike Talbot-Wilson > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq