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 ;) 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. and they say it depends on openssl : I am guessing that anything in Arch that still needs openssl-1.0 should depend on openssl10 or something like that. Among the past Arch changes are a critical security update in November 2016. <sigh/> They are configuring with --prefix=/usr -libexecdir=/usr/lib -enable-image=x11,fb -with-imagelib=imlib2 --with-termlib=ncurses --disable-w3mmailer We don't need the libexecdir, I don't have imlib2 installed. A quick ./configure --prefix=/usr ; make ; DESTDIR has installed programs w3m and w3mman, the latter is a perl script and apparently reads system manpages or can use a search engine. Anyway, the DESTDIR install of w3m links to: ken@plexi /tmp $ldd W3M/usr/bin/w3m linux-vdso.so.1 (0x00007ffccd9c7000) libm.so.6 => /lib/libm.so.6 (0x00007f4675732000) libdl.so.2 => /lib/libdl.so.2 (0x00007f467552e000) libgc.so.1 => /usr/lib/libgc.so.1 (0x00007f46752c4000) libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f4675054000) libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f4674bc2000) libgpm.so.2 => /usr/lib/libgpm.so.2 (0x00007f46749bc000) libncursesw.so.6 => /lib/libncursesw.so.6 (0x00007f467474e000) libc.so.6 => /lib/libc.so.6 (0x00007f4674394000) /lib64/ld-linux-x86-64.so.2 (0x00007f4675ab6000) libpthread.so.0 => /lib/libpthread.so.0 (0x00007f4674176000) libatomic_ops.so.1 => /usr/lib/libatomic_ops.so.1 (0x00007f4673f74000) Looks like something worth considering, and one more step away from openssl-1.0 ? ĸen -- Truth, in front of her huge walk-in wardrobe, selected black leather boots with stiletto heels for such a barefaced truth. - Unseen Academicals -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page