gSpotx2f / luci-app-internet-detector

Internet detector for OpenWrt
Apache License 2.0
55 stars 23 forks source link

Problem with compiling new internet-detector #3

Closed 4IceG closed 2 years ago

4IceG commented 2 years ago

Hi, could you please tell me what I'm doing wrong that the package is not compiling (I'm building with MASTER).

make[3]: Entering directory '/home/rafal/Documents/openwrt/package/internet-detector'
rm -f /home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector/.built
touch /home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector/.built_check
CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector=internet-detector -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/usr/include -I/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/include/fortify -I/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/include " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector=internet-detector -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro  -I/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/usr/include -I/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/include/fortify -I/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/include " LDFLAGS="-L/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/usr/lib -L/home/rafal/Documents/openwrt/staging_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.2.0_musl_eabi/lib -znow -zrelro " make -j1 -C /home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector/. AR="arm-openwrt-linux-muslgnueabi-gcc-ar" AS="arm-openwrt-linux-muslgnueabi-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -fmacro-prefix-map=/home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector=internet-detector -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=arm-openwrt-linux-muslgnueabi-ld NM="arm-openwrt-linux-muslgnueabi-gcc-nm" CC="arm-openwrt-linux-muslgnueabi-gcc" GCC="arm-openwrt-linux-muslgnueabi-gcc" CXX="arm-openwrt-linux-muslgnueabi-g++" RANLIB="arm-openwrt-linux-muslgnueabi-gcc-ranlib" STRIP=arm-openwrt-linux-muslgnueabi-strip OBJCOPY=arm-openwrt-linux-muslgnueabi-objcopy OBJDUMP=arm-openwrt-linux-muslgnueabi-objdump SIZE=arm-openwrt-linux-muslgnueabi-size CROSS="arm-openwrt-linux-muslgnueabi-" ARCH="arm" ;
make[4]: Entering directory '/home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector'
make[4]: *** No targets specified and no makefile found.  Stop.
make[4]: Leaving directory '/home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector'
make[3]: *** [Makefile:57: /home/rafal/Documents/openwrt/build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/internet-detector/.built] Error 2
make[3]: Leaving directory '/home/rafal/Documents/openwrt/package/internet-detector'
time: package/internet-detector/compile#1.02#0.15#1.18
    ERROR: package/internet-detector failed to build.
lrdrdn commented 2 years ago

I have same issue, building with 21.02.1

gSpotx2f commented 2 years ago

Guys, try the fixed Makefile

4IceG commented 2 years ago

Thanks :) for fixing the Makefile, I can add from myself that the package is compiling. Unfortunately, it doesn't work as expected, I haven't investigated the presence of the files, but I don't have the last two tabs. The internet discovery daemon works but doesn't show the current status correctly. error3 error4 error error2 .

gSpotx2f commented 2 years ago

It looks like you are using UCI config (/etc/config/internet-detector) from the old version... v0.4 has a different config. Delete all application files (daemon and luci-app) and reinstall completely.

4IceG commented 2 years ago

I return the honor :) Everything works, exactly right... I compiled new packages having old settings file in "files".