Modify

Opened 4 years ago

Last modified 4 years ago

#17201 new defect

Failure to build on lantiq (libnet)

Reported by: juanriccio@… Owned by: developers
Priority: high Milestone: Chaos Calmer 15.05
Component: other Version: Trunk
Keywords: Cc:

Description

make[5]: Entering directory `/openwrt/trunk/build_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/libnet/src'
/bin/bash ../libtool --tag=CC --mode=compile mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../include -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fpic -Wall -c -o libnet_init.lo libnet_init.c
OpenWrt-libtool: compile: mips-openwrt-linux-uclibc-gcc -DHAVE_CONFIG_H -I. -I../include -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/target-mips_34kc+dsp_uClibc-0.9.33.2/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/openwrt/trunk/staging_dir/toolchain-mips_34kc+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/include -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -mdsp -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fpic -Wall -c libnet_init.c -fPIC -DPIC -o .libs/libnet_init.o
libnet_init.c: In function 'libnet_init':
libnet_init.c:88:17: error: format not a string literal and no format arguments [-Werror=format-security]

snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);

libnet_init.c:88:17: error: format not a string literal and no format arguments [-Werror=format-security]
libnet_init.c:93:17: error: format not a string literal and no format arguments [-Werror=format-security]

snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);

libnet_init.c:93:17: error: format not a string literal and no format arguments [-Werror=format-security]
libnet_init.c:101:17: error: format not a string literal and no format arguments [-Werror=format-security]

snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);

libnet_init.c:101:17: error: format not a string literal and no format arguments [-Werror=format-security]
libnet_init.c:109:17: error: format not a string literal and no format arguments [-Werror=format-security]

snprintf(err_buf, LIBNET_ERRBUF_SIZE, l->err_buf);

libnet_init.c:109:17: error: format not a string literal and no format arguments [-Werror=format-security]
libnet_init.c: In function 'libnet_getdevice':
libnet_init.c:203:5: warning: pointer targets in return differ in signedness [-Wpointer-sign]

return (l->device);

cc1: some warnings being treated as errors
make[5]: * [libnet_init.lo] Error 1

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by anonymous

Problem solved. Now it builds OK - at least from r41929 onwards.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.