Skip to content
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

logrotate build error - missing dependencies libacl.so.1 #3191

Closed
build000 opened this issue Sep 19, 2016 · 6 comments
Closed

logrotate build error - missing dependencies libacl.so.1 #3191

build000 opened this issue Sep 19, 2016 · 6 comments

Comments

@build000
Copy link

build000 commented Sep 19, 2016

make -j1 BUILD_LOG=1

[sources]/logs/package/feeds/packages/logrotate/compile.txt:

(...)
find /home/sj/Pulpit/Projekty/WNDR4700-LEDE/build_dir/target-powerpc_464fp_musl-1.1.15/logrotate-3.10.0/ipkg-powerpc_464fp/logrotate -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package logrotate is missing dependencies for the following libraries:
libacl.so.1
Makefile:60: recipe for target '/home/sj/Pulpit/Projekty/WNDR4700-LEDE/bin/packages/powerpc_464fp/packages/logrotate_3.10.0-1_powerpc_464fp.ipk' failed
make[3]: *** [/home/sj/Pulpit/Projekty/WNDR4700-LEDE/bin/packages/powerpc_464fp/packages/logrotate_3.10.0-1_powerpc_464fp.ipk] Error 1
make[3]: Leaving directory '/home/sj/Pulpit/Projekty/WNDR4700-LEDE/feeds/packages/utils/logrotate'
  • of course this libraries dependencies build properly:

[sources]/logs/package/feeds/packages/acl/compile.txt:

(...)
home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/root-apm821xx/tmp-libacl/usr/lib/
SHELL= flock /home/sj/Pulpit/Projekty/WNDR4700-LEDE/tmp/.root-copy.flock -c 'cp -fpR /home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/root-apm821xx/tmp-libacl/. /home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/root-apm821xx/'
rm -rf /home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/root-apm821xx/tmp-libacl
touch /home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/root-apm821xx/stamp/.libacl_installed
make[3]: Leaving directory '/home/sj/Pulpit/Projekty/WNDR4700-LEDE/feeds/packages/utils/acl'
@hnyman
Copy link
Contributor

hnyman commented Sep 19, 2016

Buildbot is not picking that up and the package is available also for your platform:
https://downloads.lede-project.org/snapshots/packages/powerpc_464fp/packages/logrotate_3.10.0-1_powerpc_464fp.ipk

Is there anything special in your build?

cc to the package maintainer: @bk138

@build000
Copy link
Author

no it is not anything special - just that originally was building the -j8 also discovered that the python-cffi not built a logrotate may falsely indicate that it is not built, although the built de facto - a typical ailment cross-compile ...
In general, I do not have confidence, so I reported first on what stopped make -j1.

@bk138
Copy link
Contributor

bk138 commented Sep 19, 2016

It's probably that libacl is installed on the build machine which logrotate's configure is picking up. There probably is a configure switch to disable looking for ACL, but by looking at logrotate's configure.ac, there's more cases like that, e.g. with SELinux.

What's the general approach here: assuming a minimal build env or disabling all might-be deps specifically?

@build000
Copy link
Author

build000 commented Sep 19, 2016

libacl and logrotate build only to [m] - one package to the other - also I do not know exactly how it is recognized by the system or building components as set in the router.

@hnyman
Copy link
Contributor

hnyman commented Sep 19, 2016

What's the general approach here: assuming a minimal build env or disabling all might-be deps specifically?

Typical approach is to disable might-be deps with CONFIGURE_ARGS in Makefile if the package's configure script has such a parameter, or alternatively via patching the config script. Build environments vary and we can't assume a minimal build.

@build000
Copy link
Author

build000 commented Sep 19, 2016

Overall, it surprised me too this error message because logrotate is dependent libpopt and not from libacl - as usual out some incredible "kaszana" logs at multi-threaded compilation - still LEDE/OpenWRT is not in this respect by the end polished - then this translates into a bizarre problem when compiling other packages.
I removed the .config by "make menuconfig" do not build the packages,add again "logrotate" and logrotate again built without a problem.

again (typically to my) "make -j8 BUILD_LOG=1" and [sources]/logs/package/feeds/packages/logrotate/compile.txt:

(...)
mv -f .deps/logrotate.Tpo .deps/logrotate.Po
powerpc-openwrt-linux-musl-gcc -Wall -Werror -Os -pipe -mcpu=464fp -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap /home/sj/Pulpit/Projekty/WNDR4700-LEDE/build_dir/target-powerpc_464fp_musl-1.1.15/logrotate-3.10.0:logrotate-3.10.0 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/usr/include -I/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/include -I/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/usr/include -I/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/include/fortify -I/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/include -Wno-nonnull-compare  -L/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/usr/lib -L/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/target-powerpc_464fp_musl-1.1.15/lib -L/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/usr/lib -L/home/sj/Pulpit/Projekty/WNDR4700-LEDE/staging_dir/toolchain-powerpc_464fp_gcc-5.4.0_musl-1.1.15/lib -znow -zrelro -o logrotate basenames.o config.o log.o logrotate.o  -lpopt 
make[4]: Leaving directory '/home/sj/Pulpit/Projekty/WNDR4700-LEDE/build_dir/target-powerpc_464fp_musl-1.1.15/logrotate-3.10.0'
rstrip.sh: /home/sj/Pulpit/Projekty/WNDR4700-LEDE/build_dir/target-powerpc_464fp_musl-1.1.15/logrotate-3.10.0/ipkg-powerpc_464fp/logrotate/usr/sbin/logrotate: executable
Packaged contents of /home/sj/Pulpit/Projekty/WNDR4700-LEDE/build_dir/target-powerpc_464fp_musl-1.1.15/logrotate-3.10.0/ipkg-powerpc_464fp/logrotate into /home/sj/Pulpit/Projekty/WNDR4700-LEDE/bin/packages/powerpc_464fp/packages/logrotate_3.10.0-1_powerpc_464fp.ipk

Issue to by closed.

nxhack added a commit to nxhack/packages that referenced this issue Sep 23, 2016
Issue:
 openwrt#3191

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
Borromini pushed a commit to Borromini/packages that referenced this issue Sep 29, 2016
Issue:
 openwrt#3191

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
fededim pushed a commit to fededim/packages that referenced this issue Nov 6, 2016
Issue:
 openwrt#3191

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants