Opened 12 years ago

Closed 12 years ago

#7593 closed defect (fixed)

mythtv trunk fails to build on Debian 5 after commit 22849

Reported by: yianniv Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - General Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Last error:

ccache g++ -c -pipe -march=k8 -fomit-frame-pointer -O3 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -funit-at-a-time -DSTDC_CONSTANT_MACROS -I/usr/include/directfb -D_REENTRANT -I/usr/include/freetype2 -D_REENTRANT -DPIC -fPIC -DMMX -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUSING_DIRECTFB -DUSING_X11 -DUSING_XV -DUSING_XVMC -DUSING_XVMCW -DUSING_XVMC_VLD -DUSING_VDPAU -DUSING_OPENGL -DUSING_OPENGL_VSYNC -DUSING_OPENGL_VIDEO -DUSING_MHEG -DUSING_FRONTEND -DUSING_FFMPEG_THREADS -DUSING_ALSA -DUSING_OSS -DUSING_V4L -DUSING_LINUX_FIREWIRE -DUSING_FIREWIRE -DUSING_LIBAVC_5_3 -DUSING_IPTV -DUSING_IVTV -DUSING_HDPVR -DUSING_DVB -DUSING_BACKEND -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/qt4 -I/usr -I../../../../s2-liplianin/linux/include -I.. -I../.. -I. -I../libmyth -I../libavcodec -I../libavformat -I../libavutil -I../libswscale -I../libmythmpeg2 -I../libmythdb -I../libmythhdhomerun -I../libmythdvdnav -Idvbdev -Impeg -Iiptv -Ichannelscan -I../libmythlivemedia/BasicUsageEnvironment/include -I../libmythlivemedia/BasicUsageEnvironment -I../libmythlivemedia/groupsock/include -I../libmythlivemedia/groupsock -I../libmythlivemedia/liveMedia/include -I../libmythlivemedia/liveMedia -I../libmythlivemedia/UsageEnvironment/include -I../libmythlivemedia/UsageEnvironment -I../libmythdb -I../libmythui -I/usr/include -I/usr/X11R6/include -I. -I. -o osd.o osd.cpp osd.cpp: In member function ‘void OSD::SetText?(const QString&, InfoMap?&, int)’: osd.cpp:1721: error: invalid use of incomplete type ‘struct QHash<QString, QString>’ /usr/include/qt4/QtCore/qdatastream.h:61: error: declaration of ‘struct QHash<QString, QString>’ osd.cpp:1721: error: invalid use of incomplete type ‘struct QHash<QString, QString>’ /usr/include/qt4/QtCore/qdatastream.h:61: error: declaration of ‘struct QHash<QString, QString>’ osd.cpp:1723: error: no match for ‘operator[]’ in ‘infoMapchanid?’ osd.cpp:1726: error: no match for ‘operator[]’ in ‘infoMapiconpath?’ osd.cpp:1743: error: invalid use of incomplete type ‘struct QHash<QString, QString>’ /usr/include/qt4/QtCore/qdatastream.h:61: error: declaration of ‘struct QHash<QString, QString>’ osd.cpp:1743: error: no match for ‘operator[]’ in ‘infoMapiconpath?’ osd.cpp:1744: error: no match for ‘operator[]’ in ‘infoMapiconpath?’ osd.cpp:1752: error: invalid use of incomplete type ‘struct QHash<QString, QString>’ /usr/include/qt4/QtCore/qdatastream.h:61: error: declaration of ‘struct QHash<QString, QString>’ osd.cpp:1752: error: no match for ‘operator[]’ in ‘infoMapcoverartpath?’ osd.cpp:1753: error: no match for ‘operator[]’ in ‘infoMapcoverartpath?’ osd.cpp: In member function ‘void OSD::SetInfoText?(InfoMap?, int)’: osd.cpp:1763: error: ‘infoMap’ has incomplete type /usr/include/qt4/QtCore/qdatastream.h:61: error: declaration of ‘struct InfoMap?’ make[2]: * [osd.o] Error 1 make[2]: Leaving directory `/home/mythtv/mythtv/mythtv/libs/libmythtv' make[1]: * [sub-libmythtv-make_default] Error 2 make[1]: Leaving directory `/home/mythtv/mythtv/mythtv/libs' make: * [sub-libs-make_default-ordered] Error 2

Change History (2)

comment:1 Changed 12 years ago by yianniv

I think #7594 is the same or similar.

I forgot to include some info:

On the debian 5 that fails to compile 22849 and later commits, "mythfrontend --version" shows:

Please include all output in bug reports. MythTV Version : 22848 MythTV Branch : trunk Network Protocol : 50 Library API : 0.23.20091112-1 QT Version : 4.4.3 Options compiled in:

linux release using_oss using_alsa using_jack using_backend using_directfb using_dvb using_firewire using_frontend using_hdpvr using_iptv using_ivtv using_libfftw3 using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_libavc_5_3 using_live using_mheg

On an opensuse 11.2 that builds correctly after 22849, it shows:

Please include all output in bug reports. MythTV Version : 22850 MythTV Branch : trunk Network Protocol : 50 Library API : 0.23.20091116-1 QT Version : 4.5.3 Options compiled in:

linux release using_oss using_alsa using_jack using_backend using_directfb using_dvb using_frontend using_hdpvr using_iptv using_ivtv using_libfftw3 using_lirc using_mheg using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw using_bindings_perl using_bindings_python using_opengl using_vdpau using_ffmpeg_threads using_live using_mheg

They have different Qt versions.

comment:2 Changed 12 years ago by danielk

Resolution: fixed
Status: newclosed

(In [22855]) Fixes #7593. Add missing include in osd.cpp

Note: See TracTickets for help on using tickets.