dfskoll / rp-pppoe

Public repository for RP-PPPoE PPPoE client and server software
https://dianne.skoll.ca/projects/rp-pppoe/
47 stars 15 forks source link

Compilation fails:error: unrecognized command line option '-fhonour-copts' #22

Closed openwrtdiy closed 1 year ago

openwrtdiy commented 1 year ago

The latest version of rp-pppoe: 2023-01-04 ppp version number: 2.4.8-2020-10-03 Error compiling openwrt-21-02 x86 firmware!

I tested the openwrt-21.02 compiled file rp-pppoe https://github.com/openwrtdiy/packages/blob/pppoe-21.02/net/rp-pppoe/Makefile

https://github.com/openwrtdiy/rp-pppoe/tree/20230104

openwrtdiy commented 1 year ago

mkdir -p /home/kokang/pppoe-21.02/dl SHELL= flock /home/kokang/pppoe-21.02/tmp/.ppp-2.4.8.git-2020-10-03.tar.xz.flock -c ' /home/kokang/pppoe-21.02/scripts/download.pl "/home/kokang/pppoe-21.02/dl" "ppp-2.4.8.git-2020-10-03.tar.xz" "c5b39615eb62728431b19f3ae5428eb1e2fc705b4b7b960228fe5b5d7b5a4bca" "" || ( /home/kokang/pppoe-21.02/scripts/dl_github_archive.py --dl-dir="/home/kokang/pppoe-21.02/dl" --url="https://github.com/paulusmack/ppp" --version="ad3937a0a38a696eb1a37dbf8f92e8e6072cdccb" --subdir="ppp-2.4.8.git-2020-10-03" --source="ppp-2.4.8.git-2020-10-03.tar.xz" --hash="c5b39615eb62728431b19f3ae5428eb1e2fc705b4b7b960228fe5b5d7b5a4bca" || ( echo "Checking out files from the git repository..."; mkdir -p /home/kokang/pppoe-21.02/tmp/dl && cd /home/kokang/pppoe-21.02/tmp/dl && rm -rf ppp-2.4.8.git-2020-10-03 && [ \! -d ppp-2.4.8.git-2020-10-03 ] && git clone https://github.com/paulusmack/ppp ppp-2.4.8.git-2020-10-03 && (cd ppp-2.4.8.git-2020-10-03 && git checkout ad3937a0a38a696eb1a37dbf8f92e8e6072cdccb && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd ppp-2.4.8.git-2020-10-03 && git log -1 --format='\''@%ct'\''&& rm -rf ppp-2.4.8.git-2020-10-03/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c ppp-2.4.8.git-2020-10-03 | xz -zc -7e > /home/kokang/pppoe-21.02/tmp/dl/ppp-2.4.8.git-2020-10-03.tar.xz && mv /home/kokang/pppoe-21.02/tmp/dl/ppp-2.4.8.git-2020-10-03.tar.xz /home/kokang/pppoe-21.02/dl/ && rm -rf ppp-2.4.8.git-2020-10-03; ); ) ' mkdir -p /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/kokang/pppoe-21.02/tmp/.root-copy.flock -c 'cp -fpR /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/linux-x86_64/ppp-default/ppp-2.4.8.git-2020-10-03/.pkgdir/ppp/. /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/root-x86/' touch /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/root-x86/stamp/.ppp_installed echo "ppp" >> /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/pkginfo/ppp.default.install mkdir -p /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/root-x86/stamp SHELL= flock /home/kokang/pppoe-21.02/tmp/.root-copy.flock -c 'cp -fpR /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/linux-x86_64/ppp-default/ppp-2.4.8.git-2020-10-03/.pkgdir/ppp-mod-pppoe/. /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/root-x86/' touch /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/root-x86/stamp/.ppp-mod-pppoe_installed echo "ppp-mod-pppoe" >> /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/pkginfo/ppp.default.install make[3]: Leaving directory '/home/kokang/pppoe-21.02/package/network/services/ppp' time: package/network/services/ppp/default/compile#0.19#0.19#0.40 make[3]: Entering directory '/home/kokang/pppoe-21.02/feeds/packages/net/rp-pppoe' mkdir -p /home/kokang/pppoe-21.02/dl SHELL= flock /home/kokang/pppoe-21.02/tmp/.rp-pppoe-3.15.tar.xz.flock -c ' /home/kokang/pppoe-21.02/scripts/dl_github_archive.py --dl-dir="/home/kokang/pppoe-21.02/dl" --url="https://github.com/openwrtdiy/rp-pppoe" --version="c3de064773abd8d72fe571382e713c8690eaadff" --subdir="rp-pppoe-3.15" --source="rp-pppoe-3.15.tar.xz" --hash="x" || ( echo "Checking out files from the git repository..."; mkdir -p /home/kokang/pppoe-21.02/tmp/dl && cd /home/kokang/pppoe-21.02/tmp/dl && rm -rf rp-pppoe-3.15 && [ \! -d rp-pppoe-3.15 ] && git clone https://github.com/openwrtdiy/rp-pppoe rp-pppoe-3.15 && (cd rp-pppoe-3.15 && git checkout c3de064773abd8d72fe571382e713c8690eaadff && git submodule update --init --recursive) && echo "Packing checkout..." && export TAR_TIMESTAMP=cd rp-pppoe-3.15 && git log -1 --format='\''@%ct'\''` && rm -rf rp-pppoe-3.15/.git && tar --numeric-owner --owner=0 --group=0 --mode=a-s --sort=name ${TAR_TIMESTAMP:+--mtime="$TAR_TIMESTAMP"} -c rp-pppoe-3.15 | xz -zc -7e > /home/kokang/pppoe-21.02/tmp/dl/rp-pppoe-3.15.tar.xz && mv /home/kokang/pppoe-21.02/tmp/dl/rp-pppoe-3.15.tar.xz /home/kokang/pppoe-21.02/dl/ && rm -rf rp-pppoe-3.15; ); ' rp-pppoe-3.15.tar.xz: Download from https://github.com/openwrtdiy/rp-pppoe failed rp-pppoe-3.15.tar.xz: Requires sha256sum for verification Checking out files from the git repository... Cloning into 'rp-pppoe-3.15'... remote: Enumerating objects: 306, done. remote: Counting objects: 100% (110/110), done. remote: Compressing objects: 100% (55/55), done. remote: Total 306 (delta 86), reused 67 (delta 55), pack-reused 196 Receiving objects: 100% (306/306), 438.40 KiB | 119.00 KiB/s, done. Resolving deltas: 100% (139/139), done. Note: checking out 'c3de064773abd8d72fe571382e713c8690eaadff'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at c3de064 Fix typo Packing checkout... touch /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.prepared_2e71dd7012bfe33fa5bd259a664de8ad_6664517399ebbbc92a37c5bb081b5c53_check mkdir -p /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers/net cp -fpR ./files/ppp_defs.h /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers/net/ . /home/kokang/pppoe-21.02/include/shell.sh; xzcat /home/kokang/pppoe-21.02/dl/rp-pppoe-3.15.tar.xz | tar -C /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.. -xf - [ ! -d ./src/ ] || cp -fpR ./src/. /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15

Applying ./patches/110-Makefile.patch using plaintext: patching file src/Makefile.in Hunk #1 succeeded at 64 (offset -8 lines).

Applying ./patches/120-use-linux-ether-not-netinet.patch using plaintext: patching file src/if.c patching file src/plugin.c patching file src/pppoe.h Hunk #1 succeeded at 125 with fuzz 1 (offset -4 lines).

Applying ./patches/130-static-lib-fix.patch using plaintext: patching file src/Makefile.in Hunk #1 succeeded at 132 (offset -8 lines). touch /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.prepared_2e71dd7012bfe33fa5bd259a664de8ad_6664517399ebbbc92a37c5bb081b5c53 rm -f /home/kokang/pppoe-21.02/build_dir/target-x86_64musl/rp-pppoe-3.15/.configured* rm -f /home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/stamp/.rp-pppoe_installed (cd /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/./src/; if [ -x ./configure ]; then find /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/ -name config.guess | xargs -r chmod u+w; find /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/ -name config.guess | xargs -r -n1 cp --remove-destination /home/kokang/pppoe-21.02/scripts/config.guess; find /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/ -name config.sub | xargs -r chmod u+w; find /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/ -name config.sub | xargs -r -n1 cp --remove-destination /home/kokang/pppoe-21.02/scripts/config.sub; 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 -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE" LD=x86_64-openwrt-linux-musl-ld 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 CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE " CPPFLAGS="-I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include " LDFLAGS="-L/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro " ./configure --target=x86_64-openwrt-linux --host=x86_64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ac_cv_path_PPPD=/usr/sbin/pppd --enable-plugin=/home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/usr/include/ ; fi; ) configure: WARNING: unrecognized options: --disable-nls configure: loading site script /home/kokang/pppoe-21.02/include/site/x86_64 checking for x86_64-openwrt-linux-gcc... x86_64-openwrt-linux-musl-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-openwrt-linux-musl-gcc accepts -g... yes checking for x86_64-openwrt-linux-musl-gcc option to accept ISO C89... none needed checking for x86_64-openwrt-linux-ranlib... x86_64-openwrt-linux-musl-gcc-ranlib checking for x86_64-openwrt-linux-ar... x86_64-openwrt-linux-musl-gcc-ar checking for sys/wait.h that is POSIX.1 compatible... yes checking how to run the C preprocessor... x86_64-openwrt-linux-musl-gcc -E checking for grep that handles long lines and -e... /home/kokang/pppoe-21.02/staging_dir/host/bin/grep checking for egrep... /home/kokang/pppoe-21.02/staging_dir/host/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking sys/dlpi.h usability... no checking sys/dlpi.h presence... no checking for sys/dlpi.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking net/if_arp.h usability... yes checking net/if_arp.h presence... yes checking for net/if_arp.h... yes checking netinet/if_ether.h usability... yes checking netinet/if_ether.h presence... yes checking for netinet/if_ether.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for fcntl.h... (cached) yes checking net/bpf.h usability... no checking net/bpf.h presence... no checking for net/bpf.h... no checking netpacket/packet.h usability... yes checking netpacket/packet.h presence... yes checking for netpacket/packet.h... yes checking net/ethernet.h usability... yes checking net/ethernet.h presence... yes checking for net/ethernet.h... yes checking asm/types.h usability... yes checking asm/types.h presence... yes checking for asm/types.h... yes checking linux/if_packet.h usability... yes checking linux/if_packet.h presence... yes checking for linux/if_packet.h... yes checking linux/if_ether.h usability... yes checking linux/if_ether.h presence... yes checking for linux/if_ether.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking net/if_dl.h usability... no checking net/if_dl.h presence... no checking for net/if_dl.h... no checking net/if_ether.h usability... no checking net/if_ether.h presence... no checking for net/if_ether.h... no checking net/if_types.h usability... no checking net/if_types.h presence... no checking for net/if_types.h... no checking for netinet/if_ether.h... (cached) yes checking for net/if_types.h... (cached) no checking for net/if_dl.h... (cached) no checking for linux/if.h... yes checking for linux/if_pppox.h... yes checking for an ANSI C-conforming const... yes checking for pid_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct sockaddr_ll... yes checking for N_HDLC line discipline... yes checking for working memcmp... (cached) yes checking for select... yes checking for socket... yes checking for strerror... (cached) yes checking for strtol... yes checking for strlcpy... yes checking for a BSD-compatible install... /usr/bin/install -c checking size of unsigned short... (cached) 2 checking size of unsigned int... (cached) 4 checking size of unsigned long... (cached) 8 checking for ip... /sbin/ip checking for pppd... (cached) /usr/sbin/pppd checking for setsid... /usr/bin/setsid checking for id... /usr/bin/id checking for Linux 2.4.X kernel-mode PPPoE support... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating libevent/Makefile config.status: creating ../scripts/pppoe-connect config.status: creating ../scripts/pppoe-start config.status: creating ../scripts/pppoe-stop config.status: creating ../scripts/pppoe-init config.status: creating ../scripts/pppoe-init-suse config.status: creating ../scripts/pppoe-setup config.status: creating ../gui/Makefile config.status: creating ../gui/tkpppoe config.status: creating config.h configure: WARNING: unrecognized options: --disable-nls On this platform, the following targets will be built: pppoe pppoe-server pppoe-sniff pppoe-relay rp-pppoe.so Type 'make' to compile the software. touch /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.configured_68b329da9893e34099c7d8ad5cb9c940 rm -f /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.built touch /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.built_check CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/include -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include/fortify -I/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/include " LDFLAGS="-L/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro " make -C /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/./src DESTDIR="/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/ipkg-install" PLUGIN_PATH=rp-pppoe.so install ; make[4]: Entering directory '/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src' x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o pppoe.o pppoe.c x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o if.o if.c x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o debug.o debug.c x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o common.o common.c x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o ppp.o ppp.c x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o discovery.o discovery.c x86_64-openwrt-linux-musl-gcc -o pppoe pppoe.o if.o debug.o common.o ppp.o discovery.o -L/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/usr/lib -L/home/kokang/pppoe-21.02/staging_dir/toolchain-x86_64_gcc-8.4.0_musl/lib -znow -zrelro x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o pppoe-server.o pppoe-server.c x86_64-openwrt-linux-musl-gcc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent '-DRP_VERSION="3.15"' -c -o md5.o md5.c cc -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src/libevent -isystem /home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/missing-headers -D_BSD_SOURCE -fno-strict-aliasing -Wall -Wstrict-prototypes '-DPPPOE_PATH="/usr/sbin/pppoe"' '-DPPPD_PATH="/usr/sbin/pppd"' '-DPLUGIN_PATH="rp-pppoe.so"' '-DPPPOE_SERVER_OPTIONS="/etc/ppp/pppoe-server-options"' -Ilibevent -c -o control_socket.o control_socket.c cc: error: unrecognized command line option '-fhonour-copts'; did you mean '-fhonor-std'? cc: error: unrecognized command line option '-fmacro-prefix-map=/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15=rp-pppoe-3.15'

: recipe for target 'control_socket.o' failed make[4]: *** [control_socket.o] Error 1 make[4]: Leaving directory '/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/src' Makefile:148: recipe for target '/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.built' failed make[3]: *** [/home/kokang/pppoe-21.02/build_dir/target-x86_64_musl/rp-pppoe-3.15/.built] Error 2 make[3]: Leaving directory '/home/kokang/pppoe-21.02/feeds/packages/net/rp-pppoe' time: package/feeds/packages/rp-pppoe/compile#3.05#1.81#11.00 ERROR: package/feeds/packages/rp-pppoe failed to build. package/Makefile:114: recipe for target 'package/feeds/packages/rp-pppoe/compile' failed make[2]: *** [package/feeds/packages/rp-pppoe/compile] Error 1 make[2]: Leaving directory '/home/kokang/pppoe-21.02' package/Makefile:110: recipe for target '/home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/stamp/.package_compile' failed make[1]: *** [/home/kokang/pppoe-21.02/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/kokang/pppoe-21.02' /home/kokang/pppoe-21.02/include/toplevel.mk:228: recipe for target 'world' failed make: *** [world] Error 2 `
jkroonza commented 1 year ago
jkroon@plastiekpoot ~/projects/rp-pppoe (master) $ grep -r macro-prefix-map .
jkroon@plastiekpoot ~/projects/rp-pppoe (master) $ grep -r honour-copts .
jkroon@plastiekpoot ~/projects/rp-pppoe (master) $ 

I don't think this is an rp-pppoe issue. More likely you're setting CFLAGS in some way that your compiler doesn't like.

openwrtdiy commented 1 year ago
jkroon@plastiekpoot ~/projects/rp-pppoe (master) $ grep -r macro-prefix-map .
jkroon@plastiekpoot ~/projects/rp-pppoe (master) $ grep -r honour-copts .
jkroon@plastiekpoot ~/projects/rp-pppoe (master) $ 

I don't think this is an rp-pppoe issue. More likely you're setting CFLAGS in some way that your compiler doesn't like.

i will check again tonight

dfskoll commented 1 year ago

Not an RP-PPPoE issue; closing.