Re: [HACKERS] Problems building some libraries in 6.4.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Constantin Teodorescu <teo(at)flex(dot)ro>
Cc: PostgreSQL Hacker <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Problems building some libraries in 6.4.2
Date: 1999-02-07 20:35:34
Message-ID: 5739.918419734@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Constantin Teodorescu <teo(at)flex(dot)ro> writes:
> still there are some problems compiling 6.4.2 on Linux for libpgtcl and
> libplpgsql libraries.
> Configuration : RedHat Linux 5.1 i386 on Pentium
> 1. For libpgtcl, I had to manually add -lcrypt to SHLIB_LINK line
> Makefile in src/interfaces/libpgtcl

I have fixed this. It's ugly; libraries that call libpq should not have
to know what libpq calls. But it seems we have no choice, for now.
Perhaps GNU libtool will allow us to get rid of the explicit dependency.
(I've decided to wait for libtool 1.3 before trying to use it for
Postgres, however.)

> 2. For libplpgsql, I had to manually ad -lc to SHLIB_LINK line Makefile
> in src/pl/pgsql/src

I don't understand this. If you are on a Linux box then
src/Makefile.shlib should add -lc to SHLIB_LINK for you.
Is PORTNAME not getting set to "linux"?

What I *would* expect that plpgsql needs in SHLIB_LINK is -lcrypt,
for the same reason that libpgtcl needs it. I will change the makefile
accordingly.

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-02-07 20:36:34 Re: [HACKERS] equal: don't know whether nodes of type 600 are equal
Previous Message Bruce Momjian 1999-02-07 20:33:43 Re: [HACKERS] v6.4.3 ?