Modify

Opened 3 years ago

Closed 3 years ago

#20018 closed defect (invalid)

iptables build error

Reported by: anonymous Owned by: developers
Priority: high Milestone:
Component: packages Version: Trunk
Keywords: iptables error Cc:

Description

I compiled with uclibc.Maybe Changeset 45758 cause this.

0.9.33.2/linux-ar71xx_generic/linux-3.18.16/user_headers/include/uapi -I/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.16/user_headers/include -I/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/include -I/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.16/user_headers/include -I/home/workingdir/Openwrt/trunk_mymod/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/workingdir/Openwrt/trunk_mymod/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/workingdir/Openwrt/trunk_mymod/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/workingdir/Openwrt/trunk_mymod/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include -Wp,-MMD,./.libipt_bandwidth.oo.d,-MT,libipt_bandwidth.oo -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe -D_INIT=libipt_bandwidth_init -DPIC -fPIC -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/include -I/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.18.16/user_headers/include -ffunction-sections -fdata-sections -DNO_LEGACY -o libipt_bandwidth.oo -c libipt_bandwidth.c;
libipt_bandwidth.c: In function 'param_problem_exit_error':
libipt_bandwidth.c:537:3: error: format not a string literal and no format arguments [-Werror=format-security]

xtables_error(PARAMETER_PROBLEM, msg);

cc1: some warnings being treated as errors
make[5]: * [libipt_bandwidth.oo] Error 1
make[5]: Leaving directory `/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/extensions'
make[4]:
* [all-recursive] Error 1
make[4]: Leaving directory `/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21'
make[3]: * [all] Error 2
make[3]: Leaving directory `/home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21'
make[2]:
* /home/workingdir/Openwrt/trunk_mymod/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/iptables-1.4.21/.built Error 2
make[2]: Leaving directory `/home/workingdir/Openwrt/trunk_mymod/package/network/utils/iptables'
make[1]: * [package/network/utils/iptables/compile] Error 2
make[1]: Leaving directory `/home/workingdir/Openwrt/trunk_mymod'
make:
* [package/iptables/compile] 错误 2
➜ trunk_mymod git:(master) ✗

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by anonymous

anyidea?

comment:2 Changed 3 years ago by hauke

Where do you got libipt_bandwidth.c from? I can not find this file in my builds. Are you using normal OpenWrt or something else?

Here is some documentation about the format-security warning:
https://fedoraproject.org/wiki/Format-Security-FAQ

comment:3 Changed 3 years ago by jow

  • Resolution set to invalid
  • Status changed from new to closed

libipt_bandwidth.c is a gargoyle specific patch to iptables, not an OpenWrt issue.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.