i just build rtpengine master on debian wheezy and got these kind of warnings that i don't remember seeing before:
cc -g -Wall -pthread -fno-strict-aliasing -std=c99 `pkg-config --cflags glib-2.0` `pkg-config --cflags gthread-2.0` `pkg-config --cflags zlib` `pkg-config --cflags openssl` `pcre-config --cflags` -I../kernel-module/ -D_GNU_SOURCE -DRTPENGINE_VERSION=""4.0.0.0+0~mr4.0.0.0"" -DRE_PLUGIN_DIR=""/usr/lib/rtpengine"" -O3 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -c -o graphite.o graphite.c In file included from /usr/include/stdio.h:930:0, from cli.c:5: In function 'sprintf', inlined from 'cli_incoming_list' at cli.c:187:8, inlined from 'cli_incoming' at cli.c:337:25: /usr/include/i386-linux-gnu/bits/stdio2.h:34:3: warning: call to __builtin___sprintf_chk will always overflow destination buffer [enabled by default] ...
-- juha
On 14/04/15 04:36 AM, Juha Heinanen wrote:
i just build rtpengine master on debian wheezy and got these kind of warnings that i don't remember seeing before:
cc -g -Wall -pthread -fno-strict-aliasing -std=c99 `pkg-config --cflags glib-2.0` `pkg-config --cflags gthread-2.0` `pkg-config --cflags zlib` `pkg-config --cflags openssl` `pcre-config --cflags` -I../kernel-module/ -D_GNU_SOURCE -DRTPENGINE_VERSION=""4.0.0.0+0~mr4.0.0.0"" -DRE_PLUGIN_DIR=""/usr/lib/rtpengine"" -O3 `dpkg-buildflags --get CFLAGS` `dpkg-buildflags --get CPPFLAGS` -c -o graphite.o graphite.c In file included from /usr/include/stdio.h:930:0, from cli.c:5: In function 'sprintf', inlined from 'cli_incoming_list' at cli.c:187:8, inlined from 'cli_incoming' at cli.c:337:25: /usr/include/i386-linux-gnu/bits/stdio2.h:34:3: warning: call to __builtin___sprintf_chk will always overflow destination buffer [enabled by default] ...
Are you using some kind of special compile flags or a different compiler? Because I'm not seeing those.
Cheers
Richard Fuchs writes:
Are you using some kind of special compile flags or a different compiler? Because I'm not seeing those.
i'm building rtpengine in wheezy cowbuilder environments using standard compiler and libs without any modifications to rtpengine makefiles.
it turned out that the error messages only appear in i386 environment, not in amd64 environment.
-- juha