i am compiling scribus on hardened amd64 system and i get this error: /usr/include/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)." # error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\ i tried to add "append-flags -fPIC" to the ebuild and then it compiles fine so it needs just this statement probably along with some condition that turns it on only when needed.
It's not the first time scribus has such problems. I will come up with a patch and contribute it back upstream.
share/scribus/qml/\" -DDESKTOPDIR=\"/usr/share/applications/\" -DLIBDIR=\"/usr/lib64/scribus/\" -DPLUGINDIR=\"/usr/lib64/scribus/plugins/\" -MMD -MT scribus/third_party/rtf-qt/CMakeFiles/scribus_rtf_lib.dir/AbstractRtfOutput.cpp.o -MF scribus/third_party/rtf-qt/CMakeFiles/scribus_rtf_lib.dir/AbstractRtfOutput.cpp.o.d -o scribus/third_party/rtf-qt/CMakeFiles/scribus_rtf_lib.dir/AbstractRtfOutput.cpp.o -c /var/tmp/portage/app-office/scribus-9999/work/scribus-9999/scribus/third_party/rtf-qt/AbstractRtfOutput.cpp In file included from /usr/include/qt5/QtCore/qchar.h:37:0, from /usr/include/qt5/QtCore/qstring.h:37, from /usr/include/qt5/QtCore/qdatetime.h:37, from /usr/include/qt5/QtCore/QDateTime:1, from /var/tmp/portage/app-office/scribus-9999/work/scribus-9999/scribus/third_party/rtf-qt/AbstractRtfOutput.h:21, from /var/tmp/portage/app-office/scribus-9999/work/scribus-9999/scribus/third_party/rtf-qt/AbstractRtfOutput.cpp:18: /usr/include/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)." # error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\ ^ ninja: build stopped: subcommand failed.
commit 4a0809523c24b7d4baa4a9a7a1d565cf7c65b2af Author: Justin Lecher <jlec@gentoo.org> Date: Fri Oct 16 15:04:36 2015 +0200 app-office/scribus: Extend fPIC patch Scribus-Bug: http://bugs.scribus.net/view.php?id=13427 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=563228 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a0809523c24b7d4baa4a9a7a1d565cf7c65b2af