This doesn't fix the build problems with Gentoo I'm afraid. /usr/X11R6/lib is still appearing before -L../../libs/libmythui in the linker options (seen on rev 7185).
Can someone post their svn .ebuild???? of course the simple work around is rm /usr/X11R6/lib/libmythui* before building... 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+0xd45): 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 > #265: SVN HEAD mythtv has Undefined Reference (Gentoo brokenness) > -------------------------+-------------------------------------------------- > Reporter: anonymous | Owner: ijr > Type: enhancement | Status: closed > Priority: minor | Milestone: > Component: mythtv | Version: head > Severity: low | Resolution: fixed > Cc: | > -------------------------+-------------------------------------------------- > Changes (by danielk): > > * resolution: => fixed > * status: reopened => closed > > Comment: > > (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. > > -- > Ticket URL: <http://cvs.mythtv.org/trac/ticket/265> > MythTV <http://www.mythtv.org/> > MythTV_______________________________________________ > mythtv-commits mailing list > [email protected] > http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-commits > _______________________________________________ mythtv-dev mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
