Ticket #319 (closed bug: invalid)

Opened 10 years ago

Last modified 10 years ago

compile error: support/dbus/controlclient.h:37:56: error: expected class-name before ‘,’ token

Reported by: bluesnik Assigned to:
Priority: major Milestone:
Component: generic/dbus Version: FFADO SVN (trunk)
Keywords: controlclient.h Cc:
The device the bug applies to: dbus

Description

compiling svn-Trunk on opensuse kernel 2.6.37 KDE 4.5.5 gives an error:

g++ -o support/dbus/controlclient.o -c -O2 -m64 -fPIC -mmmx -m3dnow -msse -mfpmath=sse -msse2 -fomit-frame-pointer -ffast-math -funroll-loops -pthread -DNDEBUG -DDBUS_HAS_THREADS_INIT_DEFAULT -DDBUS_API_SUBJECT_TO_CHANGE -I. -Isrc -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/dbus-c++-1 -I/usr/include/libxml++-2.6 -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include support/dbus/controlclient.cpp
In file included from support/dbus/controlclient.cpp:24:0:
support/dbus/controlclient.h:37:56: error: expected class-name before ‘,’ token
scons: *** [support/dbus/controlclient.o] Error 1
scons: building terminated because of errors.

I can't see why ???

I've checked out actual svn-Trunk, cd to the target dir and omitted

scons PREFIX=/usr

as user. There where two warnings during compilation the whole package:

g++ -o src/bebob/focusrite/focusrite_saffirepro.os -c -O2 -m64 -fPIC -mmmx -m3dnow -msse -mfpmath=sse -msse2 -fomit-frame-pointer -ffast-math -funroll-loops -pthread -fPIC -DNDEBUG -DENABLE_BEBOB -DENABLE_FIREWORKS -DENABLE_OXFORD -DENABLE_MOTU -DENABLE_DICE -DENABLE_GENERICAVC -I. -Isrc -I/usr/include/libxml++-2.6 -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include src/bebob/focusrite/focusrite_saffirepro.cpp
src/bebob/focusrite/focusrite_saffirepro.cpp: In member function ‘virtual std::string BeBoB::Focusrite::SaffireProDeviceStandaloneEnum::getEnumLabel(int)’:
src/bebob/focusrite/focusrite_saffirepro.cpp:1163:16: warning: converting ‘false’ to pointer type for argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]’

and

g++ -o src/libutil/PosixThread.os -c -O2 -m64 -fPIC -mmmx -m3dnow -msse -mfpmath=sse -msse2 -fomit-frame-pointer -ffast-math -funroll-loops -pthread -fPIC -DNDEBUG -DENABLE_BEBOB -DENABLE_FIREWORKS -DENABLE_OXFORD -DENABLE_MOTU -DENABLE_DICE -DENABLE_GENERICAVC -I. -Isrc -I/usr/include/libxml++-2.6 -I/usr/lib64/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include src/libutil/PosixThread.cpp
src/libutil/PosixThread.cpp: In member function ‘virtual int Util::PosixThread::Stop()’:
src/libutil/PosixThread.cpp:199:19: warning: converting to non-pointer type ‘pthread_t’ from NULL

I've no idea, where to edit something, because it looks like a side effect.

Attachments

ffado-diag.log (2.3 kB) - added by bluesnik on 01/15/11 12:03:52.
ffado-diag-static.log (1.9 kB) - added by bluesnik on 01/15/11 12:05:21.

Change History

01/15/11 12:03:52 changed by bluesnik

  • attachment ffado-diag.log added.

01/15/11 12:05:21 changed by bluesnik

  • attachment ffado-diag-static.log added.

01/16/11 09:15:36 changed by adi

Looks like a mismatch between your xml2cpp and the dbus installation. Did you copy over the external/ directory from 2.0? (clearly not recommended)

If so, you need to revert a few datatypes, see r1888 and ticket #290 what we've done to controlclient.h. Anyway, the proper solution is to find xml2cpp in opensuse or file a bug report for its inclusion. (given my assumption with the 2.0 branch holds true)

HTH

01/16/11 15:24:09 changed by arnonym

  • status changed from new to closed.
  • resolution set to invalid.

resolved it via bluesnik via irc...

If you encounter the same problem, do "rm support/*dbus* .scons* -R" and rebuilt ffado.