KDE on a FreeBSD

Vladimir Mencl, MK, susSED vmen3237 at ss1000.ms.mff.cuni.cz
Thu Jan 22 13:10:06 CET 1998


  Hi. I've been trying to use KDE-Beta2 on a FreeBSD 2.2.1, and had
several problems with compiling it and running. Here they are, together
with their solution.

kdebase:

kaudioserver.cpp had a serious bug, in function main fclose was called even 
if fopen failed.

!!!! kaudio/kaudioserver.cpp

126a127
>   {
128,129c129,130
<
<   fclose(KMServerPidHandle);
---
>     fclose(KMServerPidHandle);
>   };

I had problem linking kcontrol/info, I was getting message __malloc__FUi
in processor.o not found. That was because of your declaration of
malloc, I had to add 

extern "C" 

int front of its declaration.

kdemultimedia:

I had problems compiling a lot of programs from this package, mostly
because of missing header files. pthread header file is on FreeBSD
available as pthread.h and not pthread/mit/pthread.h.
  Also, there's no sys/soundcard.h but a machine/soundcard.h
This had to be changed in quite a lot of files in kmid directory.

kmid/kmidframe.h pthread/mit/pthread.h -> pthread.h
     kmidframe.cpp, kmidclient.cpp sys/soundcard.h -> machine/soundcard.h
     player/midiout.cpp dtto
	    main.cc track.cc midfile.cc midistat.cc player.cc 


Also, I could not compile several files because of undefined ulong type.
I had to change dattypes.h - uncomment //#define ulong unsigned long

And kdegraphics required gmake, did not work with regular make (FreeBSD 2.2.1)


    These are problems I've solved. There are some other I did not solve
(among them the one the KDE seems a bit slow to me, on my poor little
P75)
    When I try to start kaudioserver (after I fixed the coredump problem
caused by fclose(NULL) as described earlier), I get a message:
(null): Undefined symbol "_ftok" called from kaudioserver:/usr/local/kde/lib/libmediatool.so.0.7 at 0x801d150

I'm using gcc version 2.7.2.1

ldd `which kaudioserver`
/usr/local/kde/bin/kaudioserver:
        -lmediatool.0 => /usr/local/kde/lib/libmediatool.so.0.7
(0x801a000)
        -lc.3 => /usr/lib/libc.so.3.0 (0x8020000)
        -lkdeui.0 => /usr/local/kde/lib/libkdeui.so.0.10 (0x808a000)
        -lkdecore.0 => /usr/local/kde/lib/libkdecore.so.0.11 (0x80e9000)
        -lqt.1 => /usr/local/qt/lib/libqt.so.1.31 (0x8126000)
        -lX11.6 => /usr/X11R6/lib/libX11.so.6.1 (0x820b000)
        -lXext.6 => /usr/X11R6/lib/libXext.so.6.1 (0x82a1000)
        -lg++.4 => /usr/lib/libg++.so.4.0 (0x82aa000)
        -lstdc++.2 => /usr/lib/libstdc++.so.2.0 (0x82e6000)
        -lm.2 => /usr/lib/libm.so.2.0 (0x831c000)

    Don't know what this could be caused by.


	Hope I help the KDE project by this bug-report.

		Should you need any further info about my system or how
are some other libraries compiled, feel free to email me.

			Vladimir Mencl
			vlada at freebsd.cz
 





More information about the Users-l mailing list