Cannot compile anymore OpenWrt, missing libcap but devel packages are installed

Hello

I've been able to compile a lot of versions of OpenWRT on opensuse leap 42.X and opensuse leap 15.0
The compile always had warnings about missing libpam, libgnutls, libopenldap, libidn2, libssh2, liblzma, jansson libraries even devel packages are installed.
But now newest OpenWRT version on leap 15.1 does not compile anymore.
Now it complains also about missing libcap and of that tc fails to build.

My question: How are this libs searched? The missing libs are all installed in /usr/lib64
I've also tried to set LD_LIBRARY_PATH with
export LD_LIBRARY_PATH=/usr/lib:/usr/lib64
but same result.

So what could be the problem?

WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/network/utils/iproute2/Makefile' has a dependency on 'libcap', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/network/utils/nftables/Makefile' has a dependency on 'jansson', which does not exist

Did you follow https://openwrt.org/docs/guide-developer/build-system/use-buildsystem ?
You seem to miss these steps:

./scripts/feeds update -a
./scripts/feeds install -a

PS: The openwrt build system does not use anything from the host system, except for some host related tools, since it needs to cross-compile for your target anyway. So all paths are set to staging_dir/host and related subdirs, where the libs will be found. There is no need to install libs from your distro or export any special paths/variables.

1 Like

Yes you are right. I have used always selective installation of feeds
Now the libcap is needed and therefore not found.

But apart of this libcap was as module but needs to be installed in kernel now for tc.
Correcting this one has done the job...

@tkmbe If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

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