Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353390 - www-client/w3m-0.5.3 fails to compile with -j > 1
Summary: www-client/w3m-0.5.3 fails to compile with -j > 1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-01 12:14 UTC by Miroslav Šulc
Modified: 2013-10-13 08:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miroslav Šulc gentoo-dev 2011-02-01 12:14:43 UTC
x86_64-pc-linux-gnu-ranlib libindep.a
x86_64-pc-linux-gnu-gcc  -I. -I. -march=native -O2 -pipe -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 w3mbookmark w3mbookmark.o dummy.o -Wl,-O1 -Wl,--as-needed -lm  -lbsd -lnsl -ldl -L. -lindep  -lgc
x86_64-pc-linux-gnu-gcc  -I. -I. -march=native -O2 -pipe -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 w3mhelperpanel w3mhelperpanel.o dummy.o -Wl,-O1 -Wl,--as-needed -lm  -lbsd -lnsl -ldl -L. -lindep  -lgc
x86_64-pc-linux-gnu-gcc  -I. -I. -march=native -O2 -pipe -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 w3mimgdisplay w3mimgdisplay.o w3mimg/w3mimg.a -Wl,-O1 -Wl,--as-needed -lm  -lbsd -lnsl -ldl -pthread -lgdk_pixbuf_xlib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0    
x86_64-pc-linux-gnu-gcc  -I. -I. -march=native -O2 -pipe -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 inflate inflate.o -Wl,-O1 -Wl,--as-needed -lm  -lbsd -lnsl -ldl -lz
w3mimg/w3mimg.a(w3mimg.o): In function `w3mimg_open':
w3mimg.c:(.text+0x3): undefined reference to `w3mimg_x11open'
collect2: ld returned 1 exit status
make: *** [w3mimgdisplay] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: www-client/w3m-0.5.3 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 2380:  Called _eapi2_src_compile
 *     ebuild.sh, line  659:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =www-client/w3m-0.5.3',
 * the complete build log and the output of 'emerge -pqv =www-client/w3m-0.5.3'.
 * The complete build log is located at '/var/tmp/portage/www-client/w3m-0.5.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/w3m-0.5.3/temp/environment'.
 * S: '/var/tmp/portage/www-client/w3m-0.5.3/work/w3m-0.5.3'


setting MAKEOPTS="-j1" makes the compilation pass. my default settings is MAKEOPTS="-j9".

Portage 2.1.9.35 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37-gentoo x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 01 Feb 2011 11:15:01 +0000
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1, 3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10 AdobeFlash-10.1 dlj-1.1 skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/maven-bin-3.0/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="cs_CZ.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/pro-audio /var/lib/layman/x11 /var/lib/layman/java-overlay /home/fordfrog/src/gentoo/fordfrog-overlay /home/fordfrog/src/gentoo/java-overlay /home/fordfrog/src/other/kannel-private/portage /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 audacious bash-completion berkdb bluetooth branding bzip2 cairo cdda cddb cdr cli consolekit cracklib crypt cups cvs cxx dbus device-mapper dhcpcd dia dri dts dvb dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gcj gdbm gdu gif git glade gmplayer gphoto2 gpm gtk hddtemp icecast iconv id3tag inotify jack jpeg jpeg2k lame laptop lash lcms libnotify libv4l libv4l2 lm_sensors mad mercurial midi mikmod mmx mng modules mp3 mp4 mpd mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nsplugin ogg openal openexr opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session shout slang smp sndfile spell sse sse2 ssl ssse3 startup-notification stream subversion svg sysfs theora tiff truetype udev unicode usb v4l v4l2 vhosts vorbis wavpack webkit wifi wmf x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" NETBEANS_MODULES="*" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon r600" XFCE_PLUGINS="brightness logout menu trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2011-02-02 16:47:20 UTC
Fixed in cvs. 0.5.3-r1
Comment 2 Jarek Czekalski 2013-10-13 08:36:46 UTC
I know that this is Gentoo bug tracker and my issue appears on Windows (cygwin), but anyway I'd like to comment on that. In worst case you ignore it.

This fix is not portable. It breaks "win" build.

It ends up in building w3mimg\win\win_w3mimg.cpp with flags from w3mimg directory, instead of flags from win directory. It's due to some remake:

     Finished prerequisites of target file `win/win_w3mimg.o'.
     Prerequisite `win/win_w3mimg.cpp' is older than target `win/win_w3mimg.o'.
     Prerequisite `win' of target `win/win_w3mimg.o' does not exist.
    Must remake target `win/win_w3mimg.o'.

So despite the fact that the build in subdirectory "win" succeeds, this file is being rebuilt again from the wrong directory. Then "config.h" is not found.

In my Makefile in w3mimg directory I have:
IMGOBJS=w3mimg.o win/win_w3mimg.o

Would you like to help me and provide a portable fix? It's possible that the problem could appear also in other configurations.