Re: [Dbus-cxx-users] compile problem
Status: Beta
Brought to you by:
rvinyard
From: Rick L. V. Jr. <rvi...@cs...> - 2010-06-24 14:50:57
|
Daren Scot Wilson wrote: > I'm trying to compile dbus-cxx but get a compile error. Configure ran > okay, at least I saw no errors, and it made a Makefile. > Using gcc 4.5.0, on 64-bit Arch Linux. AFIK, I have all dependencies > and tools, libs etc are reasonably up to date. My hunch is either I > need to feed ./configure some magic cookie, or there's some other dbus > binding installed with an interfering header file. > > > make all-am > make[3]: Entering directory `/usr/local/src/dbus-cxx-0.7.0/dbus-cxx' > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. > -I.. -I../. -I../. -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include > -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -g -O2 -MT > callmessage.lo -MD -MP -MF .deps/callmessage.Tpo -c -o callmessage.lo > callmessage.cpp > libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../. -I../. > -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include > -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -g -O2 -MT > callmessage.lo -MD -MP -MF .deps/callmessage.Tpo -c callmessage.cpp > -fPIC -DPIC -o .libs/callmessage.o > In file included from ../dbus-cxx/types.h:26:0, > from ../dbus-cxx/messageiterator.h:21, > from ../dbus-cxx/message.h:26, > from callmessage.h:19, > from callmessage.cpp:19: > ../dbus-cxx/signature.h:90:33: error: 'DBus::signature' declared as an > 'inline' variable > ../dbus-cxx/signature.h:90:33: error: 'uint8_t' was not declared in this > scope > ... > > > > Dozens of errors follow... It attempts to compile other files, and > every one gives errors. A typical one: > > ../dbus-cxx/messageiterator.h:224:16: error: expected type-specifier > before 'uint8_t' > Hmmm... not sure on this one. It looks like it's not pulling in the header that has uint8_t. That should be in stdint.h which came in with C99. You might check dbus-cxx-config.h and see if the stdint.h line is included. You might also try adding one of the following to types.h: #include <cstdint> or #include <stdint.h> If that works I'll add it to the next release. -- Rick |