LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-21-2006, 01:45 PM   #1
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
compile amarok fails with ktrm.cpp error


I'm trying to compile amarok for my slackware 10.2 installation. I've installed all the dependencies it asked for when running ./configure, so that now it'll configure with no errors. Great, I thought, just make and checkinstall to go - nearly there. So, I make'd away, and left it to compile the app. When I came back, I had the following on my screen:
Code:
...
then mv -f ".deps/ktrm.Tpo" ".deps/ktrm.Plo"; else rm -f ".deps/ktrm.Tpo"; exit 1; fi
/usr/local/include/tunepimp/tp_c.h: In member function `int 
   KTRMRequestHandler::startLookup(KTRMLookup*)':
/usr/local/include/tunepimp/tp_c.h:590: error: too few arguments to function `
   int tp_AddFile(void*, const char*, int)'
ktrm.cpp:84: error: at this point in file
ktrm.cpp: In constructor `KTRMRequestHandler::KTRMRequestHandler()':
ktrm.cpp:140: error: `tp_SetTRMCollisionThreshold' undeclared (first use this 
   function)
ktrm.cpp:140: error: (Each undeclared identifier is reported only once for each 
   function it appears in.)
ktrm.cpp:141: error: `tp_SetAutoFileLookup' undeclared (first use this 
   function)
ktrm.cpp:149: error: `tp_SetUseUTF8' undeclared (first use this function)
ktrm.cpp:151: error: invalid conversion from `void (*)(void*, void*, 
   TPCallbackEnum, int)' to `void (*)(void*, void*, TPCallbackEnum, int, 
   TPFileStatus)'
ktrm.cpp: In function `void TRMNotifyCallback(void*, void*, TPCallbackEnum, 
   int)':
ktrm.cpp:346: error: `eTRMCollision' undeclared (first use this function)
ktrm.cpp: In member function `virtual void KTRMLookup::collision()':
ktrm.cpp:650: error: `tr_GetNumResults' undeclared (first use this function)
ktrm.cpp:663: error: `tr_GetResults' undeclared (first use this function)
ktrm.cpp:690: error: base operand of `->' has non-pointer type `artistresult_t'
ktrm.cpp:691: error: base operand of `->' has non-pointer type `albumresult_t'
ktrm.cpp:692: error: base operand of `->' has non-pointer type `albumresult_t'
make[4]: *** [ktrm.lo] Error 1
make[4]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3'
make: *** [all] Error 2
I've googled but there seems to be a lack of information on this...

Does anyone have any suggestions as to how I can fix this? All ideas welcome
 
Old 10-21-2006, 03:35 PM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
It seems that this error is due to tunepimp v0.4 (http://dot.kde.org/1139952529/). Installing v0.3 sorts that out.

I'm still unable to compile amarok as I now get this error:
Code:
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../amarok/src/amarokcore -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/opt/kde/include/arts -I/usr/include/taglib -I../../amarok/src/sqlite    -I/opt/kde/include -I/usr/lib/qt/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -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  -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
/bin/sh ../../libtool --silent --tag=CXX --mode=link g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -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    -o amarokapp -L/opt/kde/lib -L/usr/lib/qt/lib -L/usr/X11R6/lib    -R /opt/kde/lib -R /opt/kde/lib -R /usr/lib/qt/lib -R /usr/X11R6/lib main.o ../../amarok/src/amarokcore/libamarokcore.la libamarok.la ../../amarok/src/analyzers/libanalyzers.la ../../amarok/src/plugin/libplugin.la ../../amarok/src/statusbar/libstatusbar.la ../../amarok/src/metadata/libmetadata.la -lkutils -lkio -lkdeui -lkdecore -lkhtml -lknewstuff -L/usr/lib -ltag -lGL  ../../amarok/src/sqlite/libsqlite.la  -ltunepimp   
/usr/lib/gcc-lib/i486-slackware-linux/3.3.6/../../../../i486-slackware-linux/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libtag.so, not found (try using -rpath or -rpath-link)
/usr/lib/libtag.so: undefined reference to `std::ios_base::Init::~Init [in-charge]()@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::cout@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::find(wchar_t const*, unsigned, unsigned) const@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::assign(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_create(unsigned, unsigned, std::allocator<wchar_t> const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(unsigned long)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::__throw_length_error(char const*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <char, std::char_traits<char>, std::allocator<char> >(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `__dynamic_cast@CXXABI_1.3'
/usr/lib/libtag.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(char const*, unsigned)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_mutate(unsigned, unsigned, unsigned)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(wchar_t const*, unsigned)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::resize(unsigned, wchar_t)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(bool)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_destroy(std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::_List_node_base::hook(std::_List_node_base*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge](std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `operator new[](unsigned)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `operator new(unsigned)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::append(std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
/usr/lib/libtag.so: undefined reference to `std::cerr@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::_List_node_base::unhook()@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_leak_hard()@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_empty_rep_storage@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge](wchar_t const*, std::allocator<wchar_t> const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_terminal@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_S_max_size@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_leak_hard()@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string[in-charge](std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&, unsigned, unsigned)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(long)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_Rep::_M_destroy(std::allocator<wchar_t> const&)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::__throw_out_of_range(char const*)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned, char)@GLIBCXX_3.4'
/usr/lib/libtag.so: undefined reference to `std::ios_base::Init::Init[in-charge]()@GLIBCXX_3.4'
collect2: ld returned 1 exit status
make[4]: *** [amarokapp] Error 1
make[4]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pwc101/downloads/amarok-1.4.3'
make: *** [all] Error 2
I've had this problem before whilst trying to compile certain programs (see thread http://www.linuxquestions.org/questi....php?t=485594).

I'm just trying a bit of a cheat at the moment, but I'm sure it won't work!
 
Old 10-28-2006, 03:56 AM   #3
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Original Poster
Rep: Reputation: 128Reputation: 128
Just in case anyone has a similar problem, I found that upgrading from slack 10.2 to 11.0 solved my problems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hplip configure error -- /lib/cpp fails sanity check pncowley Linux - Software 8 04-28-2006 12:08 PM
error: C preprocessor "/lib/cpp" fails sanity check ankit4u1 Linux - Software 2 04-02-2006 12:24 PM
amaroK compile error jaakkop Linux - Software 4 01-23-2006 12:47 PM
lib/cpp configure error: fails sanity check revenge80200 Linux - Newbie 5 09-28-2004 09:21 PM
/lib/cpp fails sanity check error message lansman Linux - Software 3 11-07-2003 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration