Attempting to build conky-1.8.0 with USE=audacious, with audacious-2.3_beta3 and glib-2.24.0 installed. Fails to build. Reproducible: Always Steps to Reproduce: 1.[ebuild R ] app-admin/conky-1.8.0 USE="X audacious* hddtemp nano-syntax ncurses nvidia portmon truetype -apcupsd -curl -debug -eve -imlib -iostats -lua -lua-cairo -lua-imlib -math -moc -mpd -rss -thinkpad -vim-syntax -weather-metar -weather-xoap -wifi" 0 kB 2. 3. Actual Results: The conky build fails to recognize function prototypes imported from /usr/include/audacious/audctrl.h while compling the ${P}/work/${PN}/src/audacious.c . At first I thought this was because "--enable-audacious" can have values yes|no|legacy and they aren't assigned by configure script. Modifying the ebuild to change to "--enable-audacious=yes" (by appending to the ${myconf} variable in the src_configure() similar to what is already in the ebuild) did not affect the result. I don't understand C well enough to follow the error further than the #ifndef AUDACIOUS_LEGACY code of conky's audacious.c, where the declarations are getting clobbered. Experimnenting seemed to indicate conky defining the functions based on xmms variants if legacy IE <=audacious=1.4 . After that I got lost. Expected Results: Expected it to build.
Created attachment 226599 [details] Build.log
I have the same error here on x86_64 and i686 systems.
Please try again without distcc. Please also attach the output of emerge --info
I guess I need to start doing grep "ERROR" <logfile>, since I never even saw the distcc error. I decided that this PC should be just a host and forgot to remove distcc from make.conf along with setting the distcc.conf. Done now, also removed ccache to test. Emerge still fails. I will attach new build log and here is my current emerge --info. Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 i686) ================================================================= System uname: Linux-2.6.31-gentoo-r10-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4600+-with-gentoo-1.12.13 Timestamp of tree: Sun, 04 Apr 2010 11:45:04 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 2.4 [disabled] app-shells/bash: 4.0_p37 dev-java/java-config: 2.1.10 dev-lang/python: 2.6.4-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r2, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.18-r3 sys-devel/gcc: 4.3.4 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6b virtual/os-headers: 2.6.30-r1 ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA dlj-1.1" ACCEPT_PROPERTIES="*" ALSA_CARDS="intel8x0" 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" ANT_HOME="/usr/share/ant" 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="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CCACHE_DIR="/var/tmp/ccache" CCACHE_SIZE="1G" CFLAGS="-march=k8-sse3 -O2 -pipe" CHOST="i686-pc-linux-gnu" CLEAN_DELAY="5" COLLISION_IGNORE="/lib/modules" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CVS_RSH="ssh" CXXFLAGS="-march=k8-sse3 -O2 -pipe" DCCC_PATH="/usr/lib/distcc/bin" DISPLAY=":0.0" DISTCC_DIR="/var/tmp/.distcc" DISTCC_LOG="" DISTCC_VERBOSE="" DISTDIR="/usr/portage/distfiles" EDITOR="/bin/nano" ELIBC="glibc" EMERGE_DEFAULT_OPTS="-av" EMERGE_WARNING_DELAY="10" EPREFIX="" EROOT="/" FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox" FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" GCC_SPECS="" GDK_USE_XFT="1" GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://mirror.usu.edu/mirrors/gentoo" GUILE_LOAD_PATH="/usr/share/guile/1.8" HOME="/root" INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/info" INPUT_DEVICES="keyboard mouse evdev" JAVAC="/etc/java-config-2/current-system-vm/bin/javac" JAVA_HOME="/etc/java-config-2/current-system-vm" JDK_HOME="/etc/java-config-2/current-system-vm" KERNEL="linux" LANG="en_US.utf8" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LC_COLLATE="C" LDFLAGS="-Wl,-O1" LESS="-R -M --shift 5" LESSOPEN="|lesspipe.sh %s" LINGUAS="en" LOGNAME="root" 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:*.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:*.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:" MAKEOPTS="-j3" MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i486-pc-linux-gnu/4.3.2/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.3.4/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/qt/3/doc/man" NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OPENGL_PROFILE="nvidia" PAGER="/usr/bin/less" PATH="/usr/lib/ccache/bin:/usr/lib/distcc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.3.2:/usr/i686-pc-linux-gnu/gcc-bin/4.3.4:/usr/qt/3/bin" PKGDIR="/usr/portage/package-amd64" 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/lib/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="warn error log" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="1" PORTAGE_GID="250" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_PYM_PATH="/usr/lib/portage/pym" PORTAGE_RSYNC_EXTRA_OPTS="--quiet" 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_TMPDIR="/var/tmp" PORTAGE_TMPFS="/dev/shm" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/games /var/lib/layman/gamerlay /var/lib/layman/gnome /var/lib/portage" PORT_LOGDIR="/var/log/portage" PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND" PWD="/root" PYTHONDONTWRITEBYTECODE="1" QMAKESPEC="linux-g++" QTDIR="/usr/qt/3" RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" ROOT="/" ROOTPATH="/opt/bin:/usr/i486-pc-linux-gnu/gcc-bin/4.3.2:/usr/i686-pc-linux-gnu/gcc-bin/4.3.4" RPMDIR="/usr/portage/rpm" RUBY_TARGETS="ruby18" SANE_CONFIG_DIR="/etc/sane.d" SHELL="/bin/bash" SHLVL="1" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" TERM="xterm" USB_DEVFS_PATH="/dev/bus/usb" USE="3dnow 3dnowext X a52 aac acl acpi alsa artworkextra berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus divx dts dvd dvdnav dvdr dvdread emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glitz gmedia gnome gpm gtk hal hddtemp icecast iconv ipv6 ivtv jpeg jpeg2k lastfm lcms libnotify lm_sensors mad mikmod mmx mmxext mng modules mp2 mp3 mp4 mpeg mudflap mysql nautilus ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp pam pango pcre pdf perl png ppds pppd pvr python qt3 qt3support qt4 quicktime readline realmedia reflection sdl session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcl tcpd theora tiff tk truetype unicode usb vidix vorbis win32codecs wmf wmp x264 x86 xcb xfs xml xorg xscreensaver xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv" USER="root" 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="nvidia nv" XAUTHORITY="/root/.xauthOpleVt" XDG_CONFIG_DIRS="/etc/xdg" XDG_DATA_DIRS="/usr/local/share:/usr/share:/usr/share/gdm" _="/usr/bin/emerge"
Created attachment 226655 [details] new build log simplified log name
I'm not convinced this is a bug in Conky. Conky is linking to the libraries reported by `pkg-config --libs audacious`, and if this is wrong it's a bug in audacious.
pkg-config --libs audacious -pthread -laudcore -lgtk-x11-2.0 -lmcs -ldbus-glib-1 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgmodule-2.0 -lmowgli -ldbus-1 -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 Tjhere is my outpu, if it helps to track the problem, but I don't understand. I don't think it's that complicated. The undefined symbols are listed in /usr/include/audacious/audctrl.h I just unpacked the audatious source. find . | grep audctrl ./src/libaudclient/audctrl.c ./src/libaudclient/audctrl.h Taking just the first undefined symbol: conky-audacious.o: In function `audacious_thread_func': audacious.c:(.text+0x354): undefined reference to `audacious_remote_is_running' From audctrl.h #include <glib.h> #include <dbus/dbus-glib.h> gboolean audacious_remote_is_running(DBusGProxy *proxy); From audctrl.c: #include <stdlib.h> #include <glib.h> #include <string.h> #include <dbus/dbus-glib.h> #include "audacious/dbus.h" #include "audacious/dbus-client-bindings.h" #include "audctrl.h" static GError *error = NULL; //it must be hidden from outside, otherwise symbol conflict likely to happen. /** * Check if an Audacious instance is running. * * @param[in] proxy DBus proxy for audacious * @return TRUE if yes, otherwise FALSE. **/ gboolean audacious_remote_is_running(DBusGProxy *proxy) { char *string = NULL; org_atheme_audacious_version(proxy, &string, &error); g_clear_error(&error); if(string) { g_free(string); return TRUE; } else return FALSE; } What from the function definition can't be accounted for by audacious itself, or one of it's includes? Seems to me that conky fails to have a full list of includes in *it's* audacious.h (or audacious.c). Otherwise, audacious would have failed to build.
Your audacious version is labeled as 'beta', so I'm not really motivated to look into this right now. For anyone with some spare time, interest, and a slight understanding of C, it's probably trivial to solve though.
Stable version of media-sound/audacious-2.3 is already in the tree. Does it also occur with this version?
(In reply to comment #9) > Stable version of media-sound/audacious-2.3 is already in the tree. Does it > also occur with this version? > Just synced and updated world. Conky still failed with audacious-2.3.ebuild installed. I'll go ahead and post another build.log, just in case any details changed.
Created attachment 227063 [details] conky-1.8 build log
Created attachment 227201 [details, diff] conky-1.8.0.ebuild.patch The attached patch to conky-1.8.0.ebuild and the following patch to configure.ac fixes the build failure here.
Created attachment 227203 [details, diff] conky-1.8.0-audacious-2.3.patch
(In reply to comment #13) > Created an attachment (id=227203) [details] > conky-1.8.0-audacious-2.3.patch > Does this also work with older versions?
(In reply to comment #14) > (In reply to comment #13) > > Created an attachment (id=227203) [details] [details] > > conky-1.8.0-audacious-2.3.patch > > > > Does this also work with older versions? > It compiles fine with audacious 2.2 and 2.3 which are the versions we have available in gentoo at the moment. Not sure about older versions. Maybe adding a conditional to only PKG_CHECK for audclient if there is audacious 2.3 installed
(In reply to comment #15) > > It compiles fine with audacious 2.2 and 2.3 which are the versions we have > available in gentoo at the moment. Not sure about older versions. > > Maybe adding a conditional to only PKG_CHECK for audclient if there is > audacious 2.3 installed > I think your patch is probably fine, I'll test it later and commit it for 1.8.1 though.
> It compiles fine with audacious 2.2 and 2.3 which are the versions we have > available in gentoo at the moment. Not sure about older versions. Yep, applied patches, conky built. Ran conky with my conkyrc that shows audacious info, and all looks good. Thank you, Mr Pielmeier.
http://git.omp.am/?p=conky.git;a=commit;h=b36fc94885c8555ff6805977a6b821a41303a642
Patch is applied in gentoo 1.8.0 and is included upstream in 1.8.1 so closing this for now. Please reopen if there are any issues.
i might be blind but i dont see 1.8.1 anywhere
(In reply to comment #20) > i might be blind but i dont see 1.8.1 anywhere > Okay I need to rephrase: ... and will be included in 1.8.1 ...
One month later: when can we expect conky-1.8.1?
(In reply to comment #22) > One month later: when can we expect conky-1.8.1? Why do you ask this here? Gentoo is not developing conky. Ask the conky maintainers when they are going to release a new version. So this is the wrong question. The correct question would be as follows. Where is the patch you (which is me) have promised for conky-1.8.0 to make this version work with audacious 2.3. The answer to this question is I simply forgot to add the patch and will add it next week. In the meantime use the patches attached here.
+*conky-1.8.0-r1 (12 Jun 2010) + + 12 Jun 2010; Daniel Pielmeier <billie@gentoo.org> +conky-1.8.0-r1.ebuild, + +files/conky-1.8.0-audacious-2.3.patch: + Add patch to build with audacious-2.3. This fixes bug 313161.