Hi face,

face a écrit :
Hi Jean-luc,

The problem is ossaudio is not being linked in. You may be able to do something with the environment (LDFLAGS, or setting OSSCOMPAT_LIBRARY directly), I'm not sure.

What I did, which is defiantly a late night hack to get it to build, is edit /usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/tests/CMakeLists.txt after the build fails and add the following line to the top of the file:

set( OSSCOMPAT_LIBRARY "-L/usr/lib -lossaudio")

The run the build again.

No "tests" directory
Path to CMakeLists.txt is

/usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/tests/CMakeLists.txt

It just builds fine now

Thanks a lot Face




It would be cleaner to do something like:

   env OSSCOMPAT_LIBRARY="-L/usr/lib -lossaudio" make package

But I have no idea if that would work...

Hope this helps,
-R. M.
http://myutil.com/


jean-luc boutin wrote:
Hello,

I'm using openbsd-current with kde4.0.1.
build multimedia fails with following error:

CMakeFiles/profiletest.dir/usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/kmix/mixer.o(.text+0x3f1): In function `Mixer_OSS::open()':
: undefined reference to `_oss_ioctl'
CMakeFiles/profiletest.dir/usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/kmix/mixer.o(.text+0x410): In function `Mixer_OSS::open()':
: undefined reference to `_oss_ioctl'
CMakeFiles/profiletest.dir/usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/kmix/mixer.o(.text+0x42f): In function `Mixer_OSS::open()':
: undefined reference to `_oss_ioctl'
CMakeFiles/profiletest.dir/usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/kmix/mixer.o(.text+0x44e): In function `Mixer_OSS::open()':
: undefined reference to `_oss_ioctl'
CMakeFiles/profiletest.dir/usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/kmix/mixer.o(.text+0x61b): In function `Mixer_OSS::open()':
: undefined reference to `_oss_ioctl'
CMakeFiles/profiletest.dir/usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/kdemultimedia-4.0.1/kmix/mixer.o(.text+0xda5): more undefined references to `_oss_ioctl' follow
collect2: ld returned 1 exit status
*** Error code 1
stop in /usr/ports/x11/kde4/multimedia/w-kdemultimedia-4.0.1/build-i386 (line 388 of kmix/tests/CMakeFiles/profiletest.dir/build.make)
*** Error code 1

any idea how to fix this?

thanks



Reply via email to