Opened 14 years ago

Closed 14 years ago

#265 closed enhancement (fixed)

SVN HEAD mythtv has Undefined Reference (Gentoo brokenness)

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

Description

Sync'd to SVN head today and got this error after a make distclean. configure output below

make[2]: Entering directory `/usr/local/src/mythtv/mythtv/programs/mythuitest'

ccache g++ -c -pipe -march=pentiumpro -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT -DMMX -Di386 -DUSING_DBOX2 -DHAVE_DVDNAV -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../../libs/libmythui -I../../libs/libmyth -I../../../../../../include -I../../../../../../include -I/usr/qt/3/include -I../../../../../../include -I../../../../../../include -o moc_test1.o moc_test1.cpp ccache g++ -o mythuitest main.o test1.o btnlisttest.o moc_test1.o -L/usr/qt/3/lib -L/usr/X11R6/lib -L../../libs/libmyth -L../../libs/libmythui -lmythui-0.18 -lmyth-0.18 -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm -lpthread test1.o(.gnu.linkonce.r._ZTV11TestScreen1+0x6c): undefined reference to `MythUIType::GetArea?() const' test1.o(.gnu.linkonce.r._ZTV11TestScreen1+0x70): undefined reference to `MythUIType::GetDirtyArea?() const' btnlisttest.o(.text+0xfc5): In function `TestWindow::setupHList()': : undefined reference to `MythHorizListButton::MythHorizListButton?[in-charge](MythUIType*, char const*, QRect const&, bool, bool, unsigned)' btnlisttest.o(.gnu.linkonce.r._ZTV10TestWindow+0x6c): undefined reference to `MythUIType::GetArea?() const' btnlisttest.o(.gnu.linkonce.r._ZTV10TestWindow+0x70): undefined reference to `MythUIType::GetDirtyArea?() const' moc_test1.o(.gnu.linkonce.r._ZTV8TestMove+0x6c): undefined reference to `MythUIType::GetArea?() const' moc_test1.o(.gnu.linkonce.r._ZTV8TestMove+0x70): undefined reference to `MythUIType::GetDirtyArea?() const'

# Basic Settings Compile type release Compiler cache yes DistCC no Install prefix /usr CPU x86 (pentiumpro) Big Endian no MMX enabled yes Vector Builtins yes

# Input Support Joystick menu no lirc support yes Video4Linux sup. yes ivtv support yes FireWire? support no DVB support no usr/src/linux-2.6.11-gentoo-r6/include

# Sound Output Support OSS support yes ALSA support yes aRts support no JACK support no

# Video Output Support x11 support yes xrandr support yes xv support yes XvMC support yes XvMC VLD support no XvMC pro support no XvMC libs -lXvMCNVIDIA OpenGL vsync yes DirectFB no

# Misc Features DVD playback yes Frontend yes Backend yes

Attachments (2)

gentoo-more-brokenness.patch (778 bytes) - added by anonymous 14 years ago.
evenmoregentoobrokenness.patch (3.4 KB) - added by anonymous 14 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 14 years ago by anonymous

Priority: minorblocker

Glad to see I am not the only one. Last successful build Aug 24 synced from svn around 2100 EST. 0.19.20050712-1 Options compiled in:

linux release using_v4l using_oss using_alsa using_arts using_ivtv using_dbox2 using_lirc using_dvb using_dvb_eit using_x11 using_xv using_xrandr using_xvmc using_opengl_vsync using_frontend using_backend

Did not sync up again until today.

Build options

# Basic Settings
Compile type     release
Compiler cache   no
DistCC           no
Install prefix   /usr
CPU              x86 (Intel(R) Pentium(R) 4 CPU 3.40GHz)
Big Endian       no
MMX enabled      yes
Vector Builtins  yes

# Input Support
Joystick menu    no
lirc support     yes
Video4Linux sup. yes
ivtv support     yes
FireWire support no
DVB support      yes [/usr/src/linux-2.6.12/include]

# Sound Output Support
OSS support      yes
ALSA support     yes
aRts support     yes
JACK support     no

# Video Output Support
x11 support      yes
xrandr support   yes
xv support       yes
XvMC support     yes
XvMC VLD support no
XvMC pro support no
XvMC libs        -lXvMCNVIDIA
OpenGL vsync     yes
DirectFB         no

# Misc Features
DVD playback     no
Frontend         yes
Backend          yes

Build error

make[2]: Entering directory `/var/tmp/portage/mythtv-svn-0.18/work/mythtv/programs/mythuitest'
g++ -c -pipe -march=pentium4 -I/usr/kde/3.4/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT  -DMMX -Di386 -DUSING_DBOX2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../../libs/libmythui -I../../libs/libmyth -I/usr/include -I/usr/src/linux-2.6.12/include -I/usr/include -I/usr/qt/3/include -I/usr/include -I/usr/include -o main.o main.cpp
g++ -c -pipe -march=pentium4 -I/usr/kde/3.4/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT  -DMMX -Di386 -DUSING_DBOX2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../../libs/libmythui -I../../libs/libmyth -I/usr/include -I/usr/src/linux-2.6.12/include -I/usr/include -I/usr/qt/3/include -I/usr/include -I/usr/include -o test1.o test1.cpp
g++ -c -pipe -march=pentium4 -I/usr/kde/3.4/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT  -DMMX -Di386 -DUSING_DBOX2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../../libs/libmythui -I../../libs/libmyth -I/usr/include -I/usr/src/linux-2.6.12/include -I/usr/include -I/usr/qt/3/include -I/usr/include -I/usr/include -o btnlisttest.o btnlisttest.cpp
/usr/qt/3/bin/moc test1.h -o moc_test1.cpp
g++ -c -pipe -march=pentium4 -I/usr/kde/3.4/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -W -O3 -Wall -Wno-switch -fomit-frame-pointer -D_REENTRANT  -DMMX -Di386 -DUSING_DBOX2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../../libs/libmythui -I../../libs/libmyth -I/usr/include -I/usr/src/linux-2.6.12/include -I/usr/include -I/usr/qt/3/include -I/usr/include -I/usr/include -o moc_test1.o moc_test1.cpp
g++  -o mythuitest main.o test1.o btnlisttest.o moc_test1.o   -L/usr/qt/3/lib -L/usr/X11R6/lib -L../../libs/libmyth -L../../libs/libmythui -lmythui-0.18 -lmyth-0.18 -lqt-mt -lGLU -lGL -lXmu -lXext -lX11 -lm -lpthread
test1.o(.gnu.linkonce.r._ZTV11TestScreen1+0x6c): undefined reference to `MythUIType::GetArea() const'
test1.o(.gnu.linkonce.r._ZTV11TestScreen1+0x70): undefined reference to `MythUIType::GetDirtyArea() const'
btnlisttest.o(.text+0xfa8): In function `TestWindow::setupHList()':
: undefined reference to `MythHorizListButton::MythHorizListButton[in-charge](MythUIType*, char const*, QRect const&, bool, bool, unsigned)'
btnlisttest.o(.gnu.linkonce.r._ZTV10TestWindow+0x6c): undefined reference to `MythUIType::GetArea() const'
btnlisttest.o(.gnu.linkonce.r._ZTV10TestWindow+0x70): undefined reference to `MythUIType::GetDirtyArea() const'
moc_test1.o(.gnu.linkonce.r._ZTV8TestMove+0x6c): undefined reference to `MythUIType::GetArea() const'
moc_test1.o(.gnu.linkonce.r._ZTV8TestMove+0x70): undefined reference to `MythUIType::GetDirtyArea() const'
collect2: ld returned 1 exit status
make[2]: *** [mythuitest] Error 1
make[2]: Leaving directory `/var/tmp/portage/mythtv-svn-0.18/work/mythtv/programs/mythuitest'
make[1]: *** [sub-mythuitest] Error 2
make[1]: Leaving directory `/var/tmp/portage/mythtv-svn-0.18/work/mythtv/programs'
make: *** [sub-programs] Error 2

comment:2 Changed 14 years ago by Isaac Richards

Resolution: invalid
Status: newclosed

Do a distclean.

comment:3 Changed 14 years ago by anonymous

Resolution: invalid
Status: closedreopened

Distclean does not solve this. Both myself and the other reporter of this issue are running Gentoo. At this time it seems to be specific to this distro.

Changed 14 years ago by anonymous

comment:4 Changed 14 years ago by anonymous

Priority: blockerminor
Severity: mediumlow
Summary: SVN HEAD mythtv has Undefined ReferenceSVN HEAD mythtv has Undefined Reference (Gentoo brokenness)
Type: defectenhancement

Gentoo brokenness, partially.

-L/usr/qt/3/lib -L/usr/X11R6/lib -L../../libs/libmyth -L../../libs/libmythui

... In Gentoo, /usr/X11R6/lib is a symlink to /usr/lib, which includes libmyth. Since the -Ls are processed sequentially, and the newly built version is not installed yet, the old /usr/lib/libmyth* get linked.

Patch included.

comment:5 Changed 14 years ago by danielk

Resolution: fixed
Status: reopenedclosed

(In [7170]) Fixes #265.

Makes sure that we link MythTV programs our freshly compiled libs instead of ones previously installed on the system.

The ticket is about Gentoo ebuilds installing X11 libraries and MythTV libraries in the same directory, but this fix will help with any other whacky installs as well.

Changed 14 years ago by anonymous

comment:6 Changed 14 years ago by anonymous

Resolution: fixed
Status: closedreopened

comment:7 Changed 14 years ago by anonymous

Of course, the rest of the libraries required varying versions of this patch. Attached again.

comment:8 Changed 14 years ago by Isaac Richards

Resolution: fixed
Status: reopenedclosed

(In [7186]) Should fix #265 in a cleaner manner.

Note: See TracTickets for help on using tickets.