Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Constantin Teodorescu <teo(at)flex(dot)ro>
Cc: pgsql-hackers(at)postgreSQL(dot)org, pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!
Date: 1998-11-05 23:16:27
Message-ID: 13907.910307787@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-interfaces

Constantin Teodorescu <teo(at)flex(dot)ro> writes:
> RedHat 5.1 i386 with PostgreSQL v6.4 final version
> after installing libpgtcl , cannot run pgaccess because library crypt
> hasn't been linked into libpgtcl.so
> must manually add -lcrypt in Makefile into src/interfaces/libpgtcl

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...)

*** 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Robinson 1998-11-05 23:53:12 Python interface broken in 6.4
Previous Message Jan Wieck 1998-11-05 20:31:02 Re: [HACKERS] PL/pgSQL a great procedural language for PostgreSQL

Browse pgsql-interfaces by date

  From Date Subject
Next Message Mark Grimsey 1998-11-05 23:20:06 Deadlock Situation with Postmaster, Libpq and pgtclsh
Previous Message David McDavid 1998-11-05 18:37:07 pgaccess disappearing ink