You are not logged in.

#1 2008-07-31 06:28:54

INCSlayer
Member
From: Sweden
Registered: 2007-09-06
Posts: 296
Website

kdebluetooth [Solved]

i am using kde3 and i just got a bluetooth mouse so since we have switched to kde4.1 i am trying to build the old kdebluetooth package and i fails with this error (i have included the lines just before the error incase they contain anything usefull):

/bin/sh ../../libtool --silent --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/opt/kde/include -I/opt/qt/include -I.  -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include       -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -march=i686 -mtune=generic -O2 -pipe -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 sdpdevice.lo -MD -MP -MF .deps/sdpdevice.Tpo -c -o sdpdevice.lo sdpdevice.cpp
sdpdevice.cpp: In member function 'void KBluetooth::SDP::Device::updateServices()':
sdpdevice.cpp:114: error: 'free' was not declared in this scope
make[3]: *** [sdpdevice.lo] Error 1
make[3]: Leaving directory `/home/jesper/Downloads/kdebluetooth/src/kdebluetooth-1.0_beta8/kdebluetooth/libkbluetooth'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jesper/Downloads/kdebluetooth/src/kdebluetooth-1.0_beta8/kdebluetooth'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jesper/Downloads/kdebluetooth/src/kdebluetooth-1.0_beta8'
make: *** [all] Error 2
==> ERROR: Build Failed.
    Aborting...

any help would be useful

Last edited by INCSlayer (2008-08-02 06:57:03)


dovie andi se tovya sagain

Offline

#2 2008-08-01 21:52:51

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: kdebluetooth [Solved]

Do have the same error here. It is because of the update of gcc. I'm on it as well, maybe I'll make it. If not, I'll come back here. Is that ok?

Last edited by Army (2008-08-01 21:53:34)

Offline

#3 2008-08-02 02:47:40

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: kdebluetooth [Solved]

Yes. it's because of gcc 4.3. You'll need to patch the sources. Add:
#include <cstdlib>
to sdpdevice.cpp

Offline

#4 2008-08-02 02:49:00

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: kdebluetooth [Solved]

Offline

#5 2008-08-02 06:56:50

INCSlayer
Member
From: Sweden
Registered: 2007-09-06
Posts: 296
Website

Re: kdebluetooth [Solved]

with the patch it worked thanks snowman


dovie andi se tovya sagain

Offline

#6 2008-08-02 07:39:00

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: kdebluetooth [Solved]

Oh thank you very very much snowman!!! I really forgot to search for a patch, wanted to use this as a linux training for myself big_smile But finally the package made it into AUR => http://aur.archlinux.org/packages.php?ID=18834

Offline

Board footer

Powered by FluxBB