Latest openwrt git cant build (08.08.2018, ucert - libjson-c.so)

dirclean, distclean, and even reclone the repository... my guess it is not an unclean tree...

synced up to head this morning...

make V=s 2>&1 | tee build.log | grep -i error

/home/sfx/builds/openwrt/staging_dir/host/bin/ucert: **error** while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory

make[3]: *** [/home/sfx/builds/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-brcm2708_bcm2709/base-files/.configured_e578dc96b3603e9c5bb9fa14332089c0_8e081b74cf069e1e6800a5bbcbb282f0] **Error** 127

make[2]: *** [package/base-files/compile] **Error** 2

make[1]: *** [/home/sfx/builds/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] **Error** 2

make: *** [world] **Error** 2

./staging_dir/host/bin/ucert
./staging_dir/host/bin/ucert: error while loading shared libraries: libjson-c.so.2: cannot open shared object file: No such file or directory

@jow
I just did a make dirclean before build, and I still run into the error if there is no key-build.ucert* in the buildroot dir. If the cert is there, then the build completes (but the log shows an error, even then, but that is not fatal).

perus@ub1804:/Openwrt/r7800$ ldd ./staging_dir/host/bin/ucert
	linux-vdso.so.1 (0x00007fff9fb5f000)
	libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0 (0x00007f2b34bb8000)
	libubox.so => /Openwrt/r7800/staging_dir/host/lib/libubox.so (0x00007f2b349ac000)
	libblobmsg_json.so => /Openwrt/r7800/staging_dir/host/lib/libblobmsg_json.so (0x00007f2b347a9000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2b343b8000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2b341b4000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2b33f95000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f2b34fc5000)
	libjson-c.so.2 => not found

Was able to reproduce the issue in an Ubuntu 18.04.1 VM - it should be fixed with https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=5762efd8b29d68e219fc9d00b681269727cbf5d5

A manual make package/libubox/host/{clean,compile} might be needed but I didn't check thoroughly.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.