When I try to emerge w3m I get syntax errors. Reproducible: Always Steps to Reproduce: 1. emerge w3m Actual Results: make[2]: Entering directory `/var/tmp/portage/w3m-0.5.1-r1/work/w3m-0.5.1/w3mimg/fb' gcc -I../.. -I../.. -I. -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I./libwc -I/usr/include/openssl -I/usr/include/gc -I/usr/include/gc -DHAVE_CONFIG_H -c fb_w3mimg.c gcc -I../.. -I../.. -I. -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I./libwc -I/usr/include/openssl -I/usr/include/gc -I/usr/include/gc -DHAVE_CONFIG_H -c fb.c gcc -I../.. -I../.. -I. -march=athlon-tbird -O3 -pipe -fomit-frame-pointer -I./libwc -I/usr/include/openssl -I/usr/include/gc -I/usr/include/gc -DHAVE_CONFIG_H -c fb_img.c In file included from fb_img.c:13: ../../w3mimg/fb/fb_imlib2.c:6:22: X11/Xlib.h: No such file or directory In file included from ../../w3mimg/fb/fb_imlib2.c:7, from fb_img.c:13: /usr/include/Imlib2.h:107: error: syntax error before '*' token /usr/include/Imlib2.h:108: error: syntax error before '*' token /usr/include/Imlib2.h:109: error: syntax error before "colormap" /usr/include/Imlib2.h:110: error: syntax error before "drawable" /usr/include/Imlib2.h:111: error: syntax error before "mask" /usr/include/Imlib2.h:136: error: syntax error before '*' token /usr/include/Imlib2.h:137: error: syntax error before '*' token /usr/include/Imlib2.h:138: error: syntax error before "imlib_context_get_colormap" /usr/include/Imlib2.h:139: error: syntax error before "imlib_context_get_drawable" /usr/include/Imlib2.h:140: error: syntax error before "imlib_context_get_mask" /usr/include/Imlib2.h:169: error: syntax error before '*' token /usr/include/Imlib2.h:170: error: syntax error before '*' token /usr/include/Imlib2.h:170: error: syntax error before '*' token /usr/include/Imlib2.h:208: error: syntax error before '*' token /usr/include/Imlib2.h:210: error: syntax error before '*' token /usr/include/Imlib2.h:213: error: syntax error before "pixmap" /usr/include/Imlib2.h:239: error: syntax error before "mask" /usr/include/Imlib2.h:242: error: syntax error before '*' token /usr/include/Imlib2.h:245: error: syntax error before "mask" /usr/include/Imlib2.h:255: error: syntax error before "mask" make[2]: *** [fb_img.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/w3m-0.5.1-r1/work/w3m-0.5.1/w3mimg/fb' make[1]: *** [fb] Error 2 make[1]: Leaving directory `/var/tmp/portage/w3m-0.5.1-r1/work/w3m-0.5.1/w3mimg' make: *** [w3mimg/w3mimg.a] Error 2 !!! ERROR: www-client/w3m-0.5.1-r1 failed. !!! Function src_compile, Line 123, Exitcode 2 !!! make failed Expected Results: complete emerge might root # emerge info Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1, 2.4.26-gentoo-r9) ================================================================= System uname: 2.4.26-gentoo-r9 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs candy ccache gpg maketest sandbox severe sfperms" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow apache2 bzlib crypt curl curlwrappers doc emacs exif gif gpm hardened hardenedphp imlib2 jpeg leim memlimit mime mmx mng mysql ncurses pam pcntl pdflib php png postgres soap spl ssl svga tcpd tokenizer x86 xml xml2 xsl zlib"
having ebuild of version 0.5.1-r1 ======> might root # emerge w3m --deep -pv These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] www-client/w3m-0.5.1-r1 -X -async -cjk +gpm -gtk -imlib +imlib2 -lynxkeymap -migemo -nls +ssl -xface 75 kB Total size of downloads: 75 kB
Thanks for the bug report. Imlib2 USE flag doesn't work if X USE flag is turned off. If you would like to view images under framebuffer environment, consider using media-gfx/w3mimgfb. w3m itself can use gtk+2 with fb, but gtk+2 ebuild doesn't allow us to build it without X :(