On 18/02/12 01:40, Andrew Benton wrote: > On Fri, 17 Feb 2012 22:24:52 +0000 > spiky<[email protected]> wrote: > >> I,m building blfs latest and want to try out w3m, I have installed >> gc-7.1 without errors when I run configure on w3m as per book I get an >> error, >> >> tatus: creating Makefile >> config.status: creating posubst >> config.status: creating po/Makefile.in >> config.status: creating scripts/Makefile >> config.status: creating scripts/dirlist.cgi >> config.status: creating scripts/w3mhelp.cgi >> config.status: creating scripts/w3mmail.cgi >> config.status: creating scripts/xface2xpm >> config.status: creating scripts/multipart/Makefile >> config.status: creating scripts/multipart/multipart.cgi >> config.status: creating scripts/w3mman/Makefile >> config.status: creating scripts/w3mman/w3mman >> config.status: creating scripts/w3mman/w3mman.1 >> config.status: creating scripts/w3mman/w3mman2html.cgi >> config.status: creating libwc/Makefile >> config.status: creating w3mimg/Makefile >> config.status: creating w3mimg/fb/Makefile >> config.status: creating w3mimg/x11/Makefile >> config.status: creating w3mhelp-w3m_en.html >> config.status: creating w3mhelp-w3m_ja.html >> config.status: creating w3mhelp-lynx_en.html >> config.status: creating w3mhelp-lynx_ja.html >> config.status: creating config.h >> config.status: executing default-1 commands >> config.status: creating po/POTFILES >> config.status: creating po/Makefile >> (echo '#define DEFUN(x,y,z) x y';\ >> sed -ne '/^DEFUN/{p;n;/^[ ]/p;}' ./main.c ./menu.c) | gcc -E - | \ >> awk '$1 ~ /^[_A-Za-z]/ { \ >> for (i=2;i<=NF;i++) { print $i, $1} \ >> }'> funcname.tab.tmp >> funcname.tab updated >> sort funcname.tab | gawk -f ./funcname1.awk> funcname1.h >> gcc -I. -I. -g -O2 -I./libwc -I/usr/include/openssl -DHAVE_CONFIG_H >> -DAUXBIN_DIR=\"/usr/lib/w3m\" -DCGIBIN_DIR=\"/usr/lib/w3m/cgi-bin\" >> -DHELP_DIR=\"/usr/share/w3m\" -DETC_DIR=\"/etc\" -DCONF_DIR=\"/etc/w3m\" >> -DRC_DIR=\"~/.w3m\" -DLOCALEDIR=\"/usr/share/locale\" -c -o main.o >> main.c >> In file included from html.h:10:0, >> from fm.h:39, >> from main.c:3: >> istream.h:23:8: error: redefinition of 'struct file_handle' >> /usr/include/bits/fcntl.h:239:8: note: originally defined here >> make: *** [main.o] Error 1 > The file_handle name clashes with a header installed by glibc. Rename > the function. For me, w3m-0.5.3 needs a: > sed -i 's/file_handle/file_handle_foo/' istream.{c,h} > > Andy Thanks Andy
that fixed the problem -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
