Received: from flex.flex.ro (IDENT:root@ns.flex.ro [193.230.255.2]) by hub.org (8.9.1/8.9.1) with ESMTP id DAA10752; Fri, 6 Nov 1998 03:21:32 -0500 (EST) (envelope-from teo@flex.ro) Received: from flex.ro (IDENT:teo@[193.230.255.3]) by flex.flex.ro (8.9.1/8.9.1) with ESMTP id QAA24260; Thu, 5 Nov 1998 16:01:49 +0200 Sender: teo@flex.flex.ro Message-ID: <3642B0F1.F5357EA5@flex.ro> Date: Fri, 06 Nov 1998 08:18:57 +0000 From: Constantin Teodorescu Organization: FLEX Consulting X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.0.36 i586) X-Accept-Language: en MIME-Version: 1.0 To: Tom Lane CC: pgsql-hackers@postgreSQL.org, pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!! References: <13907.910307787@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Tom Lane wrote: > > I don't think that's the right approach. libpgtcl doesn't depend on > libcrypt. libpq does, and that's where we need to fix this, or else > we'll see the same problem with any other shared library that depends > on libpq. > > Would you check whether it works to add the following patch to > src/interfaces/libpq's Makefile, and then build libpgtcl *without* > a reference to crypt? (I can't test it here since crypt is part of > libc on my machine...) Completely delete postgresql from my machine and any trace of libpq and libpgtcl Untarred the 6.4 final distribution apply the patch compiled from scratch installed Got : [teo@teo teo]$ Error in startup script: couldn't load file "libpgtcl.so": /usr/local/pgsql/lib/libpgtcl.so: undefined symbol: crypt while executing "load libpgtcl.so" (procedure "main" line 3) invoked from within "main $argc $argv" (file "pgaccess.tcl" line 4813) When modify the Makefile from libpgtcl adding -lcrypt , recompile, install . Everything it's ok. > > *** Makefile.in~ Thu Nov 5 18:08:26 1998 > --- Makefile.in Thu Nov 5 18:11:43 1998 > *************** > *** 34,39 **** > --- 34,43 ---- > OBJS+= common.o wchar.o conv.o > endif > > + # If crypt is a separate library, rather than part of libc, > + # make sure it gets included in shared libpq. > + SHLIB_LINK= $(findstring -lcrypt,$(LIBS)) > + > # Shared library stuff, also default 'all' target > include $(SRCDIR)/Makefile.shlib > > > regards, tom lane -- Constantin Teodorescu FLEX Consulting Braila, ROMANIA