Bug 315407 - Compile error: "/usr/include/QtGStreamer/QGlib/refpointer.h:359: error: invalid use of incomplete type 'struct Tpl::TextEvent'"
Summary: Compile error: "/usr/include/QtGStreamer/QGlib/refpointer.h:359: error: inval...
Status: RESOLVED NOT A BUG
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: text-ui (show other bugs)
Version: 0.5.3
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-18 19:19 UTC by Martin Walch
Modified: 2013-03-11 13:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Walch 2013-02-18 19:19:36 UTC
Compiling fails with gcc 4.4.7. I am not sure if this comes from text-ui or from QtGStreamer:

In file included from /usr/include/QtGStreamer/QGlib/object.h:23,
                 from /usr/include/QtGStreamer/QGlib/Object:1,
                 from /usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/log-manager.h:27,
                 from /usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/LogManager:8,
                 from /home/neo/ktp-text-ui-0.5.3/lib/logmanager.h:26,
                 from /home/neo/ktp-text-ui-0.5.3/lib/chat-widget.cpp:28:
/usr/include/QtGStreamer/QGlib/refpointer.h: In instantiation of 'QGlib::RefPointer<Tpl::TextEvent>':
/home/neo/ktp-text-ui-0.5.3/lib/chat-widget.cpp:682:   instantiated from here
/usr/include/QtGStreamer/QGlib/refpointer.h:359: error: invalid use of incomplete type 'struct Tpl::TextEvent'
/usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/global.h:62: error: forward declaration of 'struct Tpl::TextEvent'
/usr/include/QtGStreamer/QGlib/refpointer.h:326: error: invalid use of incomplete type 'struct Tpl::TextEvent'
/usr/include/telepathy-logger-0.2/TelepathyLoggerQt4/global.h:62: error: forward declaration of 'struct Tpl::TextEvent'


Reproducible: Always




gcc (Gentoo 4.4.7 p1.1, pie-0.4.5) 4.4.7
Comment 1 Martin Klapetek 2013-02-19 08:47:00 UTC
Do you have telepathy-logger-qt-0.5.3 installed?
Comment 2 Martin Walch 2013-02-19 10:25:01 UTC
Yes, I have tried several versions of ktp-text-ui and telepathy-logger-qt, including 0.5.3 of both. Line numbers in the error message may vary slightly, but the error is always the same.

I should have mentioned in the first place: it works all fine with gcc 4.6.3.
Comment 3 George Kiagiadakis 2013-02-19 10:35:25 UTC
This shouldn't be happening, tbh, but you shouldn't be using such an old compiler either, as QtGLib will fail at runtime -> http://cgit.freedesktop.org/gstreamer/qt-gstreamer/tree/README#n43
Comment 4 Martin Walch 2013-02-19 11:01:25 UTC
Thank you for the link. Is it sure that QtGLib is likely to fail at runtime when using gcc 4.4? Shouldn't cmake then fail when encountering <=gcc-4.5?
Comment 5 George Kiagiadakis 2013-02-19 11:13:05 UTC
Yes, it is sure that it will fail if you use the libstdc++ provided by gcc 4.4. I haven't done any strict cmake checks because it is only a runtime requirement. You should be able to compile with gcc 4.4 and run the executable with libstdc++ 4.6 just fine.
Comment 6 David Edmundson 2013-03-11 13:16:16 UTC
George's answer seems valid, closing.