Embedded script 'nologin' breaks individual binaries

Denys Vlasenko vda.linux at googlemail.com
Mon Apr 1 15:26:11 UTC 2019


Can't reproduce.
Fixed in git?

On Fri, Mar 29, 2019 at 10:46 PM Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
>
> Hello All,
>
> The 'nologin' embedded script breaks the build when individual binaries
> is enabled. The attached minimalist config exhibits the issue:
>
> Trying libraries: crypt m
>  Library crypt is not needed, excluding it
>  Library m is not needed, excluding it
> Final link with: <none>
> libbusybox: 0_lib/libbusybox.so.1.30.0.git
> Linking individual applets against libbusybox (see 0_lib/*)
> 0_lib/sh
> Linking 0_lib/nologin failed
> Output of:
> gcc -Wall -Wshadow -Wwrite-strings -Wundef -Wstrict-prototypes -Wunused
> -Wunused-parameter -Wunused-function -Wunused-value -Wmissing-prototypes
> -Wmissing-declarations -Wno-format-security
> -Wdeclaration-after-statement -Wold-style-definition -fno-builtin-strlen
> -finline-limit=0 -fomit-frame-pointer -ffunction-sections
> -fdata-sections -fno-guess-branch-probability -funsigned-char
> -static-libgcc -falign-functions=1 -falign-jumps=1 -falign-labels=1
> -falign-loops=1 -fno-unwind-tables -fno-asynchronous-unwind-tables
> -fno-builtin-printf -Os -fpic -fvisibility=hidden 0_lib/applet.c -o
> 0_lib/nologin -Wl,--sort-common -Wl,--sort-section,alignment
> -Wl,--gc-sections -L0_lib -lbusybox -Wl,--warn-common
> ==========
> /tmp/ccIvMFZg.o: In function `main':
> applet.c:(.text.main+0x20): undefined reference to `scripted_main'
> collect2: error: ld returned 1 exit status
> Makefile:718: recipe for target 'busybox_unstripped' failed
> make: *** [busybox_unstripped] Error 1
>
> Regards,
> Yann E. MORIN.
>
> P.S. Please keep my in Cc on replies.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list