Обсуждение: Configure problems with readline Mandrake 8.2 and postgres 7.2.1

Поиск
Список
Период
Сортировка

Configure problems with readline Mandrake 8.2 and postgres 7.2.1

От
Keehan Mallon
Дата:
List,

Looking for any pointers.  I have a small Mandrake 8.2 install (none of
the KDE crap) that I am trying to compile and run postgres 7.2.1 on.  I
have installed all the dev rpm and can ./configure make make install,
but my resulting psql has no history (which means readline problems).
So, I went and found that I had readline installed, but not
readline-devel for all the headers.  So, once I installed that I did
make clean delete config.log and config.cache.  Then I did ./configure
make and make install.  Same problems with psql...

Hmmm...

Looking at config.log (and grepping for readline) yields the following:

configure:3288: checking for readline
configure:3310: gcc -o conftest -O2 conftest.c -lreadline 1>&5
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `tgetnum'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `tgoto'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `tgetflag'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `BC'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `tputs'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `PC'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `tgetent'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `UP'
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
undefined reference to `tgetstr'
char readline();
readline()
char readline();readline()
configure:3310: gcc -o conftest -O2 conftest.c -lreadline -ltermcap
1>&5
char readline();
readline()
char readline();
readline()
configure:3310: gcc -o conftest -O2 conftest.c -lreadline -lncurses
1>&5
char readline();
readline()
char readline();
readline()
configure:3310: gcc -o conftest -O2 conftest.c -lreadline -lcurses 1>&5

char readline();
readline()
char readline();
readline()
configure:5226: checking for readline/readline.h
configure:5266: checking for readline/history.h
# include <readline/readline.h>
# include <readline.h>

So, I see a number of undefine references that seem to relate to
readline (particularly libreadline.so).  so I looked at these and made
sure that the references to the files were valid and they seem kosher.
libreadline.so is a symlink to libreadline.so.4 or something like that.

I have even tried wiping out the tree, tar xvzf the source and doing it
all from scratch.  Same result.  I am getting a bit frustrated.

Anyway, one last thing.  I have gotten postgres 7.2.1 to work fine on
RH 7.2.

thanks for any pointers,

Keehan

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

Re: Configure problems with readline Mandrake 8.2 and postgres 7.2.1

От
Tom Lane
Дата:
Keehan Mallon <keehan_mallon@yahoo.com> writes:
> Looking at config.log (and grepping for readline) yields the following:

If you'd shown us the actual error messages, rather than grepping them
away, we might've been able to help you ;-)

FWIW, the part about

> /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
> undefined reference to `tgetnum'

looks like -ltermcap is needed on your platform; but configure knows
enough to try that.  Your grep output yields no clue about whether or
why that case and the later ones failed.

            regards, tom lane

Re: Configure problems with readline Mandrake 8.2 and

От
Alvaro Herrera
Дата:
On Mon, 13 May 2002, Tom Lane wrote:

> Keehan Mallon <keehan_mallon@yahoo.com> writes:

> > /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
> > undefined reference to `tgetnum'
>
> looks like -ltermcap is needed on your platform; but configure knows
> enough to try that.

It is. ISTM configure does detect readline, but fails to notice that
it also needs termcap to properly compile if it's devel package is not
installed. Maybe the test is not hard enough.

Try installing termcap-devel, or whatever is called, then configure
again.

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"El miedo atento y previsor es la madre de la seguridad" (E. Burke)


Re: Configure problems with readline Mandrake 8.2 and postgres 7.2.1

От
Keehan Mallon
Дата:
--- Alvaro Herrera <alvherre@atentus.com> wrote:
> On Mon, 13 May 2002, Tom Lane wrote:
>
> > Keehan Mallon <keehan_mallon@yahoo.com> writes:
>
> > >
>
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/../../../libreadline.so:
> > > undefined reference to `tgetnum'
> >
> > looks like -ltermcap is needed on your platform; but configure
> knows
> > enough to try that.
>
> It is. ISTM configure does detect readline, but fails to notice that
> it also needs termcap to properly compile if it's devel package is
> not
> installed. Maybe the test is not hard enough.
>
> Try installing termcap-devel, or whatever is called, then configure
> again.
>
> --
> Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
> "El miedo atento y previsor es la madre de la seguridad" (E. Burke)
>

Alvaro,

You were totally correct.  After installing what Mandrake calls
libtermcap-devel rpm then I was fine.  I guess this is what I get for
not installing > 1 Gb of devel rpms by doing a vanilla install of
Mandrake.  So, looks like my install is working fine now.  Thanks for
all the help.

Keehan

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com