Re: building 9.1 on suse-11.4 (64bit) - Mailing list pgsql-general

From Tom Lane
Subject Re: building 9.1 on suse-11.4 (64bit)
Date
Msg-id 14854.1308706603@sss.pgh.pa.us
Whole thread Raw
In response to Re: building 9.1 on suse-11.4 (64bit)  (Rob Sargent <robjsargent@gmail.com>)
Responses Re: building 9.1 on suse-11.4 (64bit)
List pgsql-general
Rob Sargent <robjsargent@gmail.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

pgsql-general by date:

Previous
From: Scott Frankel
Date:
Subject: Re: pipe text to copy statement stdin input
Next
From: Greg Smith
Date:
Subject: Re: Help needed with PostgreSQL clustering/switching from MySQL