This forum has been archived. All content is frozen. Please use KDE Discuss instead.

compile error [app.o]

Tags: None
(comma "," separated)
shmucci
Karma
0

compile error [app.o]

Fri Aug 20, 2004 2:54 am
i get this error when trying to compile 1.1-beta1 in fedora core 2:

app.cpp:299: error: `StringHandler' is not a class or namespace
app.cpp:299: error: invalid base-class specification
app.cpp: In member function `void App::applySettings(bool)':
app.cpp:385: error: 'class TagLib::ID3v1::Tag' has no member named '
setStringHandler'
make[4]: *** [app.o] Error 1

i compiled taglib-1.2 beforehand and installed it in my home dir. i have an older taglib in /usr, but i edited PATH and LD_LIBRARY_PATH in my .bash_profile to look in $HOME before looking in /usr.
spyderusa11
Karma
0

Re:compile error [app.o]

Fri Aug 20, 2004 3:41 pm
Very similaryly I get the following:

app.o(.text+0x22c8): In function `App::applySettings(bool)':
: undefined reference to `TagLib::ID3v1::Tag::setStringHandler(TagLib::ID3v1::StringHandler const*)'
app.o(.gnu.linkonce.r._ZTI18ID3v1StringHandler+0x8): undefined reference to `typeinfo for TagLib::ID3v1::StringHandler'
collect2: ld returned 1 exit status
make[4]: *** [amarokapp] Error 1
make[4]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS'
make: *** [all] Error 2

I'm using SuSE 9.1 and the taglib and taglib-devel RPM's that came with it.

Mike
User avatar
markey
KDE Developer
Posts
2286
Karma
3
OS

Re:compile error [app.o]

Fri Aug 20, 2004 5:40 pm
spyderusa11 wrote:
app.o(.text+0x22c8): In function `App::applySettings(bool)':
: undefined reference to `TagLib::ID3v1::Tag::setStringHandler(TagLib::ID3v1::StringHandler const*)'
app.o(.gnu.linkonce.r._ZTI18ID3v1StringHandler+0x8): undefined reference to `typeinfo for TagLib::ID3v1::StringHandler'
collect2: ld returned 1 exit status
make[4]: *** [amarokapp] Error 1
make[4]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS/amarok/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS/amarok/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS/amarok'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/spyderusa11/amarok-1.1-CVS'
make: *** [all] Error 2


It is due to a stale version of the TagLib library on your harddisk. You must remove all old copies of TagLib.

[code:1]
find / -name "fileref.h"
[/code:1]

should locate all instances of TagLib. Mind you, you could even have several copies hanging around in different folders. Happened to me too.


--
Mark Kretschmann - Amarok Developer
spyderusa11
Karma
0

Re:compile error [app.o]

Sat Aug 21, 2004 1:48 am
Well... there was another version of taglib and I removed it. But I still get the same error. The logical thing to do would probably be get rid of the RPM and compile the source. But kdemultimedia and a few other RPM's depend on it so I'm not sure I wanna go through the hassle. Do you have any other suggestions?

Thanks,
Mike
spyderusa11
Karma
0

Re:compile error [app.o]

Sat Aug 21, 2004 2:15 am
Ok I left the taglib RPM alone and uninstalled the taglib-devel RPM. Then I compiled taglib from source. I'm sure it's a mess now, but more importantly, it worked. Thanks again for the help.

Mike
shmucci
Karma
0

Re:compile error [app.o]

Sat Aug 21, 2004 9:33 am
that seemed to work for me too
eric
Karma
0

Re:compile error [app.o]

Sun Oct 24, 2004 9:22 pm
I don get it to work that way, i sure ie removed all old taglib versions, compiled taglib 1.3 but i still get the stringhandler error
eric
Karma
0

Re:compile error [app.o]

Sun Oct 24, 2004 10:57 pm
rpm ---rebuild-db did the job for me,now i able to install


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]