Hi, László Böszörményi (GCS) <g...@debian.org> writes:
> > The package fails to build. First(?), Qt doesn't get found: > > configure:17847: g++ -c -g -O2 -fstack-protector-strong -Wformat > > -Werror=format-security -D_REENTRANT -Wdate-time -D_FORTIFY_SOURCE=2 > > conftest.cpp >&5 > > conftest.cpp:30:57: fatal error: QtCore/qconfig.h: No such file or directory > > # include <QtCore/qconfig.h> // QT_REDUCE_RELOCATIONS > > > > .... then other things go wrong: > > > > configure:17954: g++ -c -g -O2 -fstack-protector-strong -Wformat > > -Werror=format-security -D_REENTRANT > > -I/usr/include/x86_64-linux-gnu/qt5/QtCore > > -I/usr/include/x86_64-linux-gnu/qt5 -Wdate-time -D_FORTIFY_SOURCE=2 > > conftest.cpp >&5 > > In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qchar.h:37:0, > > from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:37, > > from /usr/include/x86_64-linux-gnu/qt5/QtCore/QString:1, > > from conftest.cpp:36: > > /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:1052:4: error: #error > > "You must build your code with position independent code if Qt was built > > with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not > > enough)." > Yes, there's an ongoing Qt transition[1], its package version > recently uploaded to Sid[2]. > For the first look it seems the headers went a directory deeper: > QtCore/qconfig.h to qt5/QtCore/qconfig.h . libodb-qt's configure should have figured out that it needs to add -I/usr/include/.../qt5. It already does that for qt4. If you look at m4/libqt.m4, it has a battery of tests to figure out where Qt is on various platforms. It seems either (a) one of these tests doesn't work anymore (e.g., I would expect it to find Qt5 via pkg-config; maybe the library name has changed yet again?) or (b) we need a new test. > Then -fPIC should be specified Yes, that's Qt's "brain-death" and I am not sure it would be right for us to try and add that flag auto-magically (and only for Qt5). At the moment, I think it is right to make the user specify it manually (and curse Qt one more time ;-)). I've added a note to the INSTALL file. Boris -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org