Compiling Kaffeine from source - Make fails

I am new to compiling from source, so I would greatly appreciate some help with my problem.

I am trying to compile kaffeine 0.8.8 for openSuSE 11.1 / KDE3.5.10.

It seems to configure correctly, but when I run “make” it fails with the following messages:
.
koggenc.cpp: (.text+0xcb3): undefined reference to vorbis_comment_add_tag’
.
many messages like the above.
.
collect2: ld returned 1 exit status
make[7]: *** [libkaffeineoggvorbis.la] Error 1
make[7]: Leaving directory /home/myrlyn/Downloads/kaffeine-0.8.8/kaffeine/src/input/disc/plugins/oggvorbis' make[6]: *** [all-recursive] Error 1 make[6]: Leaving directory /home/myrlyn/Downloads/kaffeine-0.8.8/kaffeine/src/input/disc/plugins’
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory /home/myrlyn/Downloads/kaffeine-0.8.8/kaffeine/src/input/disc' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory /home/myrlyn/Downloads/kaffeine-0.8.8/kaffeine/src/input’
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory /home/myrlyn/Downloads/kaffeine-0.8.8/kaffeine/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory /home/myrlyn/Downloads/kaffeine-0.8.8/kaffeine’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/myrlyn/Downloads/kaffeine-0.8.8’
make: *** [all] Error 2

I don’t have a clue what to do next!

Thanks in anticipation.

Hi
Can you post all the error message before the;


collect2: ld returned 1 exit status

As that’s the part that identifies the error, probably a missing devel
package. If it’s long post the output on pastebin.com or similar and
post back the link.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.45-0.1-default
up 4 days 15:53, 3 users, load average: 0.37, 0.62, 0.57
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 195.36.15

It’s a linking problem, not a compilation one. So he has the headers/devel package.

The problem is with the Makefile, that misses a -lvorbis.

Many thanks for your prompt replies, Malcolm and RedDwarf.

@Malcolm: I will post the file containing all the messages from “make” as soon as possible, but it may take a day or two. Please bear with me.

@RedDwarf: I don’t really understand what you mean. Could you explain more, please? Sorry to be so dense!

Many thanks again :slight_smile:

p.s I have checked, and I have libvorbis, libvorbis-devel and vorbis-tools installed

Here is a link to the entire output I get when I run “make”:

Kaffeine Make Problem

Thanks again for your help.

Reddwarf, I would be grateful for your help.

Do I just add “-lvorbis” as a line to the makefile, and if so where? Or does it need some other parameter?

I do have a line which says: “LIB_OGGVORBIS = -lvorbisenc”, if that’s any help.

Thanks in anticipation.

The last command, the one that ends with “-lvorbisenc”, should also have a -lvorbis. How to do that? Fixing the Makefile… every Makefile is different. You really need to know how them work. With some luck it will use automake and you would only need to edit the Makefile.am file, that would be simpler. Still you would need to know automake…

I would need the Makefile* files to see the problem. But sorry, I’m too busy and this is very low in my priority list since KDE3 is dead and Packman already has a Kaffeine 0.8.8 package for openSUSE 11.1.

pd. It would make more sense if this problem happened with openSUSE 11.2… 11.1 was a typo?

Many thanks for your reply, RedDwarf.

I AM using 11.1, although I upgraded the kernel to 2.6.29 to get support for my video card. Maybe that’s the source of the confusion. I stayed with 11.1 to delay having to move to KDE4 for as long as possible.

I was trying to compile from source to recover some of the functions that had been removed from the Packman version.

I will probably have to upgrade to 11.3, so I guess I’ll wait until then before I re-visit this.

Thanks again for you help