Wireshark-bugs: [Wireshark-bugs] [Bug 11643] build error on Debian testing: Couldn't compile Qt

Date: Wed, 28 Oct 2015 21:35:31 +0000

Comment # 4 on bug 11643 from
This still happens with current master, but I haven't seen any change that
looks like it would fix such a problem. The commit you linked is integrated in
my version.

My problem looks very similar to this report:
https://www.wireshark.org/lists/wireshark-bugs/201505/msg00563.html

Here is the output of CMakeError.log:

Performing C++ SOURCE FILE Test WORKS_WITHOUT_FPIC failed with the following
output:
Change Dir: /home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_a1259/fast"
/usr/bin/make -f CMakeFiles/cmTC_a1259.dir/build.make
CMakeFiles/cmTC_a1259.dir/build
make[1]: Entering directory
'/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_a1259.dir/src.cxx.o
/usr/bin/c++    -Wall -W -Wextra -Wendif-labels -Wpointer-arith -Warray-bounds
-Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks
-Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
-Wno-overlength-strings -Wwrite-strings -Wno-long-long -fexcess-precision=fast 
-DWORKS_WITHOUT_FPIC -fPIE -I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64    -o
CMakeFiles/cmTC_a1259.dir/src.cxx.o -c
/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp/src.cxx
In file included from
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:37:0,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:41,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:40,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from
/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp/src.cxx:1:
/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)."
 #  error "You must build your code with position independent code if Qt was
built with -reduce-relocations. "\
    ^
CMakeFiles/cmTC_a1259.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_a1259.dir/src.cxx.o' failed
make[1]: Leaving directory
'/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTC_a1259.dir/src.cxx.o] Error 1
Makefile:126: recipe for target 'cmTC_a1259/fast' failed
make: *** [cmTC_a1259/fast] Error 2

Source file was:
#include <QtCore>
              int main() {}
Performing C++ SOURCE FILE Test WORKS_WITH_FPIC failed with the following
output:
Change Dir: /home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_50a9d/fast"
/usr/bin/make -f CMakeFiles/cmTC_50a9d.dir/build.make
CMakeFiles/cmTC_50a9d.dir/build
make[1]: Entering directory
'/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_50a9d.dir/src.cxx.o
/usr/bin/c++    -Wall -W -Wextra -Wendif-labels -Wpointer-arith -Warray-bounds
-Wformat-security -fwrapv -fno-strict-overflow -fno-delete-null-pointer-checks
-Wvla -Waddress -Wattributes -Wdiv-by-zero -Wignored-qualifiers -Wpragmas
-Wno-overlength-strings -Wwrite-strings -Wno-long-long -fexcess-precision=fast 
-DWORKS_WITH_FPIC -fPIC -fPIE -I/usr/include/x86_64-linux-gnu/qt5
-I/usr/include/x86_64-linux-gnu/qt5/QtCore
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64    -o
CMakeFiles/cmTC_50a9d.dir/src.cxx.o -c
/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp/src.cxx
In file included from
/usr/include/x86_64-linux-gnu/qt5/QtCore/qnamespace.h:37:0,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs.h:41,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:40,
                 from
/usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:37,
                 from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:4,
                 from
/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp/src.cxx:1:
/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)."
 #  error "You must build your code with position independent code if Qt was
built with -reduce-relocations. "\
    ^
CMakeFiles/cmTC_50a9d.dir/build.make:65: recipe for target
'CMakeFiles/cmTC_50a9d.dir/src.cxx.o' failed
make[1]: Leaving directory
'/home/hauke/master/wireshark/build/CMakeFiles/CMakeTmp'
make[1]: *** [CMakeFiles/cmTC_50a9d.dir/src.cxx.o] Error 1
Makefile:126: recipe for target 'cmTC_50a9d/fast' failed
make: *** [cmTC_50a9d/fast] Error 2

Source file was:
#include <QtCore>
                  int main() {}


You are receiving this mail because:
  • You are watching all bug changes.