Re: building 9.1 on suse-11.4 (64bit)

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: building 9.1 on suse-11.4 (64bit)
Date: 2011-06-22 03:00:40
Message-ID: 4E015AD8.7010500@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Rob Sargent <robjsargent(at)gmail(dot)com> writes:
>
>> The tail of config.log follows. As I confessed, libreadline had to be
>> simlinked into /usr/lib64, then I hit libz (as this log shows) and
>> started to doubt myself (even more).
>>
>
>
>> configure:8316: checking for library containing readline
>> configure:8358: gcc -o conftest -O2 -Wall -Wmissing-prototypes
>> -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
>> -Wformat-security -fno-strict-aliasing -fwrapv -g -D_GNU_SOURCE
>> conftest.c -lreadline -lcrypt -ldl -lm >&5
>> configure:8365: $? = 0
>> configure:8405: result: -lreadline
>> configure:8432: checking for inflate in -lz
>> configure:8467: gcc -o conftest -O2 -Wall -Wmissing-prototypes
>> -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels
>> -Wformat-security -fno-strict-aliasing -fwrapv -g -D_GNU_SOURCE
>> conftest.c -lz -lreadline -lcrypt -ldl -lm >&5
>> /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld:
>> cannot find -lz
>> collect2: ld returned 1 exit status
>>
>
> Hmph. That link command is indistinguishable from the successful call on
> my Fedora box:
>
> configure:8432: checking for inflate in -lz
> configure:8467: gcc -o conftest -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -g -D_GNU_SOURCE conftest.c -lz -lreadline -lcrypt -ldl -lm >&5
> configure:8474: $? = 0
> configure:8495: result: yes
>
> [ pokes around for a bit... ] Oh, wait a minute:
>
> $ ls -l /usr/lib64/libreadline.so
> lrwxrwxrwx. 1 root root 28 Oct 1 2010 /usr/lib64/libreadline.so -> ../../lib64/libreadline.so.6*
> $ rpm -qf /usr/lib64/libreadline.so
> readline-devel-6.1-2.fc13.x86_64
>
> If SUSE's packaging policies are like Red Hat's, your problem is that
> you neglected to install readline-devel, zlib-devel, and so on. You
> would probably have twigged to this after configure started complaining
> that the .h files weren't there either ...
>
> regards, tom lane
>

Roger, wilco.

Much appreciated.

Note to self: finish rebuilding ones dev. env. afore building needed
foss parts

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Sabino Mullane 2011-06-22 03:09:09 Re: LISTEN filtering
Previous Message Greg Smith 2011-06-22 02:00:51 Re: Help needed with PostgreSQL clustering/switching from MySQL