pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Constantin Teodorescu <teo@flex.ro>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!
Date: Fri, 06 Nov 1998 08:18:57 +0000
Message-ID: <3642B0F1.F5357EA5@flex.ro> (raw)
References: <13907.910307787@sss.pgh.pa.us>

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



view thread (25+ messages)  latest in thread

Message-ID: <3642B0F1.F5357EA5@flex.ro>
Permalink:  ../3642B0F1.F5357EA5@flex.ro/
Also on:    postgresql.org/message-id/3642B0F1.F5357EA5@flex.ro

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: teo@flex.ro, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org
  Subject: Re: [INTERFACES] crypt not included when compiling libpgtcl !!!!!!!
  In-Reply-To: <3642B0F1.F5357EA5@flex.ro>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox