/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
package/Makefile:107: recipe for target 'package/base-files/compile' failed
I'm to date with master, building on Ubuntu 18.04. Just tried an older build machine running Ubuntu 16.04, to current commit level, which also failed, but with a different error. Been checking host requirements wondering if perhaps there wasn't a change on that front.
Or you can use that patch from PR to patch ucert command usage (or apply the commands by hand), and create the keys once. After that the build works again despite the inavlid ucert binary, although not all signing steps can be done.
There is already forum discussion in several threads, a bug report FS1574, a pull request (#1259) and also developer mailing list discussion, so hopefully this ucert problem gets straightened out soon.
Likely @jow or @daniel will look into this in the next few days, as they have been tweaking the ucert things lately.
This has been broken for a few days now... for those that do CI, it's noticeable for downstream - such is life living on the tip, but there doesn't seem to be a sense of urgency - either to roll it back until more QA can be done, or to pull in the PR's that propose to fix it.
As some have mentioned, more than a couple of threads, and multiple bugs reported.
Any updates on where things are - and why wasn't this tested prior to the commit?
Had this error myself when building the latest openwrt 18.06 on Ubuntu 18.04.
Turns out it was looking for the libjson-c.so.2 file while Ubuntu uses libjson-c.so.3 now, so if you create a copy of libjson-c.so.3 and rename it to libjson-c.so.2 then the build runs correctly.
Please note that that ucert should be updated to use libjson-c.so.3 as my test proves it can, but in the mean time there is at least a way to build.