On 20/02/2018 00:15, Ken Moffat wrote:
> On Mon, Feb 19, 2018 at 11:39:09PM +0100, Pierre Labastie wrote:
>> I usually do not build w3m, but since we are at tagging, and jhalfs included
>> it as a dependency of something, I thought I would give it a try. Problem, I
>> get the following warning+error:
>> -------------
>> gcc  -I. -I. -g -O2 -I./libwc   -DHAVE_CONFIG_H 
>> -DAUXBIN_DIR=\"/usr/libexec/w3m\
>> " -DCGIBIN_DIR=\"/usr/libexec/w3m/cgi-bin\" -DHELP_DIR=\"/usr/share/w3m\" 
>> -DETC_
>> DIR=\"/etc\" -DCONF_DIR=\"/etc/w3m\" -DRC_DIR=\"~/.w3m\" 
>> -DLOCALEDIR=\"/usr/shar
>> e/locale\"   -c -o url.o url.c
>> url.c: In function « init_PRNG »:
>> url.c:272:6: warning: implicit declaration of function « RAND_egd »; did you
>> mean to use « RAND_add » ? [-Wimplicit-function-declaration]
>>   if (RAND_egd(file) > 0)
>>       ^~~~~~~~
>>       RAND_add
>>
>> gcc  -I. -I. -g -O2 -I./libwc   -DHAVE_CONFIG_H
>> -DAUXBIN_DIR=\"/usr/libexec/w3m\" -DCGIBIN_DIR=\"/usr/libexec/w3m/cgi-bin\"
>> -DHELP_DIR=\"/usr/share/w3m\" -DETC_DIR=\"/etc\" -DCONF_DIR=\"/etc/w3m\"
>> -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/share/locale\" -o w3m main.o file.o
>> buffer.o display.o etc.o search.o linein.o table.o local.o form.o map.o
>> frame.o rc.o menu.o mailcap.o image.o symbol.o entity.o terms.o url.o ftp.o
>> mimehead.o regex.o news.o func.o cookie.o history.o backend.o keybind.o
>> anchor.o parsetagx.o tagtable.o istream.o version.o  -lm  -ldl -L. -lindep
>> -lgc -L./libwc -lwc -lssl -lcrypto -lssl -lcrypto -lgpm -lncurses
>>
>> url.o : In function « init_PRNG » :
>> /sources/w3m/w3m-0.5.3/url.c:272 : undefined reference to « RAND_egd »
>> ------------------
>> RAND_egd is defined in openssl/rand.h. I only have openssl-1.1 installed
>> (since openssl-1.0 is supposed to be optional). RAND_egd is disabled by
>> default in openssl configuration.
>> RAND_egd is enabled by default in openssl-1.0. But obviously pointing
>> PKG_CONFIG_PATH to openssl-1.0 is not enough if openssl-1.0 is not installed.
>> I guess also that if no openssl is installed, w3m does not try to use any
>> openssl function. But openssl-1.1 is installed in LFS, so openssl-1.0 should
>> be installed for compiling w3m. Another possiblity could be to undef USE_EGD
>> in config.h.in, but I am not sure it is enough. The simpler would to 
>> recommend
>> openssl-1.0.
>>
>> Pierre
> 
> I don't think any of us normally build it ;)

See my conclusion below

> 
> Looking at Arch, they seem to have switched to following debian:
> https://www.archlinux.org/packages/extra/x86_64/w3m/
> 
> with an alternative repo at https://github.com/tats/w3m -
> v0.5.3+git20180125 is on the releases page there.
> 
[interesting stuff ...]
> 
> Looks like something worth considering, and one more step away from
> openssl-1.0 ?
> 

A more radical step away: archive w3m. Do we really need 3 text browsers in
this book nowadays?

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to