[gnome-bluetooth] compiling libbtctl under redhat 9

Raphael Clifford raphael at clifford.net
Sun Sep 12 19:52:57 BST 2004


Hi,

I get a fatal compile error when trying to compile libbtctl-0.4.1 on 
redhat 9.


Configure appears to be fine but "make" finishes thus:

[...]
make[3]: Entering directory `/home/raph/libbtctl-0.4.1/src'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  
-g -I../intl -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   
-INONE/include -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include   -I/usr/include/python2.2 
-I/usr/local/include -DDATA_DIR="\"/usr/local/share/libbtctl\"" 
-DGETTEXT_PACKAGE="\"libbtctl\""   -g -O2 -MT btctl-py.lo -MD -MP -MF 
".deps/btctl-py.Tpo" \
-c -o btctl-py.lo `test -f 'btctl-py.c' || echo './'`btctl-py.c; \
then mv -f ".deps/btctl-py.Tpo" ".deps/btctl-py.Plo"; \
else rm -f ".deps/btctl-py.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -I../intl -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include -INONE/include -I/usr/include/pygtk-2.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/python2.2 -I/usr/local/include 
-DDATA_DIR=\"/usr/local/share/libbtctl\" -DGETTEXT_PACKAGE=\"libbtctl\" 
-g -O2 -MT btctl-py.lo -MD -MP -MF .deps/btctl-py.Tpo -c btctl-py.c  
-fPIC -DPIC -o .libs/btctl-py.o
btctl.c:203: `freefunc' undeclared here (not in a function)
btctl.c:203: initializer element is not constant
btctl.c:203: (near initialization for `PyBtctlController_Type.tp_free')
btctl.c:203: parse error before numeric constant
btctl.c:318: `freefunc' undeclared here (not in a function)
btctl.c:318: initializer element is not constant
btctl.c:318: (near initialization for `PyBtctlObex_Type.tp_free')
btctl.c:318: parse error before numeric constant
btctl.c:442: `freefunc' undeclared here (not in a function)
btctl.c:442: initializer element is not constant
btctl.c:442: (near initialization for `PyBtctlObexClient_Type.tp_free')
btctl.c:442: parse error before numeric constant
make[3]: *** [btctl-py.lo] Error 1
make[3]: Leaving directory `/home/raph/libbtctl-0.4.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/raph/libbtctl-0.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/raph/libbtctl-0.4.1'
make: *** [all] Error 2


Any ideas?

bluez version 2.9
kernel 2.4.26

Raphael
P.S. Here is the end of ./configure
checking for gtk+-2.0... yes
checking GTK_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include 
-I/usr/include/freetype2 -I/usr/include/glib-2.0 
-I/usr/lib/glib-2.0/include 
checking GTK_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 
-latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 
checking for openobex-config... /usr/local/bin/openobex-config
checking for openobex - version >= 1.0.0... yes
checking for libbluetooth... yes
checking for SDP support... no
*** Could not run libsdp test program, checking why...
*** The test program failed to compile or link. See the file config.log 
for the
*** exact error that occurred. This usually means libsdp was incorrectly
*** installed or that you have moved libsdp since it was installed.
***
*** You can ignore this if your bluez-libs is version 2.7 or better.
*** If not, you won't be able to compile this code until you install
*** bluez-sdp.
configure: WARNING: no libsdp but continuing anyway
checking for pygtk-2.0... yes
checking BTCTLPY_CFLAGS... -I/usr/include/pygtk-2.0 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
checking BTCTLPY_LIBS... -lgobject-2.0 -lglib-2.0 
checking for python support... checking for a Python interpreter with 
version >= 2.2... python
checking for python... /usr/bin/python
checking for python version... 2.2
checking for python platform... linux2
checking for python script directory... 
${prefix}/lib/python2.2/site-packages
checking for python extension module directory... 
${exec_prefix}/lib/python2.2/site-packages
yes
checking for headers required to compile python extensions... found
checking for mono... Package mono was not found in the pkg-config search 
path.
Perhaps you should add the directory containing `mono.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mono' found
checking for gapi... Package gapi was not found in the pkg-config search 
path.
Perhaps you should add the directory containing `gapi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gapi' found
checking for Mono support... no
checking gtk-doc version >= 1.0... no
checking for more warnings... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libbtctl.pc
config.status: creating src/Makefile
config.status: creating po/Makefile.in
config.status: creating docs/Makefile
config.status: creating docs/reference/Makefile
config.status: creating mono/Makefile
config.status: creating mono/libbtctl/Makefile
config.status: creating mono/libbtctl/libbtctl-sharp.pc
config.status: creating mono/libbtctl/AssemblyInfo.cs
config.status: creating mono/sources/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
config.status: executing depfiles commands
config.status: executing default-2 commands







More information about the gnome-bluetooth mailing list