Hi,

On Tue, Jun 30, 2015 at 10:13 PM, Chris West (Faux)
<solo-debianb...@goeswhere.com> wrote:
> Source: libodb-qt
> Version: 2.4.0-1
> Severity: serious
> Tags: sid
> Justification: fails to build from source
> User: reproducible-bui...@lists.alioth.debian.org
> Usertags: ftbfs
>
> 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 .
Then -fPIC should be specified, so this works:
g++ -fPIC -I/usr/include/x86_64-linux-gnu/qt5/ conftest.cpp -lQt5Core

Regards,
Laszlo/GCS
[1] https://release.debian.org/transitions/html/qtbase-abi-5-4-2.html
[2] 
https://packages.qa.debian.org/q/qtbase-opensource-src/news/20150623T033622Z.html


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to