0

Disclaimer: im not a linux expert and the only reason im posting is because i looked everywhere (hopefully) so please be gentle if you are going to flame me.

-Attempting to compile libubus, wpa_supplicant and hostapd for my ASUS router(Armv7 based) running Merlin firmware. -The source for the packages is from Entware.

-I'm using latest POP_OS to compile the packages (and my first time ever doing something like this).

-The problem starts below. why does it claim that libubus doesn't exist?

vi package/system/ubus/Makefile remove the .* after libubus.so

enter image description here

run: make menuconfig

Select libubus, wpa_supplicant and hostapd-common

run: make -j1 package/network/services/hostapd/compile V=sc

Then i get the following error:

make[2]: Entering directory '/home/xxxx/Downloads/Entware/package/system/ubus' rm -rf /home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/.pkgdir/libubus.installed /home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/.pkgdir/libubus mkdir -p /home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/.pkgdir/libubus install -d -m0755 /home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/.pkgdir/libubus/lib cp -fpR /home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/ipkg-install/usr/lib/libubus.so /home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/.pkgdir/libubus/lib/ cp: cannot stat '/home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/ipkg-install/usr/lib/libubus.so': No such file or directory make[2]: *** [Makefile:83: /home/xxxx/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/.pkgdir/libubus.installed] Error 1 make[2]: Leaving directory '/home/xxxx/Downloads/Entware/package/system/ubus' time: package/system/ubus/compile#0.19#0.41#0.53 ERROR: package/system/ubus failed to build. make[1]: *** [package/Makefile:189: package/system/ubus/compile] Error 1 make[1]: Leaving directory '/home/xxxx/Downloads/Entware' make: *** [/home/xxxx/Downloads/Entware/include/toplevel.mk:233: package/network/services/hostapd/compile] Error 2 
2
  • 1
    Why “remove the .* after libubus.so”? That’s what’s causing the later error. Commented Aug 18 at 8:02
  • it errors, even with that in place. cp: cannot stat '/home/ultimatum/Downloads/Entware/build_dir/target-arm_cortex-a9_glibc-2.27_eabi/ubus-2025.05.16~88e63250/ipkg-install/usr/lib/libubus.so.*': No such file or directory Commented Aug 18 at 12:27

1 Answer 1

0

I've solved the problem by doing the following:

This error is happening because of this:

me@ubuntu:~/Entware$ cat package/system/ubus/Makefile <snippet> define Package/libubus/install $(INSTALL_DIR) $(1)/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libubus.so.* $(1)/lib/ endef <snippet> 

I then ran the below find command, and libubus is clearly not under /usr/.

me@ubuntu:~/Entware$ sudo find / -name libubus.so <snippet> /home/me/Entware/staging_dir/target-arm_cortex-a9_glibc-2.27_eabi/opt/lib/libubus.so 

I vim'ed the ubus Makefile and changed /usr/ to /opt/ and removed the .* The issue was resolved after that.

me@ubuntu:~/Entware$ vim package/system/ubus/Makefile <snippet> define Package/libubus/install $(INSTALL_DIR) $(1)/lib $(CP) $(PKG_INSTALL_DIR)/opt/lib/libubus.so $(1)/lib/ endef <snippet> 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.