wongsyrone / openwrt-1

已废弃DEPRECATED-see https://github.com/wongsyrone/lede-1 | modifications on OpenWrt official repository
https://www.lede-project.org/
GNU General Public License v2.0
37 stars 19 forks source link

libsodium: _FORTIFY_SOURCE redefined #61

Closed wongsyrone closed 9 years ago

wongsyrone commented 9 years ago
configure:5093: checking whether it is safe to define __EXTENSIONS__
configure:5111: arm-openwrt-linux-muslgnueabi-gcc -std=gnu99 -c -Os -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/wong/github/openwrt-1/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.10_eabi/usr/include -I/home/wong/github/openwrt-1/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.10_eabi/include -I/home/wong/github/openwrt-1/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/usr/include -I/home/wong/github/openwrt-1/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include/fortify -I/home/wong/github/openwrt-1/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include  conftest.c >&5
configure:5111: $? = 0
configure:5118: result: yes
configure:5133: checking whether C compiler accepts -D_FORTIFY_SOURCE=2
configure:5152: arm-openwrt-linux-muslgnueabi-gcc -std=gnu99 -c -Os -pipe -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -mfloat-abi=soft -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro   -D_FORTIFY_SOURCE=2 -I/home/wong/github/openwrt-1/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.10_eabi/usr/include -I/home/wong/github/openwrt-1/staging_dir/target-arm_cortex-a9+vfpv3_musl-1.1.10_eabi/include -I/home/wong/github/openwrt-1/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/usr/include -I/home/wong/github/openwrt-1/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include/fortify -I/home/wong/github/openwrt-1/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-4.8-linaro_musl-1.1.10_eabi/include  conftest.c >&5
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition
configure:5152: $? = 0
configure:5160: result: yes
wongsyrone commented 9 years ago

fixed on my side, will submit to libsodium upstream and shadowsocks-libev

wongsyrone commented 9 years ago

https://github.com/wongsyrone/packages-1/commit/23cf0e929606a590b84bc4bb997c34237a72b045

wongsyrone commented 9 years ago

upstream: https://github.com/jedisct1/libsodium/pull/287 update: Merged

wongsyrone commented 9 years ago

shadowsocks-libev upstream: https://github.com/shadowsocks/shadowsocks-libev/pull/368 update: Merged

Next, send patch to openwrt/packages

wongsyrone commented 9 years ago

all submitted