Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 40774

Summary: net-www/w3m-0.4.2-r8 compile error
Product: Gentoo Linux Reporter: Daniel Webert <rockoo>
Component: Current packagesAssignee: Mamoru KOMACHI (RETIRED) <usata>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Webert 2004-02-07 17:04:43 UTC
without USE='cjk' it does not compile :(

Portage 2.0.50 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.2-love1)
=================================================================
System uname: 2.6.1-love2 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.noved.org/ http://gentoo.netnitco.net http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/source http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo http://oss.redundant.com/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib adns alsa apache2 apm arts artswrappersuid async avi berkdb chroot cjk clamav crypt cups dillo dv encode esd etwin faad ffmpeg foomaticdb gdbm gif glut gpm gtk gtk2 hbci imagemagick imlib imlib2 ipv6 jabber java jpeg lcd libg++ libwww mad mikmod mldonkeypango motif mpeg msn mysql ncurses nls oav oggvorbis openal opengl oscar oss pam pcap pdflib perl png python qt quicktime readline samba sdl skey slang sll speex spell ssl svg svga tcltk tcpd tiff truetype vim-with-x x86 xface xinerama xml xml2 xmms xosd xv xvid yahoo zlib"
Comment 1 Sven Wegener gentoo-dev 2004-02-07 17:41:56 UTC
What is the error reported when it fails comping?

I compiles without a problem with USE=cjk and USE=-cjk for me.
Comment 2 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-02-08 04:30:25 UTC
Yeah, please submit the actual error message.I compiled it with USE="cjk" and USE="-cjk" and both worked fine.
Comment 3 autobear 2004-02-16 19:44:34 UTC
I have the same problem here without "cjk"
the error message reads:
~ #USE="-cjk" emerge -v w3m
Calculating dependencies ...done!
>>> emerge (1 of 1) net-www/w3m-0.4.2-r8 to /
>>> md5 src_uri ;-) w3m-cvs-1.890.tar.gz
>>> md5 src_uri ;-) w3m-cvs-1.890-1.896.diff.gz
>>> md5 src_uri ;-) w3m-cvs-1.890-async-5.diff.gz
>>> md5 src_uri ;-) w3m-cvs-1.890-nls-4.diff
>>> Unpacking source...
>>> Unpacking w3m-cvs-1.890.tar.gz to /var/tmp/portage/w3m-0.4.2-r8/work
RUNNING FROM extra_functions.sh
 * Applying w3m-cvs-1.890-1.896.diff.gz...                                [ ok ]
RUNNING FROM extra_functions.sh
 * Applying w3m-0.4.2-form.diff...                                        [ ok ]
RUNNING FROM extra_functions.sh
 * Applying w3m-w3mman-gentoo.diff...                                     [ ok ]
RUNNING FROM extra_functions.sh
 * Applying w3m-m17n-search-gentoo.diff...                                [ ok ]
RUNNING FROM extra_functions.sh
 * Applying w3m-libwc-gentoo.diff...                                      [ ok ]
RUNNING FROM extra_functions.sh
 * Applying w3m-cvs-1.890-nls-4.diff...                                   [ ok ]
async
RUNNING FROM extra_functions.sh
 * Applying w3m-cvs-1.890-async-5.diff.gz...                              [ ok ]
>>> Source unpacked.
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for gawk... gawk
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for perl... /usr/bin/perl
checking for nkf... no
checking for man... /usr/bin/man
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking if m17n support is enabled... no
checking if color escape sequence for kterm/pxvt is enabled... yes
checking if ansi color escape sequence support is enabled... yes
checking if background color support is enabled... yes
checking if image is enabled... x11,fb
checking image library... gdk-pixbuf
checking GdkPixbuf version... 0.22.0
checking if xface is enabled... yes
checking for uncompface... yes
checking default keymap... w3m
checking if popup menu is enabled... yes
checking if mouse operation enabled... yes
checking if URL history is enabled... yes
checking if alarm is enabled... yes
checking if cookie is enabled... yes
checking if digest auth is enabled... yes
checking if nntp is enabled... yes
checking if gopher is enabled... no
checking if IPv6 support is enabled... yes
checking if IPv6 API available... checking for getaddrinfo... yes
checking if struct sockaddr_storage has an ss_family member... yes
checking if dictionary lookup is enabled... yes
checking if help cgi is enabled... yes
checking if external URI loader is enabled... yes
checking if w3mmail is used... yes
checking if migemo is supported with... no
checking which editor is used by default... /usr/bin/nano
checking which mailer is used by default... /bin/mail
checking which external browser is used by default... /usr/bin/mozilla
checking for -lbsd... found at /usr/lib
checking for -lBSD... not found
checking for -l44bsd... not found
checking for -lsocket... not found
checking for -lnsl... found at /usr/lib
checking for -ldld... not found
checking for -ldl... found at /usr/lib
checking if SSL is suported... yes
checking for pkg-config... /usr/bin/pkg-config
checking for openssl... yes
checking SSL_CFLAGS...  
checking SSL_LIBS... -lssl -lcrypto -ldl  
checking for SSL_new in -lssl... yes
checking if SSL certificate verify is enabled... yes
checking for sqrt... no
checking for sqrt in -lm... yes
checking for Gpm_Open in -lgpm... yes
checking terminal library... ncurses
checking for tgetent in -lncurses... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking GC library exists... yes
checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking GC header location... /usr /usr/local /root
checking /usr/include... checking gc.h usability... no
checking gc.h presence... no
checking for gc.h... no
checking /usr/include/gc... checking gc.h usability... yes
checking gc.h presence... yes
checking for gc.h... yes
checking for GC_init in -lgc... yes
checking for zError in -lz... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for long long... yes
checking size of long long... 8
checking for strcasecmp... yes
checking for strcasestr... yes
checking for strchr... yes
checking for memcpy... yes
checking for strerror... yes
checking for bcopy... yes
checking for setpgrp... yes
checking for chdir... yes
checking for getcwd... yes
checking for getwd... yes
checking for readlink... yes
checking for setenv... yes
checking for putenv... yes
checking for strtoll... yes
checking for stroq... no
checking for atoll... yes
checking for atoq... no
checking for symlink... yes
checking for readlink... (cached) yes
checking for lstat... yes
checking for srand48... yes
checking for srandom... yes
checking for getpassphrase... no
checking for waitpid... yes
checking for setlocale... yes
checking for strftime... yes
checking for wait3 that fills in rusage... yes
checking whether setpgrp takes no argument... yes
checking for sys_errlist... yes
checking for sigsetjmp... yes
checking return type of signal handlers... void
configure: creating ./config.status
config.status: 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
(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
sort funcname.tab | gawk -f ./funcname1.awk > funcname1.h
gcc  -march=athlon-xp -pipe -fomit-frame-pointer -O3 -mmmx -msse -m3dnow -ffast-math    -I/usr/include/gc -DHAVE_CONFIG_H -I. -I. -DAUXBIN_DIR=\"/usr/libexec/w3m\" -DLIB_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\" -I/usr/include/gc  -c -o main.o main.c
gcc  -march=athlon-xp -pipe -fomit-frame-pointer -O3 -mmmx -msse -m3dnow -ffast-math    -I/usr/include/gc -DHAVE_CONFIG_H -I. -I. -DAUXBIN_DIR=\"/usr/libexec/w3m\" -DLIB_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\" -I/usr/include/gc  -c -o file.o file.c
file.c:660:84: macro "convertLine" requires 5 arguments, but only 4 given
file.c: In function `readHeader_feed':
file.c:660: error: `convertLine' undeclared (first use in this function)
file.c:660: error: (Each undeclared identifier is reported only once
file.c:660: error: for each function it appears in.)
file.c:6781:82: macro "convertLine" requires 5 arguments, but only 4 given
file.c: In function `loadHTMLstream_feed':
file.c:6781: error: `convertLine' undeclared (first use in this function)
file.c:7503:80: macro "convertLine" requires 5 arguments, but only 4 given
file.c: In function `getNextPage':
file.c:7503: error: `convertLine' undeclared (first use in this function)
make: *** [file.o] &#38169;&#35823; 1
gcc  -march=athlon-xp -pipe -fomit-frame-pointer -O3 -mmmx -msse -m3dnow -ffast-math    -I/usr/include/gc -DHAVE_CONFIG_H -I. -I. -DAUXBIN_DIR=\"/usr/libexec/w3m\" -DLIB_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\" -I/usr/include/gc  -c -o file.o file.c
file.c:660:84: macro "convertLine" requires 5 arguments, but only 4 given
file.c: In function `readHeader_feed':
file.c:660: error: `convertLine' undeclared (first use in this function)
file.c:660: error: (Each undeclared identifier is reported only once
file.c:660: error: for each function it appears in.)
file.c:6781:82: macro "convertLine" requires 5 arguments, but only 4 given
file.c: In function `loadHTMLstream_feed':
file.c:6781: error: `convertLine' undeclared (first use in this function)
file.c:7503:80: macro "convertLine" requires 5 arguments, but only 4 given
file.c: In function `getNextPage':
file.c:7503: error: `convertLine' undeclared (first use in this function)
make: *** [file.o] &#38169;&#35823; 1

!!! ERROR: net-www/w3m-0.4.2-r8 failed.
!!! Function src_compile, Line 138, Exitcode 2
!!! make failed
Comment 4 autobear 2004-02-16 19:46:03 UTC
and my USE is:
~ #USE="-cjk" emerge -vp w3m

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-www/w3m-0.4.2-r8  +X +async -cjk +gpm +imlib +imlib2 -migemo +nls -nopixbuf +ssl +xface  0 kB 
Comment 5 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-02-17 02:28:52 UTC
Oh, I see. If you have USE="async -cjk" it will fail to build on ~x86
environment. I'll look into this problem. Thanks.
Comment 6 Mamoru KOMACHI (RETIRED) gentoo-dev 2004-02-17 05:41:20 UTC
Fixed in w3m-0.4.2-r9.ebuild. Thanks for reporting.