Opened 12 years ago

Closed 12 years ago

#5226 closed defect (invalid)

Make error: undefined reference to `MythUIType::GetPosition() const'

Reported by: anonymous Owned by: Isaac Richards
Priority: minor Milestone: 0.22
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Procedure: new checkout of trunk 17085. GCC 4.2/QT 4.3.4 (also occurs with my normal svn version but re-checked-out in case of any file corruption)

g++  -o mythfrontend version.o main.o manualbox.o playbackbox.o viewscheduled.o globalsettings.o manualschedule.o programrecpriority.o channelrecpriority.o statusbox.o networkcontrol.o mediarenderer.o mythfexml.o custompriority.o mythappearance.o moc_manualbox.o moc_playbackbox.o moc_viewscheduled.o moc_globalsettings.o moc_manualschedule.o moc_programrecpriority.o moc_channelrecpriority.o moc_statusbox.o moc_networkcontrol.o moc_custompriority.o moc_mythappearance.o    -L/usr/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia -lmythtv-0.22 -lmythavformat-0.22 -lmythavutil-0.22 -lmythavcodec-0.22 -lmythfreemheg-0.22 -lmythupnp-0.22 -lmythlivemedia-0.22 -lmyth-0.22 -lmythui-0.22 -lfreetype -lz -lmp3lame -lasound -L/usr/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -L/usr/lib -ldirectfb -lfusion -ldirect -lpthread -L/usr/X11R6/lib -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext -lXxf86vm -lXrandr -lXvMCW -lXvMC -lGL -lGLU -lpthread -lGLU -lGL -lQt3Support -lQtSql -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore
mythappearance.o: In function `MythAppearance::keyPressEvent(QKeyEvent*)':
mythappearance.cpp:(.text+0x2922): undefined reference to `MythScreenType::keyPressEvent(QKeyEvent*)'
moc_mythappearance.o:(.rodata._ZTV14MythAppearance[vtable for MythAppearance]+0x44): undefined reference to `MythUIType::GetPosition() const'
collect2: ld returned 1 exit status
make[2]: *** [mythfrontend] Error 1
make[2]: Leaving directory `/home/cliche/myth-src/trunk/mythtv/programs/mythfrontend'
make[1]: *** [sub-mythfrontend-make_default] Error 2
make[1]: Leaving directory `/home/cliche/myth-src/trunk/mythtv/programs'
make: *** [sub-programs-make_default-ordered] Error 2
}}

Change History (6)

comment:1 Changed 12 years ago by anonymous

I reverted to 17043 due to the change in mythappearance in 17044 - the error's slightly different now but still in the same place.

g++  -o mythfrontend version.o main.o manualbox.o playbackbox.o viewscheduled.o globalsettings.o manualschedule.o programrecpriority.o channelrecpriority.o statusbox.o networkcontrol.o mediarenderer.o mythfexml.o custompriority.o mythappearance.o moc_manualbox.o moc_playbackbox.o moc_viewscheduled.o moc_globalsettings.o moc_manualschedule.o moc_programrecpriority.o moc_channelrecpriority.o moc_statusbox.o moc_networkcontrol.o moc_custompriority.o moc_mythappearance.o    -L/usr/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia -lmythtv-0.22 -lmythavformat-0.22 -lmythavutil-0.22 -lmythavcodec-0.22 -lmythfreemheg-0.22 -lmythupnp-0.22 -lmythlivemedia-0.22 -lmyth-0.22 -lmythui-0.22 -lfreetype -lz -lmp3lame -lasound -L/usr/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -L/usr/lib -ldirectfb -lfusion -ldirect -lpthread -L/usr/X11R6/lib -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext -lXxf86vm -lXrandr -lXvMCW -lXvMC -lGL -lGLU -lpthread -lGLU -lGL -lQt3Support -lQtSql -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore
mythappearance.o: In function `MythAppearance::keyPressEvent(QKeyEvent*)':
mythappearance.cpp:(.text+0x2aa8): undefined reference to `MythScreenStack::PopScreen(bool, bool)'
moc_mythappearance.o:(.rodata._ZTV14MythAppearance[vtable for MythAppearance]+0x44): undefined reference to `MythUIType::GetPosition() const'
collect2: ld returned 1 exit status
make[2]: *** [mythfrontend] Error 1
make[2]: Leaving directory `/home/cliche/myth-src/trunk/mythtv/programs/mythfrontend'
make[1]: *** [sub-mythfrontend-make_default] Error 2
make[1]: Leaving directory `/home/cliche/myth-src/trunk/mythtv/programs'
make: *** [sub-programs-make_default-ordered] Error 2

comment:2 Changed 12 years ago by stuartm

Milestone: unknown0.22

Try a "make distclean" and "ccache -C".

comment:3 Changed 12 years ago by anonymous

The error was on a new checkout, and I don't have ccache installed. However, I've done both the above (after installing ccache) and the error still occurs.

rev: 17096

ccache g++  -o mythfrontend version.o main.o manualbox.o playbackbox.o viewscheduled.o globalsettings.o manualschedule.o programrecpriority.o channelrecpriority.o statusbox.o networkcontrol.o mediarenderer.o mythfexml.o custompriority.o mythappearance.o moc_manualbox.o moc_playbackbox.o moc_viewscheduled.o moc_globalsettings.o moc_manualschedule.o moc_programrecpriority.o moc_channelrecpriority.o moc_statusbox.o moc_networkcontrol.o moc_custompriority.o moc_mythappearance.o    -L/usr/lib -L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavutil -L../../libs/libavcodec -L../../libs/libavformat -L../../libs/libmythfreemheg -L../../libs/libmythui -L../../libs/libmythupnp -L../../libs/libmythlivemedia -lmythtv-0.22 -lmythavformat-0.22 -lmythavutil-0.22 -lmythavcodec-0.22 -lmythfreemheg-0.22 -lmythupnp-0.22 -lmythlivemedia-0.22 -lmyth-0.22 -lmythui-0.22 -lfreetype -lz -lmp3lame -lasound -L/usr/lib -ldl -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lrt -lglib-2.0 -L/usr/lib -ldirectfb -lfusion -ldirect -lpthread -L/usr/X11R6/lib -L/usr/X11R6/lib -lXinerama -lXv -lX11 -lXext -lXxf86vm -lXrandr -lXvMCW -lXvMC -lGL -lGLU -lpthread -lGLU -lGL -lQt3Support -lQtSql -lQtXml -lQtOpenGL -lQtGui -lQtNetwork -lQtCore
mythappearance.o: In function `MythAppearance::keyPressEvent(QKeyEvent*)':
mythappearance.cpp:(.text+0x2922): undefined reference to `MythScreenType::keyPressEvent(QKeyEvent*)'
moc_mythappearance.o:(.rodata._ZTV14MythAppearance[vtable for MythAppearance]+0x44): undefined reference to `MythUIType::GetPosition() const'
collect2: ld returned 1 exit status
make[2]: *** [mythfrontend] Error 1
make[2]: Leaving directory `/home/cliche/myth-src/trunk/mythtv/programs/mythfrontend'
make[1]: *** [sub-mythfrontend-make_default] Error 2
make[1]: Leaving directory `/home/cliche/myth-src/trunk/mythtv/programs'
make: *** [sub-programs-make_default-ordered] Error 2

comment:4 Changed 12 years ago by Anduin Withers

You probably have an old libmythui in /usr/lib.

comment:5 Changed 12 years ago by anonymous

You're exactly right, thanks...

In which case is it worth changing the order of libraries so that the recently-compiled versions are linked against rather than the previously-installed versions?

I assume it's just a matter of changing the configure script (though I don't know much about this) - I'll try to add a patch to this ticket.

comment:6 Changed 12 years ago by Anduin Withers

Resolution: invalid
Status: newclosed

Yes, see #5177

Note: See TracTickets for help on using tickets.