In file included from sstp-plugin.c:37:
sstp-pppd-compat.h:85:1: error: static declaration of 'ppp_add_options' follows non-static declaration
Followed by another bunch of:
"error: static declaration of 'ppp_blah' follows non-static declaration", with almost all referencing /staging_dir/target-aarch64_generic_musl/usr/include/pppd/pppd.h
Just to be sure this was not a build environment problem, I stood up a fresh Debian 12.7 and the same sstp-client snapshot build error persists there too. Also looked through git but could not determine that either sstp-client or ppp were updated recently, so I'm at a loss as to what has happened...
This identical snapshot build config (target, packages, etc.) built fine on October 11 (8 days ago) and produced the following versions without a problem:
/openwrt-sdk-rockchip-armv8_gcc-13.3.0_musl.Linux-x86_64/build_dir/target-aarch64_generic_musl/sstp-client-1.0.20=sstp-client-1.0.20 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -c sstp-plugin.c -fPIC -DPIC -o .libs/sstp_pppd_plugin_la-sstp-plugin.o
In file included from sstp-plugin.c:23:
sstp-pppd-compat.h:85:1: error: static declaration of 'ppp_add_options' follows non-static declaration
85 | ppp_add_options(option_t *options)
| ^~~~~~~~~~~~~~~
In file included from sstp-pppd-compat.h:49:
/openwrt-sdk-rockchip-armv8_gcc-13.3.0_musl.Linux-x86_64/staging_dir/target-aarch64_generic_musl/usr/include/pppd/options.h:106:6: note: previous declaration of 'ppp_add_options' with type 'void(struct option *)'
106 | void ppp_add_options(struct option *options);
| ^~~~~~~~~~~~~~~
sstp-pppd-compat.h: In function 'ppp_add_options':
sstp-pppd-compat.h:87:5: warning: implicit declaration of function 'add_options'; did you mean 'ppp_add_options'? [-Wimplicit-function-declaration]
@Ansuel
This is confirmed. I've patched the sstp-client package to build 1.0.20, and everything build just fine now against ppp 2.5.1 with your latest commit. Resulting versions: