trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: December 2013

Re: [trinity-devel] tqt FTBFS: something about TQAssistantClient

From: Slávek Banko <slavek.banko@...>
Date: Mon, 9 Dec 2013 23:01:49 +0100
On Sunday 08 of December 2013 02:19:04 Slávek Banko wrote:
> On Saturday 07 of December 2013 20:16:32 François Andriot wrote:
> > Le 07/12/2013 14:58, Fat-Zer a écrit :
> > > tqt FTBFS with next message:
> > >
> > > x86_64-pc-linux-gnu-g++ -luuid -fno-exceptions -Wl,-O1 -Wl,--as-needed
> > > -o ../../../bin/tqdesigner .obj/release-shared-mt/main.o -L/usr/lib64
> > > -L/var/tmp/portage/dev-qt/tqt-3.9999/work/tqt-3.9999/lib
> > > -L/usr/X11R6/lib64
> > > -L/var/tmp/portage/dev-qt/tqt-3.9999/work/tqt-3.9999/lib -L/usr/lib64
> > > -ltqtdesignercore -ltqui -ltqassistantclient -luuid -ltqt-mt -lmng
> > > -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXcursor -lXinerama -lXft
> > > -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread
> > > /var/tmp/portage/dev-qt/tqt-3.9999/work/tqt-3.9999/lib/libtqtdesignerco
> > >re .a(mainwindow.o): In function `MainWindow::MainWindow(bool, bool,
> > > TQString const&)': mainwindow.cpp:(.text+0x15bd5): undefined reference
> > > to `TQAssistantClient::TQAssistantClient(TQString const&, TQObject*,
> > > char const*)'
> > >
> > >
> > > Full Build log is in the attach.
> >
> > Hello,
> > If you have TQT3 already installed on the system you are compiling it,
> > try removing the installed version first, then build.
> > It solved the FTBFS for me some days ago.
> >
> > François
>
> I believe that this is a different case. I have a completely clean machine
> (base image for pbuilder). When I build tqt as standard deb package, is
> built successully. When I use the patch 1360 from bug report 1560, occurs
> FTBFS. Both cases are on the same clean machine.
>
> Slávek
>

I tested FTBFS that I observe when using the patch 1360 (tqt3: build as shared 
library instead of static library - bug 1560). In build log I see following:

.obj/release-shared-mt/main.o: In function `signalHandler':
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:80: undefined 
reference to `MainWindow::self'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:98: undefined 
reference to `MainWindow::self'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:99: undefined 
reference to `MainWindow::self'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:95: undefined 
reference to `MainWindow::self'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:95: undefined 
reference to `MainWindow::openFormWindow(TQString const&, bool, FormFile*)'
.obj/release-shared-mt/main.o: In function `main':
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:127: undefined 
reference to `DesignerApplication::DesignerApplication(int&, char**)'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:190: undefined 
reference to `qInitImages_tqtdesignercore()'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:193: undefined 
reference to `DesignerApplication::settingsKey()'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:199: undefined 
reference to `DesignerApplication::showSplash()'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:201: undefined 
reference to `MainWindow::MainWindow(bool, bool, TQString const&)'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:224: undefined 
reference to `MainWindow::fileOpen(TQString const&, TQString const&, TQString 
const&, bool)'
/root/tqt-x11-free-14.0.0-r182/tools/designer/app/main.cpp:167: undefined 
reference to `debugToStderr'

As I found out, the problem is caused due to -fvisibility=hidden. When I in 
tools/designer/designer/designer.pro to QMAKE_CXXFLAGS 
add -fvisibility=default, FTBFS is solved.

Any ideas on how this should be resolved correctly?

Slávek