-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<ip> and <tc> packages no longer available #7728
Comments
The iproute2 build system links libelf support to every utility while only the tc program actually requires libelf specific functionality. Unfortunately the BPF ELF functionality is not confined into an own compilation unit but added to the existing bpf.c sources of the shared static libutil.a, causing every iproute2 applet to pick up an implicit libelf.so dependency. In order to avoid this requirement, patch the iproute2 build system to create both a libutil.a and a libutil-elf.a, with the former being built without libelf functionality and to only link the tc applet with the libelf enabled libutil. Finally, make the tc package depend on libelf to solve compilation errors. Ref: openwrt/packages#7728 Fixes: FS#2011 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
@jow- your patch cause compile error git/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libelf.so: undefined reference to 'libintl_dgettext'.
|
This issue looks unrelated to my patches. Apparently the libelf needs libintl now. |
Depending on the global nls support configuration in the buildroot, the linked libelf.so library might depend on libintl.so. Import the nls.mk helper to set library prefixes and flags accordingly in this case. Ref: openwrt/packages#7728 (comment) Signed-off-by: Jo-Philipp Wich <jo@mein.io>
@jow with latest master I receive the following error in my local build environment - is this related?
|
I don't know, I cannot reproduce it. In any case this seems to be a different issue. |
Thanks! Seems to be compiler related, with gcc7 the build runs flawlessly. |
The iproute2 build system links libelf support to every utility while only the tc program actually requires libelf specific functionality. Unfortunately the BPF ELF functionality is not confined into an own compilation unit but added to the existing bpf.c sources of the shared static libutil.a, causing every iproute2 applet to pick up an implicit libelf.so dependency. In order to avoid this requirement, patch the iproute2 build system to create both a libutil.a and a libutil-elf.a, with the former being built without libelf functionality and to only link the tc applet with the libelf enabled libutil. Finally, make the tc package depend on libelf to solve compilation errors. Ref: openwrt/packages#7728 Fixes: FS#2011 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Depending on the global nls support configuration in the buildroot, the linked libelf.so library might depend on libintl.so. Import the nls.mk helper to set library prefixes and flags accordingly in this case. Ref: openwrt/packages#7728 (comment) Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Depending on the global nls support configuration in the buildroot, the linked libelf.so library might depend on libintl.so. Import the nls.mk helper to set library prefixes and flags accordingly in this case. Ref: openwrt/packages#7728 (comment) Signed-off-by: Jo-Philipp Wich <jo@mein.io>
None of these are in the package repo, please use http://bugs.openwrt.org/ instead. |
The iproute2 build system links libelf support to every utility while only the tc program actually requires libelf specific functionality. Unfortunately the BPF ELF functionality is not confined into an own compilation unit but added to the existing bpf.c sources of the shared static libutil.a, causing every iproute2 applet to pick up an implicit libelf.so dependency. In order to avoid this requirement, patch the iproute2 build system to create both a libutil.a and a libutil-elf.a, with the former being built without libelf functionality and to only link the tc applet with the libelf enabled libutil. Finally, make the tc package depend on libelf to solve compilation errors. Ref: openwrt/packages#7728 Fixes: FS#2011 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Depending on the global nls support configuration in the buildroot, the linked libelf.so library might depend on libintl.so. Import the nls.mk helper to set library prefixes and flags accordingly in this case. Ref: openwrt/packages#7728 (comment) Signed-off-by: Jo-Philipp Wich <jo@mein.io>
since a week ago ip and tc packages are no longer available and i cannot install banip and sqm scripts since these depend on tc and ip
The text was updated successfully, but these errors were encountered: