[Freeswitch-dev] Trunk: cc1: error: unrecognized command line option "-Wunused-but-set-variable"

Carsten Bock carsten at ng-voice.com
Mon Jul 2 22:21:37 MSD 2012


Hi,

i am not sure, if it was an update with latest debian or some changes
in latest trunk version of Freeswitch, but since today i am getting
the following error when trying to build debian packages:
I am using the latest, clean GIT-Version of Freeswitch.

[...]
Making all in src
make[8]: Entering directory `/root/dev/freeswitch/freeswitch/libs/spandsp/src'
make[9]: Entering directory `/root/dev/freeswitch/freeswitch/libs/spandsp/src'
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2
-I/root/dev/freeswitch/freeswitch/libs/tiff-3.8.2/libtiff -DNDEBUG
-msse2 -std=gnu99 -ffast-math -Wall -Wunused-variable
-Wunused-but-set-variable -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -fvisibility=hidden -DHAVE_VISIBILITY=1 -ggdb3
-O2 -c ademco_contactid.c  -fPIC -DPIC -o ademco_contactid.o
cc1: error: unrecognized command line option "-Wunused-but-set-variable"
make[9]: *** [ademco_contactid.lo] Fehler 1

My GCC-Version is 4.4.5 (Debian stable):
root at devel:~/dev# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.4.5-8' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.4 --enable-shared --enable-multiarch
--enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --libdir=/usr/lib
--enable-nls --enable-clocale=gnu --enable-libstdcxx-debug
--enable-objc-gc --with-arch-32=i586 --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.4.5 (Debian 4.4.5-8)

Any hints are welcome....

Thanks,
Carsten



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list