Re: 8.3.6 build error on Debian Lenny

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.3.6 build error on Debian Lenny
Date: 2009-03-10 12:37:21
Message-ID: 87d4cp7dvi.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net> writes:

> On Tue, 10 Mar 2009 00:49:32 -0400
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net> writes:
>
> <snip>
>
>> > geo_ops.c /usr/lib/gcc/i486-linux-gnu/4.3.2/cc1: symbol lookup
>> > error: /usr/lib/libmpfr.so.1: undefined symbol:
>> > __gmp_get_memory_functions
>>
>> [ blink... ] There's no reason for a compile to be looking into
>> shared libraries. What I think must have happened here is that
>> this reflects a bogus function call internally in gcc itself.
>> Which probably means that you have a gcc version that's out-of-sync
>> with your libmpfr.so.1 version (whatever the heck that is). I'd
>> suggest asking around among some Debian experts, or just
>> reinstalling instead of upgrading.

Searching on google it seems this is a typical error message when you have a
hand-compiled gmp installed locally in /usr/local/lib as well as a system gmp
installed in /usr/lib. So you may be getting one version of libmpfr and a
mismatched version of libgmpMPFR. I would imagine this could cause problems if
one is compiled statically and the other dynamically. (Or if they're both
static but you list them in the wrong order on the command-line.)

> Reinstalling would be rough - this box is remote, I felt lucky to get
> through the upgrade over ssh.

It's usually unnecessary to reinstall Debian. I've been running unstable since
1996 and only had to do it once and only because I had a filesystem
corruption.

> I'll try Debian lists / irc - hopefully don't get snarks. :)

Yes well...

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's On-Demand Production Tuning

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Charnoky 2009-03-10 13:04:54 Re: intermittant performance problem
Previous Message Ivan Sergio Borgonovo 2009-03-10 12:36:26 bug?: permission denied for schema on "on delete set null"