Thread: psql does not link with readline

psql does not link with readline

From
"Ronald Kuczek"
Date:
Hi,
 
I got these error messages while compiling:
 
Info: resolving _rl_attempted_completion_function by linking to __imp__rl_attemp                                                                                                                         ted_completion_function (auto-import)
Info: resolving _rl_readline_name by linking to __imp__rl_readline_name (auto-im                                                                                                                         port)
Info: resolving _rl_basic_word_break_characters by linking to __imp__rl_basic_wo                                                                                                                         rd_break_characters (auto-import)
Info: resolving _rl_line_buffer by linking to __imp__rl_line_buffer (auto-import                                                                                                                         )
nmth000000.o(.idata$4+0x0): undefined reference to `_nm__rl_attempted_completion                                                                                                                         _function'
nmth000002.o(.idata$4+0x0): undefined reference to `_nm__rl_readline_name'
nmth000004.o(.idata$4+0x0): undefined reference to `_nm__rl_basic_word_break_cha                                                                                                                         racters'
nmth000006.o(.idata$4+0x0): undefined reference to `_nm__rl_line_buffer'
make[3]: *** [psql] Error 1
make[3]: Leaving directory `/mingw/postgresql-snapshot/src/bin/psql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/mingw/postgresql-snapshot/src/bin'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mingw/postgresql-snapshot/src'
make: *** [all] Error 2
 
My readline version is 4.2 (downloaded from sourceforge).
My question is - do you use another version or is there something wrong with my enviroment, or readline is not yet supported ?
 
Best regards
Rony

Re: psql does not link with readline

From
Bruce Momjian
Date:
Ronald Kuczek wrote:
> Hi,
>
> I got these error messages while compiling:
>
> Info: resolving _rl_attempted_completion_function by linking to __imp__rl_attemp
                                                                                  ted_completion_function (auto-import) 
> Info: resolving _rl_readline_name by linking to __imp__rl_readline_name (auto-im
                                                                                  port) 
> Info: resolving _rl_basic_word_break_characters by linking to __imp__rl_basic_wo
                                                                                  rd_break_characters (auto-import) 
> Info: resolving _rl_line_buffer by linking to __imp__rl_line_buffer (auto-import
                                                                                  ) 
> nmth000000.o(.idata$4+0x0): undefined reference to `_nm__rl_attempted_completion
                                                                                  _function' 
> nmth000002.o(.idata$4+0x0): undefined reference to `_nm__rl_readline_name'
> nmth000004.o(.idata$4+0x0): undefined reference to `_nm__rl_basic_word_break_cha
                                                                                  racters' 
> nmth000006.o(.idata$4+0x0): undefined reference to `_nm__rl_line_buffer'
> make[3]: *** [psql] Error 1
> make[3]: Leaving directory `/mingw/postgresql-snapshot/src/bin/psql'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/mingw/postgresql-snapshot/src/bin'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/mingw/postgresql-snapshot/src'
> make: *** [all] Error 2
>
>
> My readline version is 4.2 (downloaded from sourceforge).
> My question is - do you use another version or is there something wrong with my enviroment, or readline is not yet
supported? 

Under Unix I use readline-2.2.1.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073