Em 06-01-2014 12:49, Pierre M.R. escreveu:
> Fernando de Oliveira wrote:
>> Em 06-01-2014 11:08, Pierre M.R. escreveu:
>>> It's probably not the 1st report on the subject. BLFS 7.4 enable
>>> readline support in JS-17.0.0. As readline is linked against libncurses
>>> (LFS 7.4), -lncurses is required somewhere to build JS.
>>>
>>> Pierre
>>>
>> $ ldd js17 | grep curse
>> libncursesw.so.5 => /lib/libncursesw.so.5 (0xb736e000)
>>
>> $ scanelf -BF "%f: %n" js17
>> js17: libpthread.so.0,libplds4.so,libplc4.so,libnspr4.so,libdl.so.2,
>> libreadline.so.6,libz.so.1,libstdc++.so.6,libm.so.6,libgcc_s.so.1,libc.so.6
>>
>> Thus, it is linked to libreadline, as you said, and in turn, to
>> libncursesw, through libreadline.
>>
>> ISTR some discussion in the past, not sure if related to js, the problem
>> being that the libncursesw was not installed. Could this be the problem?
>> If so, perhaps a note could be included in the page, but about that, I
>> would like have more opinions.
>>
>>
>
> The output of js/src/configure .. --enable-readline shows:
>
> configure: error: No system readline library found.
>
> config.log shows:
> configure:14764: gcc -o conftest -ffunction-section -fdata-sections
> -pthread -pipe -lphread conftest.c -lreadline -dl 1>&5
> ()../../libreadline.so: undefined reference to 'tputs'
> ()../../libreadline.so: undefined reference to 'tgoto'
> ()../../libreadline.so: undefined reference to 'tgetflag'
> ()../../libreadline.so: undefined reference to 'UP'
> ...
>
> It's reproductible on my machine.
>
> Pierre
>
Pierre, in the build I just did to check your problem, only references
to readline I get are:
{{{
...
configure:14745: checking for readline in -lreadline
configure:14764: gcc -o conftest -ffunction-sections -fdata-sections
-pthread -pipe -lpthread conftest.c -lreadline -ldl 1>&5
configure:14994: checking for posix_fallocate
...
}}}
I don't have a clear idea on how to help from here, sorry. Hope somebody
else will help us.
--
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page