Wireshark-bugs: [Wireshark-bugs] [Bug 8775] Revision 49670 breaks build

Date: Mon, 22 Jul 2013 09:16:52 +0000

changed bug 8775

What Removed Added
Status RESOLVED UNCONFIRMED
CC   [email protected]
Resolution FIXED ---
Ever confirmed 1  

Comment # 3 on bug 8775 from
Hi,

I have the some type of error with my Ubuntu 13.04 when i'm build with CMake
(no problem with autotools)

svnversion.h has been updated.
[  0%] Built target svnversion
[  0%] Building C object wsutil/CMakeFiles/wsutil.dir/airpdcap_wep.c.o
gcc: error: unrecognized command line option ‘-Wshorten-64-to-32’
make[2]: *** [wsutil/CMakeFiles/wsutil.dir/airpdcap_wep.c.o] Erreur 1
make[1]: *** [wsutil/CMakeFiles/wsutil.dir/all] Erreur 2
make: *** [all] Erreur 2


gcc -v
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configuré avec: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.7.3-1ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin
--with-system-zlib --enable-objc-gc --with-cloog --enable-cloog-backend=ppl
--disable-cloog-version-check --disable-ppl-version-check --enable-multiarch
--disable-werror --with-arch-32=i686 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model posix
gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) 

Problem fixed with the small fix :
iff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f02367..08b1a67 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,7 +125,6 @@ set(WIRESHARK_C_FLAGS
     -Wpointer-arith
     -Warray-bounds
     -Wformat-security
-    -Wshorten-64-to-32
     -Wvla
     -Waddress
     -Warray-bounds
@@ -163,6 +162,7 @@ set(WIRESHARK_EXTRA_C_FLAGS
     -Wcast-align
     -Wcast-qual
     -Wformat-security
+    -Wshorten-64-to-32
     -Wredundant-decls
     # All the registration functions block these for now.
     -Wmissing-declarations

(but no sure if it's the correct fix....)


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