Re: Compiling 7.2.3 on RH 8.0

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Compiling 7.2.3 on RH 8.0
Дата
Msg-id 10838.1043388939@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Compiling 7.2.3 on RH 8.0  ("Josh Berkus" <josh@agliodbs.com>)
Ответы Re: Compiling 7.2.3 on RH 8.0  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-general
"Josh Berkus" <josh@agliodbs.com> writes:
> For the first time, I'm trying to compile 7.2.3 on a RedHat 8.0 server.
>  I'm normally a SuSE user, so I've hit a bit of a wall.
> I'm getting errors like this when I try to compile Postgres:

It works out-of-the-box for me on a vanilla RH 8.0 installation.
You do need libtermcap, but that's installed by default, AFAIK.

>> configure:5800: checking for readline
>> configure:5837: gcc -o conftest -O2     -L/usr/lib
>> conftest.c -lreadline -lcrypt -lresolv -lnsl -ldl -lm -lbsd  >&5
>> /usr/lib/libreadline.so: undefined reference to `tgetnum'

Hm, you sure this is 7.2.3's configure?  The line numbers seem way off.

FWIW, here is the section from config.log showing configure probing for
readline libraries, as just run from 7.2-branch sources on my RH 8.0
box.  The first test without -ltermcap fails, but the try with it succeeds.

...
configure:3151: checking for perl
configure:3288: checking for readline
configure:3310: gcc -o conftest -O2 -g     conftest.c -lreadline  1>&5
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `BC'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `tputs'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `PC'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `UP'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2 -g     conftest.c -ledit  1>&5
/usr/bin/ld: cannot find -ledit
collect2: ld returned 1 exit status
configure: failed program was:
#line 3299 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char readline();

int main() {
readline()
; return 0; }
configure:3310: gcc -o conftest -O2 -g     conftest.c -lreadline -ltermcap  1>&5
configure:3349: checking for library containing using_history
...

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Dennis Gearon
Дата:
Сообщение: Re: ORDER BY 'criteria'
Следующее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: psql 7.3.1 crash