fw876 / fw876/helloworld

shadowsocksr-libev 升级后,luci-app-ssr-plus无法编译

Open
#1,908 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
4.2k
Forks
2.7k
Avg merge
1d 10h
Merged PRs (30d)
2

Description

make[3]: Entering directory '/home/hbb/lede/feeds/small/shadowsocksr-libev'
rm -f /home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/.built
touch /home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9=shadowsocksr-libev-2.5.9 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -Wno-error=use-after-free -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify -DPCRE2_CODE_UNIT_WIDTH=8 " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9=shadowsocksr-libev-2.5.9 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -Wno-error=use-after-free -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify -DPCRE2_CODE_UNIT_WIDTH=8 " LDFLAGS="-L/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/lib -L/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/lib -fuse-ld=bfd -znow -zrelro -Wl,--gc-sections,--as-needed " make -C /home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9=shadowsocksr-libev-2.5.9 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -Wno-error=use-after-free" LD="x86_64-openwrt-linux-musl-ld.bfd" NM="x86_64-openwrt-linux-musl-gcc-nm" CC="x86_64-openwrt-linux-musl-gcc" GCC="x86_64-openwrt-linux-musl-gcc" CXX="x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" ;
make[4]: Entering directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9'
make all-recursive
make[5]: Entering directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9'
Making all in libcork
make[6]: Entering directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/libcork'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/libcork'
Making all in libipset
make[6]: Entering directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/libipset'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/libipset'
Making all in src
make[6]: Entering directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/src'
x86_64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/usr/include -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include -I/home/hbb/lede/staging_dir/toolchain-x86_64_gcc-13.3.0_musl/include/fortify -DPCRE2_CODE_UNIT_WIDTH=8 -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libipset/include -I../libcork/include -DMODULE_REMOTE -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9=shadowsocksr-libev-2.5.9 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -Wno-error=use-after-free -I/home/hbb/lede/staging_dir/target-x86_64_musl/usr/include -DPCRE2_STATIC -MT ss_server-udprelay.o -MD -MP -MF .deps/ss_server-udprelay.Tpo -c -o ss_server-udprelay.o test -f 'udprelay.c' || echo './'udprelay.c
udprelay.c: In function 'server_recv_cb':
udprelay.c:1031:19: error: 'server_ctx_t' {aka 'struct server_ctx'} has no member named 'tunnel_addr'
1031 | if (server_ctx->tunnel_addr.host && server_ctx->tunnel_addr.port) {
| ^~
udprelay.c:1031:51: error: 'server_ctx_t' {aka 'struct server_ctx'} has no member named 'tunnel_addr'
1031 | if (server_ctx->tunnel_addr.host && server_ctx->tunnel_addr.port) {
| ^~
udprelay.c:1032:33: error: 'server_ctx_t' {aka 'struct server_ctx'} has no member named 'tunnel_addr'
1032 | strncpy(host, server_ctx->tunnel_addr.host, 256);
| ^~
udprelay.c:1033:33: error: 'server_ctx_t' {aka 'struct server_ctx'} has no member named 'tunnel_addr'
1033 | strncpy(port, server_ctx->tunnel_addr.port, 64);
| ^~
udprelay.c:1105:26: error: 'dst_addr' undeclared (first use in this function); did you mean 'si_addr'?
1105 | char *key = hash_key(dst_addr.ss_family, &src_addr);
| ^~~~~~~~
| si_addr
udprelay.c:1105:26: note: each undeclared identifier is reported only once for each function it appears in
udprelay.c:1027:13: error: variable 'frag' set but not used [-Werror=unused-but-set-variable]
1027 | uint8_t frag = 0;
| ^~~~
cc1: all warnings being treated as errors
make[6]: *** [Makefile:1308: ss_server-udprelay.o] Error 1
make[6]: Leaving directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/src'
make[5]: *** [Makefile:482: all-recursive] Error 1
make[5]: Leaving directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9'
make[4]: *** [Makefile:391: all] Error 2
make[4]: Leaving directory '/home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9'
make[3]: *** [Makefile:85: /home/hbb/lede/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.9/.built] Error 2
make[3]: Leaving directory '/home/hbb/lede/feeds/small/shadowsocksr-libev'
time: package/feeds/small/shadowsocksr-libev/compile#0.17#0.11#0.62
ERROR: package/feeds/small/shadowsocksr-libev failed to build.
make[2]: *** [package/Makefile:171: package/feeds/small/shadowsocksr-libev/compile] Error 1
make[2]: Leaving directory '/home/hbb/lede'
make[1]: *** [package/Makefile:165: /home/hbb/lede/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/hbb/lede'
make: *** [/home/hbb/lede/include/toplevel.mk:231: world] Error 2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the shadowsocksr-libev package and the failing src/udprelay.c compilation, especially server_recv_cb and the reported errors for server_ctx_t, dst_addr, and frag. Reproduce the failure with the package compile command, inspect the related structure definitions and upgrade changes, and consider the issue done when shadowsocksr-libev and luci-app-ssr-plus build successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.