Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313081 - app-admin/conky-1.8.0 doesn't compile
Summary: app-admin/conky-1.8.0 doesn't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-04 12:14 UTC by Seerp
Modified: 2010-04-07 19:07 UTC (History)
3 users (show)

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 Seerp 2010-04-04 12:14:07 UTC
app-admin/conky-1.8.0 doesn't compile

Reproducible: Always

Steps to Reproduce:
1. Try to compile app-admin/conky-1.8.0 with the following settings

[ebuild     U ] app-admin/conky-1.8.0 [1.8.0_rc2] USE="X portmon truetype -apcupsd -audacious -curl -debug -eve -hddtemp -imlib -iostats -lua -lua-cairo -lua-imlib -math -moc -mpd -nano-syntax -ncurses -nvidia -rss -thinkpad -vim-syntax -weather-metar -weather-xoap -wifi" 0 kB

2.
3.

Actual Results:  
Compile fails with following error:

x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib64/conky\"   -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -Wall -W -march=native -O2 -pipe -MT conky-conky.o -MD -MP -MF .deps/conky-conky.Tpo -c -o conky-conky.o `test -f 'conky.c' || echo './'`conky.c
mv -f .deps/conky-colours.Tpo .deps/conky-colours.Po
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib64/conky\"   -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -Wall -W -march=native -O2 -pipe -MT conky-core.o -MD -MP -MF .deps/conky-core.Tpo -c -o conky-core.o `test -f 'core.c' || echo './'`core.c
mv -f .deps/conky-common.Tpo .deps/conky-common.Po
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DSYSTEM_CONFIG_FILE=\"/etc/conky/conky.conf\" -DPACKAGE_LIBDIR=\"/usr/lib64/conky\"   -I/usr/include/freetype2   -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include   -Wall -W -march=native -O2 -pipe -MT conky-diskio.o -MD -MP -MF .deps/conky-diskio.Tpo -c -o conky-diskio.o `test -f 'diskio.c' || echo './'`diskio.c
conky.c: In function 'draw_each_line_inner':
conky.c:3122: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
conky.c:3128: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
conky.c:3134: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
conky.c:3139: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
conky.c:3143: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
conky.c:3146: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
conky.c: In function 'setalignment':
conky.c:4521: error: 'true' undeclared (first use in this function)
conky.c:4521: error: (Each undeclared identifier is reported only once
conky.c:4521: error: for each function it appears in.)
conky.c: In function 'load_config_file':
conky.c:4576: error: 'true' undeclared (first use in this function)
conky.c: In function 'initialisation':
conky.c:5699: error: 'false' undeclared (first use in this function)
conky.c: In function 'main':
conky.c:5898: warning: ignoring return value of 'freopen', declared with attribute warn_unused_result
make[2]: *** [conky-conky.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/conky-diskio.Tpo .deps/conky-diskio.Po
mv -f .deps/conky-core.Tpo .deps/conky-core.Po
make[2]: Leaving directory `/var/tmp/portage/app-admin/conky-1.8.0/work/conky-1.8.0/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-admin/conky-1.8.0/work/conky-1.8.0/src'
make: *** [all-recursive] Error 1
 * ERROR: app-admin/conky-1.8.0 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line  54:  Called src_compile
 *   environment, line 278:  Called _eapi2_src_compile
 *     ebuild.sh, line 646:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =app-admin/conky-1.8.0',
 * the complete build log and the output of 'emerge -pqv =app-admin/conky-1.8.0'.
 * The complete build log is located at '/var/tmp/portage/app-admin/conky-1.8.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-admin/conky-1.8.0/temp/environment'.
 * S: '/var/tmp/portage/app-admin/conky-1.8.0/work/conky-1.8.0'

>>> Failed to emerge app-admin/conky-1.8.0, Log file:

>>>  '/var/tmp/portage/app-admin/conky-1.8.0/temp/build.log'



Expected Results:  
It should have compiled. The last rc, 1.8.0_rc2, compiled fine when it was released (I cannot check this now since I don't have the ebuild any more).

emerge --info returns

Portage 2.1.8.3 (default/linux/amd64/10.0/no-multilib, gcc-4.4.3, glibc-2.11-r1, 2.6.33-gentoo x86_64)
=================================================================
System uname: Linux-2.6.33-gentoo-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 04 Apr 2010 10:45:01 +0000
app-shells/bash:     4.1_p2-r1
dev-lang/python:     2.6.5-r1, 3.1.2-r1
dev-util/cmake:      2.8.1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
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 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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-march=native -O2 -pipe"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
COLORTERM="Terminal"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CVS_RSH="ssh"
CXXFLAGS="-march=native -O2 -pipe"
DEFAULT_ABI="amd64"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--ask --tree --verbose --with-bdeps=y"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo"
HOME="/home/roald"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/info"
INPUT_DEVICES="evdev"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LDFLAGS="-Wl,-O1"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="en_GB"
LOGNAME="roald"
LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:"
MAIL="/var/mail/roald"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.3/man"
MULTILIB_ABIS="amd64"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OOO_FORCE_DESKTOP="gnome"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3:/usr/games/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/roald"
PYTHONDONTWRITEBYTECODE="1"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.3"
RPMDIR="/usr/portage/rpm"
RUBYOPT="-rauto_gem"
RUBY_TARGETS="ruby18"
SHELL="/bin/bash"
SHLVL="1"
STAGE1_USE="nptl nptlonly unicode"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
USE="X acl alsa amd64 berkdb bzip2 cli cracklib crypt cxx dbus dri fortran gdbm gpm gtk iconv lcms mmx modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pppd readline reflection session smp spl sse sse2 ssl ssse3 symlink sysfs tcpd truetype unicode xcb xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 
USER="roald"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="intel"
WINDOWID="27262979"
XAUTHORITY="/home/roald/.Xauthority"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/local/share:/usr/share"
_="/usr/bin/emerge"
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2010-04-04 17:02:09 UTC
Please attach the full build log. 
Comment 2 geoscope 2010-04-04 18:56:05 UTC
I believe in the two very long Conky threads on forums this was mentioned before, (my memory is very bad, and I read them over a year ago).

With the USE=X, USE=ncurses also has to be enabled. I just verified this by Compiling without X and With both... I also just verified that conky builds with USE="-X -ncurses", and USE-X ncurses" (so they are not co-dependent). Reading into the source, I believe (my C isn't very good), that in sections (IFDEF X11) that protoype  Xwindow related functions, variables are used that are defined elsewhere by whatever IFDEFs ncurses (but then, that is logical deduction anyway, isn't it?). 

Perhaps ebuild needs to be modified so that building with USE X depends on USE ncurses? At least until those variables are supplied to X without ncurses being defined.
Comment 3 Seerp 2010-04-04 19:30:12 UTC
After enabling the ncurses use-flag it compiles fine. Thanks geoscope!

Did this change between 1.8.0_rc2 and 1.8.0? I thought I used to compile 1.8.0_rc2 with the same use flags (i.e. +X -ncurses) without problems.

Here is the full log of the build Andreas:

http://pastebin.org/135074
Comment 4 geoscope 2010-04-05 00:01:02 UTC
(In reply to comment #3)
> After enabling the ncurses use-flag it compiles fine. Thanks geoscope!

Quite welcome, I don't remember whether I read it on gentoo forums or direct from conky site, but it was more than a year ago. So seems to be a recurring problem that disappeared for a while... would have been pre-1.6.1 version I think.

Comment 5 Daniel Pielmeier gentoo-dev 2010-04-06 20:59:24 UTC
@Andreas: Please add all maintainers next time.
Comment 6 Eugene Rosenzweig 2010-04-07 13:04:59 UTC
> After enabling the ncurses use-flag it compiles fine. Thanks geoscope!
> 
> Did this change between 1.8.0_rc2 and 1.8.0? I thought I used to compile
> 1.8.0_rc2 with the same use flags (i.e. +X -ncurses) without problems.

I am having this error trying to compile update from 1.8.0_rc2 to 1.8.0 with only X and truetype enabled so I guess this bug is a new one, I don't think I had a problem building rc2 and I don't think I changed any flags.
Comment 8 Daniel Pielmeier gentoo-dev 2010-04-07 19:07:55 UTC
(In reply to comment #7)
> Try this:
> 
> http://git.omp.am/?p=conky.git;a=commit;h=c8e687406502be8c6f4e75b077113591823405f0
> 

Brenden thanks for the patch.
I have added it to to conky-1.8.0. The changes should be available in a few hours. Please reopen if there are still problems.