Bug 245371

Summary: Fails to build libsmokeqtcore: generator produces invalid code
Product: [Unmaintained] bindings Reporter: Chris Burel <chrisburel>
Component: generalAssignee: kde-bindings
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Chris Burel 2010-07-21 23:31:19 UTC
Version:           unspecified (using Devel) 
OS:                OS X

smokegen is producing bad code on OS X.  It is getting types called "ExtensionOption" and "ExtensionReturn" when the correct types are "QAbstractFileEngine::ExtensionOption" and "QAbstractFileEngine::ExtensionReturn".  It is missing the namespace.

In file included from /Library/Frameworks/QtCore.framework/Headers/QtCore:21,
                 from /Users/cburel/kdebindings-4.4.92/smoke/qtcore/qtcore_includes.h:1,
                 from /Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:1:
/Library/Frameworks/QtCore.framework/Headers/qtextcodec.h:175: warning: 'QCoreXmlStreamWriter' is already a friend of 'QTextEncoder'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp: In function 'void* __smokeqtcore::cast(void*, short int, short int)':
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:12: error: 'ExtensionOption' was not declared in this scope
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:12: error: expected primary-expression before 'void'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:12: error: expected `)' before 'void'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:17: error: 'ExtensionReturn' was not declared in this scope
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:17: error: expected primary-expression before 'void'
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/smokedata.cpp:17: error: expected `)' before 'void'
make[2]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/smokedata.o] Error 1
make[1]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/all] Error 2
make: *** [all] Error 2


If I manually fix those 2 errors in smokedata.cpp, x_1.cpp then fails to build:
In file included from /Library/Frameworks/QtCore.framework/Headers/QtCore:21,
                 from /Users/cburel/kdebindings-4.4.92/smoke/qtcore/qtcore_includes.h:1,
                 from /Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:2:
/Library/Frameworks/QtCore.framework/Headers/qtextcodec.h:175: warning: 'QCoreXmlStreamWriter' is already a friend of 'QTextEncoder'
/Library/Frameworks/QtCore.framework/Headers/qobject.h: In copy constructor 'QAbstractEventDispatcher::QAbstractEventDispatcher(const QAbstractEventDispatcher&)':
/Library/Frameworks/QtCore.framework/Headers/qobject.h:309: error: 'QObject::QObject(const QObject&)' is private
/Library/Frameworks/QtCore.framework/Headers/qabstracteventdispatcher.h:59: error: within this context
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp: In constructor '__smokeqtcore::x_QAbstractEventDispatcher::x_QAbstractEventDispatcher(const QAbstractEventDispatcher&)':
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:577: note: synthesized method 'QAbstractEventDispatcher::QAbstractEventDispatcher(const QAbstractEventDispatcher&)' first required here
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h: In constructor '__smokeqtcore::x_QAbstractFileEngine::x_QAbstractFileEngine(const QAbstractFileEngine&)':
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h:200: error: 'QAbstractFileEngine::QAbstractFileEngine(const QAbstractFileEngine&)' is private
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:709: error: within this context
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h: In constructor '__smokeqtcore::x_QAbstractFileEngineIterator::x_QAbstractFileEngineIterator(const QAbstractFileEngineIterator&)':
/Library/Frameworks/QtCore.framework/Headers/qabstractfileengine.h:237: error: 'QAbstractFileEngineIterator::QAbstractFileEngineIterator(const QAbstractFileEngineIterator&)' is private
/Users/cburel/kdebindings-4.4.92/build/smoke/qtcore/x_1.cpp:917: error: within this context
make[2]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/x_1.o] Error 1
make[1]: *** [smoke/qtcore/CMakeFiles/smokeqtcore.dir/all] Error 2
make: *** [all] Error 2

Reproducible: Didn't try
Comment 1 Andrew Crouthamel 2018-11-05 03:12:10 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-17 05:03:56 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Justin Zobel 2022-12-19 00:13:36 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2023-01-03 05:27:04 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2023-01-18 05:12:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!