t-artistik / qtscriptgenerator

Automatically exported from code.google.com/p/qtscriptgenerator
0 stars 0 forks source link

failed to compile qtscript_MediaSource (phonon) on OpenSolaris #74

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Build FOSSqtscript-qt on OpenSolaris using SunStudio 12u1
   (http://techbase.kde.org/Projects/KDE_on_Solaris/OpenSolaris)

What is the expected output? What do you see instead?

This is a build issue and the error it spits is:
===
pkgbuild: CC -c -D_REENTRANT -DNDEBUG -D__EXTENSIONS__ -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 
-DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT -D_XOPEN_SOURCE=500 -D_XPG5 
-I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/kde4/include 
-xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 
-library=no%Cstd -library=Crun 
-features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplre
fstatic -instances=global -template=geninlinefuncs -s -xdebugformat=dwarf 
-xlang=c99 -xalias_level=compatible -xustr=ascii_utf16_ushort -Qoption ccfe 
-features=gcc -Qoption ccfe -features=zla -Qoption ccfe 
++boolflag:sunwcch=false -mt -R/opt/kde4/lib -library=no%Cstd -library=Crun 
-lstdcxx4 -g -mt -KPIC -DQT_PHONON_LIB -DQT_SCRIPT_LIB -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED -I/opt/kde4/share/mkspecs/solaris-cc -I. 
-I/opt/kde4/include/QtCore -I/opt/kde4/include/QtGui 
-I/opt/kde4/include/QtScript -I/opt/kde4/include/QtPhonon -I/opt/kde4/include 
-I. -I/opt/kde4/include/phonon -I/opt/kde4/include/phonon_compat -Idebug 
-I/usr/sfw/include -o debug/qtscript_MediaSource.o 
../../generated_cpp/com_trolltech_qt_phonon/qtscript_MediaSource.cpp
pkgbuild: 
"../../generated_cpp/com_trolltech_qt_phonon/qtscript_MediaSource.cpp", line 
77: Error: Multiple declaration for QMetaTypeId<QPair<QByteArray, QString>>.
pkgbuild: 
"../../generated_cpp/com_trolltech_qt_phonon/qtscript_MediaSource.cpp", line 
89: Error: Multiple declaration for QMetaTypeId<QList<QPair<QByteArray, 
QString>>>.
pkgbuild: 2 Error(s) detected.
pkgbuild: gmake[2]: *** [debug/qtscript_MediaSource.o] Error 2
===

What version of the product are you using? On what operating system?

0.1.0 on OpenSolaris build 134

Please provide any additional information below.

Looking where else QMetaTypeId is defined in the same dir:
[generated_cpp/com_trolltech_qt_phonon]$ grep QMetaTypeId * | grep QPair | grep 
QByteArray
qtscript_MediaSource.cpp:struct QMetaTypeId<  QPair<QByteArray,QString>  >  \
qtscript_MediaSource.cpp:struct QMetaTypeId<  QList<QPair<QByteArray,QString>  
>  >  \
qtscript_PlatformPlugin.cpp:struct QMetaTypeId<  QPair<QByteArray,QString>  >  \
qtscript_PlatformPlugin.cpp:struct QMetaTypeId<  
QList<QPair<QByteArray,QString>  >  >  \
qtscriptshell_PlatformPlugin.cpp:struct QMetaTypeId<  QPair<QByteArray,QString> 
 >  \
qtscriptshell_PlatformPlugin.cpp:struct QMetaTypeId<  
QList<QPair<QByteArray,QString>  >  >  \

Kent commented as follows:

Looks like the generator gets a bit confused by typedefs. I don't have a quick 
fix; you can apply the attached diff to have the generator skip the problematic 
functions for now.

The workaround (patch), the phonon include and generated 
qtscript_Mediasource.cpp are attached.

Original issue reported on code.google.com by jan.hna...@gmail.com on 27 Oct 2010 at 2:49

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by kentm...@gmail.com on 11 Nov 2010 at 9:34