Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215534 - media-sound/amarok-1.4.8 compilation failed with: ktrm.cpp:47:27: error: tunepimp/tp_c.h: No such file or directory
Summary: media-sound/amarok-1.4.8 compilation failed with: ktrm.cpp:47:27: error: tune...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-31 08:18 UTC by Albert Zeyer
Modified: 2008-04-05 01:01 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,200.08 KB, text/plain)
2008-04-01 14:49 UTC, Albert Zeyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Zeyer 2008-03-31 08:18:24 UTC
...
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../amarok/src/amarokcore -I../../amarok/src/magnatunebrowser -I../../amarok/src/amarokcore -I../../amarok/src/analyzers -I../../amarok/src/plugin -I../../amarok/src/statusbar -I../../amarok/src/mediadevice -I../../amarok/src/device -I../../amarok/src -I/usr/kde/3.5/include/arts -I/usr/include/taglib -I../../amarok/src/sqlite -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1   -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o lastfm.lo lastfm.cpp
ktrm.cpp:47:27: error: tunepimp/tp_c.h: No such file or directory
ktrm.cpp:57: error: variable or field 'TRMNotifyCallback' declared void
ktrm.cpp:57: error: 'tunepimp_t' was not declared in this scope
ktrm.cpp:57: error: expected primary-expression before 'void'
ktrm.cpp:57: error: 'TPCallbackEnum' was not declared in this scope
ktrm.cpp:57: error: expected primary-expression before 'int'
ktrm.cpp:57: error: initializer expression list treated as compound expression
/bin/sh ../../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../amarok/src/amarokcore -I../../amarok/src/magnatunebrowser -I../../amarok/src/amarokcore -I../../amarok/src/analyzers -I../../amarok/src/plugin -I../../amarok/src/statusbar -I../../amarok/src/mediadevice -I../../amarok/src/device -I../../amarok/src -I/usr/kde/3.5/include/arts -I/usr/include/taglib -I../../amarok/src/sqlite -I/usr/include/mysql -DHAVE_ERRNO_AS_DEFINE=1   -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION  -c -o mediabrowser.lo mediabrowser.cpp
ktrm.cpp:129: error: ISO C++ forbids declaration of 'tunepimp_t' with no type
ktrm.cpp:129: error: expected ';' before '&' token
ktrm.cpp:134: error: expected `;' before 'protected'
ktrm.cpp:201: error: 'tunepimp_t' does not name a type
ktrm.cpp: In member function 'int KTRMRequestHandler::startLookup(KTRMLookup*)':
ktrm.cpp:84: error: 'm_pimp' was not declared in this scope
ktrm.cpp:84: error: 'tp_AddFile' was not declared in this scope
ktrm.cpp:90: error: 'm_pimp' was not declared in this scope
ktrm.cpp:90: error: 'tp_IdentifyAgain' was not declared in this scope
ktrm.cpp: In member function 'void KTRMRequestHandler::endLookup(KTRMLookup*)':
ktrm.cpp:98: error: 'm_pimp' was not declared in this scope
ktrm.cpp:98: error: 'tp_GetTrack' was not declared in this scope
ktrm.cpp:98: error: 'tp_ReleaseTrack' was not declared in this scope
ktrm.cpp:99: error: 'tp_Remove' was not declared in this scope
ktrm.cpp: In constructor 'KTRMRequestHandler::KTRMRequestHandler()':
ktrm.cpp:137: error: 'm_pimp' was not declared in this scope
ktrm.cpp:137: error: 'tp_New' was not declared in this scope
ktrm.cpp:140: error: 'tp_SetTRMCollisionThreshold' was not declared in this scope
ktrm.cpp:141: error: 'tp_SetAutoFileLookup' was not declared in this scope
ktrm.cpp:143: error: 'tp_SetAutoSaveThreshold' was not declared in this scope
ktrm.cpp:144: error: 'tp_SetMoveFiles' was not declared in this scope
ktrm.cpp:145: error: 'tp_SetRenameFiles' was not declared in this scope
ktrm.cpp:149: error: 'tp_SetUseUTF8' was not declared in this scope
ktrm.cpp:151: error: 'tp_SetNotifyCallback' was not declared in this scope
ktrm.cpp:163: error: 'tp_GetServer' was not declared in this scope
ktrm.cpp:187: error: 'tp_SetProxy' was not declared in this scope
ktrm.cpp: In destructor 'KTRMRequestHandler::~KTRMRequestHandler()':
ktrm.cpp:197: error: 'm_pimp' was not declared in this scope
ktrm.cpp:197: error: 'tp_Delete' was not declared in this scope
ktrm.cpp: At global scope:
ktrm.cpp:319: error: variable or field 'TRMNotifyCallback' declared void
ktrm.cpp:319: error: redefinition of 'int TRMNotifyCallback'
ktrm.cpp:57: error: 'int TRMNotifyCallback' previously defined here
ktrm.cpp:319: error: 'tunepimp_t' was not declared in this scope
ktrm.cpp:319: error: expected primary-expression before 'void'
ktrm.cpp:319: error: 'TPCallbackEnum' was not declared in this scope
ktrm.cpp:319: error: expected primary-expression before 'int'
ktrm.cpp: In member function 'virtual void KTRMLookup::recognized()':
ktrm.cpp:583: error: 'metadata_t' was not declared in this scope
ktrm.cpp:583: error: 'metaData' was not declared in this scope
ktrm.cpp:583: error: 'md_New' was not declared in this scope
ktrm.cpp:584: error: 'track_t' was not declared in this scope
ktrm.cpp:584: error: expected `;' before 'track'
ktrm.cpp:585: error: 'track' was not declared in this scope
ktrm.cpp:585: error: 'tr_Lock' was not declared in this scope
ktrm.cpp:586: error: 'tr_GetServerMetadata' was not declared in this scope
ktrm.cpp:598: error: 'md_Delete' was not declared in this scope
ktrm.cpp:599: error: 'tr_Unlock' was not declared in this scope
ktrm.cpp: In member function 'virtual void KTRMLookup::collision()':
ktrm.cpp:641: error: 'track_t' was not declared in this scope
ktrm.cpp:641: error: expected `;' before 'track'
ktrm.cpp:643: error: 'track' was not declared in this scope
ktrm.cpp:648: error: 'track' was not declared in this scope
ktrm.cpp:648: error: 'tr_Lock' was not declared in this scope
ktrm.cpp:649: error: 'tr_GetNumResults' was not declared in this scope
ktrm.cpp:653: error: 'metadata_t' was not declared in this scope
ktrm.cpp:653: error: 'mdata' was not declared in this scope
ktrm.cpp:653: error: 'md_New' was not declared in this scope
ktrm.cpp:657: error: 'md_Clear' was not declared in this scope
ktrm.cpp:660: error: 'TPResultType' was not declared in this scope
ktrm.cpp:660: error: expected `;' before 'type'
ktrm.cpp:661: error: 'result_t' was not declared in this scope
ktrm.cpp:661: error: expected type-specifier before 'result_t'
ktrm.cpp:661: error: expected `;' before 'result_t'
ktrm.cpp:662: error: 'type' was not declared in this scope
ktrm.cpp:662: error: 'tr_GetResults' was not declared in this scope
ktrm.cpp:665: error: 'eNone' was not declared in this scope
ktrm.cpp:668: error: 'eArtistList' was not declared in this scope
ktrm.cpp:671: error: 'eAlbumList' was not declared in this scope
ktrm.cpp:674: error: 'eTrackList' was not declared in this scope
ktrm.cpp:677: error: 'albumtrackresult_t' was not declared in this scope
ktrm.cpp:677: error: 'tracks' was not declared in this scope
ktrm.cpp:677: error: expected type-specifier before 'albumtrackresult_t'
ktrm.cpp:677: error: expected `>' before 'albumtrackresult_t'
ktrm.cpp:677: error: expected `(' before 'albumtrackresult_t'
ktrm.cpp:677: error: expected primary-expression before '>' token
ktrm.cpp:677: error: expected `)' before ';' token
ktrm.cpp:703: error: 'eMatchedTrack' was not declared in this scope
ktrm.cpp:708: error: type '<unresolved overloaded function type>' argument given to 'delete', expected pointer
ktrm.cpp:711: error: 'tr_Unlock' was not declared in this scope
ktrm.cpp:712: error: 'class KTRMRequestHandler' has no member named 'tunePimp'
ktrm.cpp:712: error: 'tp_ReleaseTrack' was not declared in this scope
ktrm.cpp: In member function 'virtual void KTRMLookup::error()':
ktrm.cpp:811: error: 'track_t' was not declared in this scope
ktrm.cpp:811: error: expected `;' before 'track'
ktrm.cpp:813: error: 'track' was not declared in this scope
ktrm.cpp:813: error: 'tr_GetError' was not declared in this scope
distcc[28597] ERROR: compile ktrm.cpp on localhost failed
make[4]: *** [ktrm.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.8/work/amarok-1.4.8/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.8/work/amarok-1.4.8/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.8/work/amarok-1.4.8/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-sound/amarok-1.4.8/work/amarok-1.4.8'
make: *** [all] Error 2
 * 
 * ERROR: media-sound/amarok-1.4.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4138:  Called kde_src_compile
 *             environment, line 2856:  Called kde_src_compile 'src_compile'
 *             environment, line 2977:  Called kde_src_compile 'src_compile' 'all' 'myconf'
 *             environment, line 2973:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile:make
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-sound/amarok-1.4.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/amarok-1.4.8/temp/environment'.
 *
Comment 1 Albert Zeyer 2008-03-31 08:18:50 UTC
acomputer ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.16.19 i686)
=================================================================
System uname: 2.6.16.19 i686 AMD Athlon(tm) XP 2000+
Timestamp of tree: Sat, 29 Mar 2008 11:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.3.5-r3, 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.15.92.0.2-r10, 2.16.1-r3, 2.17-r1, 2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="candy distcc distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/usr/portage/local/private"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext GAPING_SECURITY_HOLE X X509 a52 aac aalib acl acpi acpi4linux adns afs agg aiglx alsa amd amuled aqua_theme ares asf asm atm auctex avahi bash-completion bidi bindist bittorrent bl bonjour bookmarks bootsplash bzip2 bzlib cairo cdda cddb cdio cdparanoia cdr cdrom cgi clisp codecs corba cracklib crypt cups curl custreloc dbus dedicated dga dhcp divx4linux dlopen dmi dnd dri dts dv dvd dvdnav dvdr dvdread dxr3 eds encode exif faad fam fame ffmpeg firefox flac flash font-server fortran fpx freetype ftp galago gcj gcl gd gdbm ggi gif gimp gl glitz glslideshow glut gnome gprof graphviz gs gstreamer gtk gtk2 gzip h323 hal haskell howl howl-compat html httpd iconv imagemagick imap imlib2 insecure-drivers ithreads jack java jbig jikes jit jpeg jpeg2k kerberos lame lcms ldap libcaca libnotify linuxthreads-tls live lzo mad matroska mbox midi mikmod mjpeg mmx mmxext mng mod modplug mozbranding mozcalendar mozilla mp2 mp3 mp4 mp4live mpeg mpeg2 mpeg4 mplayer mppe-mppc mudflap multislot musepack musicbrainz mysql nautilus ncurses net network njb nls nntp nptl nptlonly nsplugin nvidia objc offensive ogg oggvorbis openal opengl openmp oss pam pascal pcre pdf php png pop posix ppds pthreads python qt quicktime rar readline real rogue rplay rtc rtsp ruby samba sasl screen sdl server session shorten shout silvercity silverxp skins slp sndfile sockets speedo speex spell sse sse-filters ssl stream subversion svg svga tagwriting tcltk teamarena tetex tga themes theora threads threadsafe thumbnail tiff transcode truetype type1 unicode urandom usb utf8 v4l v4l2 vcd vdr vidix visualization vlm vorbis win32codecs wma wmf wxwindows x264 x86 xanim xatrix xcomposite xext xface xforms xine xorg xosd xpm xprint xrandr xscreensaver xv xvid xvmc zip zlib zvbi" ALSA_CARDS="emu10k1 bt87x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv apm"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Albert Zeyer 2008-03-31 08:19:36 UTC
Perhaps a missing dependency or a not supported version of some lib? Probably some dependency has to be fixed in the ebuild.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2008-03-31 19:19:54 UTC
Well, it's complaining about tunepimp, which version do you have installed? distcc issues ruled out?
Comment 4 Albert Zeyer 2008-04-01 10:05:28 UTC
Sorry, would have done these test normally immediatly but was short in time...

I have also tried without DistCC, same result.

I have media-libs/tunepimp-0.5.3 installed. The header files are installed in /usr/include/tunepimp-0.5, for example /usr/include/tunepimp-0.5/tp_c.h. It seems that the ebuild searches for tunepimp/tp_c.h which doesn't exist.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-04-01 12:15:24 UTC
Can you attach the full output of ./configure ?
Comment 6 Albert Zeyer 2008-04-01 14:49:30 UTC
Created attachment 147971 [details]
build.log

...
checking tunepimp-0.5/tp_c.h usability... yes
checking tunepimp-0.5/tp_c.h presence... yes
checking for tunepimp-0.5/tp_c.h... yes
...
Comment 7 Albert Zeyer 2008-04-01 14:53:19 UTC
In the code:

...

#if HAVE_TUNEPIMP

#if HAVE_TUNEPIMP >= 5
#include <tunepimp-0.5/tp_c.h>
#else
#include <tunepimp/tp_c.h>
#endif

...
Comment 8 Albert Zeyer 2008-04-04 11:09:28 UTC
In configure.in:

...
###############################################################################
# BEGIN TUNEPIMP CHECK
###############################################################################

AC_ARG_WITH(musicbrainz,
    AC_HELP_STRING([--without-musicbrainz],[build Amarok without MusicBrainz su$
    [with_musicbrainz=$withval],
    [with_musicbrainz=yes]
)

if test "$with_musicbrainz" = "yes"; then
    AC_CHECK_HEADER(tunepimp-0.5/tp_c.h, [build_musicbrainz="yes"],
      [AC_CHECK_HEADER(tunepimp/tp_c.h, [build_musicbrainz="yes"],
        [build_musicbrainz="no"])]) 
fi

if test "$build_musicbrainz" = "yes"; then
    AC_CHECK_LIB(tunepimp, tr_GetPUID,
      AC_DEFINE(HAVE_TUNEPIMP, 5, [have MusicBrainz 0.5.x]),
        AC_CHECK_LIB(tunepimp, tp_SetFileNameEncoding,
        AC_DEFINE(HAVE_TUNEPIMP, 4, [have MusicBrainz 0.4.x]),
        AC_DEFINE(HAVE_TUNEPIMP, 1, [have MusicBrainz])))
    LIB_TUNEPIMP="-ltunepimp"
    have_tunepimp=yes
else
    AC_DEFINE(HAVE_TUNEPIMP, 0, [have TunePimp])
    LIB_TUNEPIMP=""
    have_tunepimp=no
fi

AC_SUBST(LIB_TUNEPIMP)

###############################################################################
# END TUNEPIMP CHECK
###############################################################################
...
Comment 9 Albert Zeyer 2008-04-04 11:10:30 UTC
acomputer ~ # objdump -T /usr/lib/libtunepimp.so | grep GetPUID
00023ba0 g    DF .text	000000fe  Base        tr_GetPUID
acomputer ~ # objdump -T /usr/lib/libtunepimp.so | grep SetFileNameEncoding
000258f0 g    DF .text	000000db  Base        tp_SetFileNameEncoding
Comment 10 Albert Zeyer 2008-04-04 11:11:03 UTC
In config.h:

...
/* have TunePimp */
#define HAVE_TUNEPIMP 1
...
Comment 11 Albert Zeyer 2008-04-04 11:11:53 UTC
Seems that AC_CHECK_LIB doesn't work correctly.
Comment 12 Albert Zeyer 2008-04-05 00:31:34 UTC
After I reemerged tunepimp, amarok emerges fine. Perhaps the lib was just broken before.

But even if the lib was broken somehow, shouldn't autoconf handle it correctly though? But I don't know exactly how this AC_CHECK_LIB works (I can only imagine what it probably means). And objdump still gives the needed information which AC_CHECK_LIB probably is requesting.
Comment 13 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-04-05 01:01:40 UTC
You probably forgot a revdep-rebuild run. And no, objdump provides "possible" data, AC_CHECK_LIB check "actual" data.