Bug#362422: FTBFS with GCC 4.2: the address of 'hwparams' will always evaluate as 'true'

Martin Michlmayr tbm at cyrius.com
Thu Apr 13 11:38:11 UTC 2006


Package: linphone
Version: 1.3.3-1

Your package fails to build with GCC 4.2.  Version 4.2 has not been
released yet but I'm building with a snapshot in order to find errors
and give people an advance warning.  The bug below is in your package
and not because I'm using a snapshot of the compiler so please take a
look at it.  You can reproduce this with the gcc-snapshot package.


> Automatic build of linphone_1.3.3-1 on em64t by sbuild/amd64 1.112
...
> if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../oRTP/include -I../gsmlib   `cat ../oRTP/ortp.defs`  -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror -Wall -g -O2 -fno-strict-aliasing -MT alsa.lo -MD -MP -MF ".deps/alsa.Tpo" -c -o alsa.lo alsa.c; \
> 	then mv -f ".deps/alsa.Tpo" ".deps/alsa.Plo"; else rm -f ".deps/alsa.Tpo"; exit 1; fi
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../oRTP/include -I../gsmlib -DORTP_INET6 -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror -Wall -g -O2 -fno-strict-aliasing -MT alsa.lo -MD -MP -MF .deps/alsa.Tpo -c alsa.c  -fPIC -DPIC -o .libs/alsa.o
> cc1: warnings being treated as errors
> alsa.c: In function 'alsa_set_params':
> alsa.c:55: warning: the address of 'hwparams', will always evaluate as 'true'
> alsa.c:128: warning: the address of 'swparams', will always evaluate as 'true'
> make[5]: *** [alsa.lo] Error 1

-- 
Martin Michlmayr
http://www.cyrius.com/




More information about the Pkg-voip-maintainers mailing list