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
-- 
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