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

busybox: nslookup applet link with resolv if use glibc #4190

Closed
wants to merge 1 commit into from

Conversation

ptpt52
Copy link
Contributor

@ptpt52 ptpt52 commented May 20, 2021

This fixed b36b8b6
("busybox: remove nslookup_lede/openwrt.patch")

It is likely dropped by mistake, This add back the changes

This fixed b36b8b6
("busybox: remove nslookup_lede/openwrt.patch")

It is likely dropped by mistake, This add back the changes

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
@ptpt52
Copy link
Contributor Author

ptpt52 commented May 20, 2021

wait, may be boot issue with this changes

[    1.377590] VFS: Mounted root (squashfs filesystem) readonly on device 31:14.
[    1.387424] devtmpfs: mounted
[    1.390581] Freeing unused kernel memory: 448K
[    1.413416] Run /sbin/init as init process
[    1.417502]   with arguments:
[    1.420460]     /sbin/init
[    1.423156]   with environment:
[    1.426296]     HOME=/
[    1.428646]     TERM=linux
[    1.466988] Run /etc/init as init process
[    1.471001]   with arguments:
[    1.473986]     /etc/init
[    1.476596]   with environment:
[    1.479726]     HOME=/
[    1.482075]     TERM=linux
[    1.487888] Run /bin/init as init process
[    1.491889]   with arguments:
[    1.494858]     /bin/init
[    1.497468]   with environment:
[    1.500598]     HOME=/
[    1.502947]     TERM=linux
[    1.506021] Run /bin/sh as init process
[    1.509847]   with arguments:
[    1.512804]     /bin/sh
[    1.515249]   with environment:
[    1.518379]     HOME=/
[    1.520729]     TERM=linux
[    1.743409] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-mtk


BusyBox v1.33.1 (2021-05-20 02:35:43 UTC) built-in shell (ash)

/bin/sh: can't access tty; job control turned off
/ # 

@ptpt52
Copy link
Contributor Author

ptpt52 commented May 20, 2021

@aparcar build ok, but seems not work. boot failed with nslookup built-in

@aparcar
Copy link
Member

aparcar commented May 20, 2021

Looking at the buildbot I don't see to many crashes...

@ptpt52
Copy link
Contributor Author

ptpt52 commented May 20, 2021

@aparcar tested ok on mt7622

the boot issue is somewhat issue with my build environment, I do a clean rebuild and everything works

@aparcar
Copy link
Member

aparcar commented May 20, 2021

So there is no issue after all? Also do you use glibc for mt7622?

In case this is resolved please close this issue.

aparcar referenced this pull request May 20, 2021
The nslookup_lede/openwrt applet was introduced in de5b8e5. It was
introduced because:

  Add a new LEDE nslookup applet which is compatible with musl libc
  and providing more features like ability to specify query type.

  In contrast to busybox' builtin nslookup applet, this variant does
  not rely on libc resolver internals but uses explicit send logic
  and the libresolv primitives to parse received DNS responses.

In busybox this applet is added in 0dd3be8. In particular, this commit
introduces the variable NSLOOKUP_BIG. We set the default to true and
so nothing changes.

Signed-off-by: Nick Hainke <vincent@systemli.org>
@ptpt52
Copy link
Contributor Author

ptpt52 commented May 20, 2021

This PR should be applied to fix build issue with glibc

At first I thought that this changes caused the boot problem, but it turned out that there was no problem. This changes solved the issue of nslookup build failed with glibc.

@curtdept
Copy link
Contributor

curtdept commented May 20, 2021

Can confirm, glibc builds broken on x86 and BCM2711 without the reference

@aparcar
Copy link
Member

aparcar commented May 21, 2021

Tested and this fixes indeed the compilation, thank you very much.

@aparcar aparcar closed this May 21, 2021
@adschm adschm added fix pull request contains fix for some issue core packages pull request/issue for core (in-tree) packages labels May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages fix pull request contains fix for some issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants