[issue44] pinentry: compiling pinentry-qt fails with multiple qt
installations
Bernhard Herzog
aegypten-issues at intevation.de
Mon Jan 19 17:08:17 CET 2004
New submission from Bernhard Herzog <bh at intevation.de>:
Compiling pinentry-qt fails for me with a linker error because it linking picks
up the wrong library.
There are at least two qt installations on the system. One in a directory
searched by default by ld and another in a non-standard directory. The one in
the non-standard directory is the one I need to link against.
The problem lies in configure. Configure correctly identifies the location and
flags for my non-standard installation:
checking for Qt... libraries /usr/local/aegypten//lib, headers
/usr/local/aegypten//include using -mt
It then checks whether qt can be used without flags:
checking if Qt compiles without flags... yes
This test is successful because there's a qt installation in a standard place,
but of course it's not the one I need to link against.
When linking pinentry-qt it doesn't include the right -L flag and I get linker
errors. E.g.:
g++ -DQT_THREAD_SUPPORT -I/usr/X11R6/include -D_REENTRANT -g -O2 -o
pinentry-qt -L/usr/X11R6/lib secqstring.o secqinternal.o secqlineedit.o
pinentrydialog.o main.o secqlineedit.moc.o pinentrydialog.moc.o -lqt-mt -lSM
-lICE -lXext -lX11 -lpthread ../pinentry/libpinentry-curses.a -lncurses
../pinentry/libpinentry.a ../assuan/libassuan.a ../secmem/libsecmem.a
secqlineedit.o: In function `SecQLineEditPrivate::~SecQLineEditPrivate(void)':
/local-vol1/projects/kde3.2-aegypten/qt-x11-free-3.2.3/include/qvaluevector.h(.text+0x11b):
undefined reference to `QTextLayout::QTextLayout(void)'
I was able to work around this problem by hacking configure so that the test
whether qt needs flags fails.
----------
assignedto: werner
messages: 148
nosy: bh, werner
priority: bug
status: unread
title: pinentry: compiling pinentry-qt fails with multiple qt installations
topic: pinentry
______________________________________________________
Aegypten issue tracker <aegypten-issues at intevation.de>
<https://intevation.de/roundup/aegypten/issue44>
______________________________________________________
More information about the Gpa-dev
mailing list