Received: from p-mail2.cnet.fr (p-mail2.rd.francetelecom.fr [193.49.124.32]) by hub.org (8.10.1/8.11.0) with SMTP id e9H9ONW26894 for ; Tue, 17 Oct 2000 05:24:23 -0400 (EDT) (envelope-from michel.decima@rd.francetelecom.fr) Received: from p-grive.issy.cnet.fr ([139.100.0.85]) by p-voyageur.issy.cnet.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id VCLX0G9Y; Tue, 17 Oct 2000 11:24:05 +0200 Received: from [139.100.4.138] (quetzal.issy.cnet.fr [139.100.4.138]) by p-grive.issy.cnet.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id VC12XRWH; Tue, 17 Oct 2000 11:24:04 +0200 From: Michel Decima To: Subject: pltcl, linker and statistical functions Date: Tue, 17 Oct 2000 11:24:17 +0200 Message-Id: <19340911025601.20986@p-grive.issy.cnet.fr> X-Mailer: CTM PowerMail 3.0.5 (demo) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/72 X-Sequence-Number: 866 Hello, I'm a beginner postgresql admin and I have problems with pltcl on a solaris box. Some users need statistical function (standard deviation, variance) and I know that this feature is not (yet) implemented. I found a piece of Tcl code in the mailing list archive at http://www.postgresql.org/mhonarc/pgsql-sql/1998-10/msg00070.html and I'm trying to make it work... Currently, the pltcl language is installed, all functions and aggregates are created, but when I launch the query in psql : select a, count(b) as n, average(b), variance(b), stddev(b) from t1 group by a; I got the following error message : ERROR: Load of file /usr/local/pgsql/lib/pltcl.so failed: ld.so.1: /usr/ local/p gsql/bin/postmaster: fatal: relocation error: file /usr/local/pgsql/lib/ pltcl.so : symbol CurrentMemoryContext: referenced symbol not found Is there a way to solve this dynamic link problem ? Note : the pltcl is not really needed for itself. I'm just looking for the statistical functions, so every solution is wecome ;) Michel. OS: Solaris 2.7 Used Software: gcc-2.95.2 make-3.79 binutils-2.9.1 flex-2.5.4 bison-1.28 Source: postgresql-7.0.2 Configuration: ./configure \ --prefix=/usr/local/pgsql \ --with-x \ --with-perl \ --with-odbc \ --without-CXX \ --with-tcl \ --with-includes=/usr/local/pgtools/include \ --with-libs=/usr/local/pgtools/lib \ --with-tclconfig=/usr/local/pgtools/lib \ --with-tkconfig=/usr/local/pgtools/lib Environment variables: PGHOME=/usr/local/pgsql PGLIB=/usr/local/pgsql/lib PGDATA=/var/local/lib/pgsql/data LD_LIBRARY_PATH=/lib:/usr/lib:/usr/openwin/lib:/usr/local/pgsql/lib