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

FS#1212 - Busybox 1.27.2 compilation error #6158

Closed
openwrt-bot opened this issue Dec 9, 2017 · 5 comments
Closed

FS#1212 - Busybox 1.27.2 compilation error #6158

openwrt-bot opened this issue Dec 9, 2017 · 5 comments
Labels

Comments

@openwrt-bot
Copy link

zokl:

make[4]: Entering directory `/home/flowtester/caes/CAES/flowtester_test/build_dir/target-x86_64_glibc/busybox-1.27.2' LINK busybox_unstripped Trying libraries: crypt m Failed: -Wl,--start-group -lcrypt -lm -Wl,--end-group Output of: x86_64-openwrt-linux-gnu-gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototyp es -Wmissing-declarations -Wno-format-security -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen -finline-limit=0 -fomit-frame-pointer -ffunctio n-sections -fdata-sections -fno-guess-branch-probability -funsigned-char -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -fno-unwind-tables -fno-a synchronous-unwind-tables -fno-builtin-printf -Os -o busybox_unstripped -Wl,--sort-common -Wl,--sort-section,alignment -Wl,--gc-sections -Wl,--start-group applets/buil t-in.o archival/lib.a archival/libarchive/lib.a console-tools/lib.a coreutils/lib.a coreutils/libcoreutils/lib.a debianutils/lib.a e2fsprogs/lib.a editors/lib.a findut ils/lib.a init/lib.a libbb/lib.a libpwdgrp/lib.a loginutils/lib.a mailutils/lib.a miscutils/lib.a modutils/lib.a networking/lib.a networking/libiproute/lib.a networkin g/udhcp/lib.a printutils/lib.a procps/lib.a runit/lib.a selinux/lib.a shell/lib.a sysklogd/lib.a util-linux/lib.a util-linux/volume_id/lib.a archival/built-in.o archiv al/libarchive/built-in.o console-tools/built-in.o coreutils/built-in.o coreutils/libcoreutils/built-in.o debianutils/built-in.o e2fsprogs/built-in.o editors/built-in.o findutils/built-in.o init/built-in.o libbb/built-in.o libpwdgrp/built-in.o loginutils/built-in.o mailutils/built-in.o miscutils/built-in.o modutils/built-in.o network ing/built-in.o networking/libiproute/built-in.o networking/udhcp/built-in.o printutils/built-in.o procps/built-in.o runit/built-in.o selinux/built-in.o shell/built-in. o sysklogd/built-in.o util-linux/built-in.o util-linux/volume_id/built-in.o -Wl,--end-group -Wl,--start-group -lcrypt -lm -Wl,--end-group ========== coreutils/lib.a(mktemp.o): In function `mktemp_main': mktemp.c:(.text.mktemp_main+0x8c): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' networking/lib.a(nslookup_lede.o): In function `add_query': nslookup_lede.c:(.text.add_query+0x7a): undefined reference to `__res_mkquery' networking/lib.a(nslookup_lede.o): In function `parse_reply': nslookup_lede.c:(.text.parse_reply+0x1a): undefined reference to `ns_initparse' nslookup_lede.c:(.text.parse_reply+0x99): undefined reference to `ns_parserr' nslookup_lede.c:(.text.parse_reply+0x1e7): undefined reference to `ns_name_uncompress' nslookup_lede.c:(.text.parse_reply+0x232): undefined reference to `ns_get16' nslookup_lede.c:(.text.parse_reply+0x259): undefined reference to `ns_name_uncompress' nslookup_lede.c:(.text.parse_reply+0x333): undefined reference to `ns_name_uncompress' nslookup_lede.c:(.text.parse_reply+0x373): undefined reference to `ns_name_uncompress' nslookup_lede.c:(.text.parse_reply+0x39b): undefined reference to `ns_get32' nslookup_lede.c:(.text.parse_reply+0x3b3): undefined reference to `ns_get32' nslookup_lede.c:(.text.parse_reply+0x3cb): undefined reference to `ns_get32' nslookup_lede.c:(.text.parse_reply+0x3e3): undefined reference to `ns_get32' nslookup_lede.c:(.text.parse_reply+0x3fb): undefined reference to `ns_get32' collect2: error: ld returned 1 exit status Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS. Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam" make[4]: *** [busybox_unstripped] Error 1 make[4]: Leaving directory `/home/flowtester/caes/CAES/flowtester_test/build_dir/target-x86_64_glibc/busybox-1.27.2' make[3]: *** [/home/flowtester/caes/CAES/flowtester_test/build_dir/target-x86_64_glibc/busybox-1.27.2/.built] Error 2 make[3]: Leaving directory `/home/flowtester/caes/CAES/flowtester_test/package/utils/busybox' make[2]: *** [package/utils/busybox/compile] Error 2 make[2]: Leaving directory `/home/flowtester/caes/CAES/flowtester_test' make[1]: *** [/home/flowtester/caes/CAES/flowtester_test/staging_dir/target-x86_64_glibc/stamp/.package_compile] Error 2 make[1]: Leaving directory `/home/flowtester/caes/CAES/flowtester_test' make: *** [world] Error 2
@openwrt-bot
Copy link
Author

zokl:

The problem leads to this patch: lede-project/source@d1ba483

@openwrt-bot
Copy link
Author

NeoRaider:

It seems our own version of nslookup was tested with musl only; I assume it needs -lresolv with glibc (generally, glibc builds of LEDE aren't very well-tested). You can disable the OpenWrt/LEDE-specific variant of nslookup in the busybox configuration in make menuconfig and enable the upstream variant instead (the upstream variant does not work with musl unfortunately).

We should either fix the dependencies, or default to the upstream nslookup for !musl.

@openwrt-bot
Copy link
Author

jow-:

No, the problem is that https://git.lede-project.org/?p=source.git;a=blob;f=package/utils/busybox/Makefile;h=0734b522cadf406117b94ddcd9befd3939b0cb3b;hb=HEAD#l104 does not apply anymore due to the rename.

CONFIG_BUSYBOX_DEFAULT_NSLOOKUP_LEDE -> CONFIG_BUSYBOX_DEFAULT_NSLOOKUP_OPENWRT

@openwrt-bot
Copy link
Author

zokl:

Thank you,

the problem is with renaming. After repairing makefile of busybox everything works fine.

@openwrt-bot
Copy link
Author

jow-:

Fixed with http://git.lede-project.org/f4c68e1cc6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant