Skip to contentSkip to conversation

New: isc dhcp-server package don't create file /usr/bin/dhcpd

Buildroot bugzilla at busybox.net 1 participant 11 messages Apr 30, 2021 – May 7, 2021

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=13781

Bug ID: 13781
Summary: isc dhcp-server package don't create file
/usr/bin/dhcpd
Product: buildroot
Version: 2021.02
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: kay.jeschonneck at airbus.com
CC: buildroot at uclibc.org
Target Milestone: ---

Overview:

After activate the isc dhcp-server package, configure the dhcpd.conf, build the system and flash it on the target i expect the dhcp-server start, but i doesn't start. After some investigate i found that the /etc/init.d/S80dhcp-server file check with this command "test -f /usr/sbin/dhcpd" if the file dhcpd exist but it doesn't exist.

Steps to Reproduce:
1. create enviroment
(https://github.com/kontron/buildroot-external-smarc-sal28)
2. select "Target Packages/show packages that are also provided by busybox"
3. select "Target Packages/Networking applications/dhcp (isc)" and "Target
Packages/Networking applications/dhcp (isc)/dhcp-server"
4. build system

Actual Results:
file "build/target/usr/sbin/dhcpd2", "./usr/sbin/dhcpd2" in
"build/images/rootfs.tar" not exist

Expected Results:
file "build/target/usr/sbin/dhcpd2", "./usr/sbin/dhcpd2" in
"build/images/rootfs.tar" exist

Build Date & Hardware
Build 30.04.2021 on Ubuntu 18.04.5 LTS
Intel NUC, Intel Core i7-10710U

Additional Builds and Platforms:
Kontron SMARC-sAL28 module

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 13781] isc dhcp-server package don't create file /usr/bin/dhcpd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13781

--- Comment #2 from Arnout Vandecappelle <[email protected]> --- I just built the defconfig in attachment, and /usr/sbin/dhcpd is in fact installed.

Perhaps your post-build script removes it? Or one of your custom packages?

Quoted 2 lines

Actual Results:
file "build/target/usr/sbin/dhcpd2", "./usr/sbin/dhcpd2" in "build/images/rootfs.tar" not exist

The file is dhcpd, not dhcpd2.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 13781] isc dhcp-server package don't create file /usr/bin/dhcpd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13781

--- Comment #3 from Kay Jeschonneck <[email protected]> --- (In reply to Arnout Vandecappelle from comment #2)

Quoted 1 line

The file is dhcpd, not dhcpd2.

its right, prescribed

To test if i have some issue with the os-enviroment i had reinstall Ubuntu 18.04.5 LTS, followed the kontron github manual, activated the ccache and only activated the isc dhcp service packages.
Now i can't find the dhcpd-file in "build/target/usr/sbin/" or in the rootfs.tar.
In "build/build/dhcp-4.4.2/server" i found the file dhcpd, so the system generate it. If i copy this file manuel in the folder "build/target/usr/sbin/" and restart the make process, everything is fine and the dhcp-server start.

Quoted 1 line

Perhaps your post-build script removes it? Or one of your custom packages?

In the kontron buildlayer i can't find something what delete the dhcpd file, i searched per 'grep -rnw "./" -e "pattern"', pettern is dhcpd or sbin.

For this test i don't use any custom packages.

Have you some other Ideas?

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 13781] isc dhcp-server package don't create file /usr/bin/dhcpd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13781

--- Comment #4 from Arnout Vandecappelle <[email protected]> ---

Quoted 2 lines

Now i can't find the dhcpd-file in "build/target/usr/sbin/" or in the rootfs.tar. In "build/build/dhcp-4.4.2/server" i found the file dhcpd

You did enable BR2_PACKAGE_DHCP_SERVER, right?

Which buildroot version are you using? There was a problem with installation between Sat Apr 20 16:30:31 2019 and Thu Aug 1 18:26:09 2019 - if you happen to use 2019.05 or 2019.05.1, you would have this problem.

I can't reproduce the issue here with your config file.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 13781] isc dhcp-server package don't create file /usr/bin/dhcpd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13781

--- Comment #5 from Heiko Thiery <[email protected]> ---
Hi, just tried to reproduce your issue. Setup the environment with using the latest buildroot from master. With that I see the expected files in the target directory.

# find build/target/ -name "*dhcp*" 
build/target/sbin/udhcpc
build/target/etc/init.d/S80dhcp-server
build/target/etc/init.d/S80dhcp-relay
build/target/etc/dhcp
build/target/etc/dhcp/dhcpd.conf
build/target/usr/sbin/dhcpd
build/target/usr/share/udhcpc
build/target/usr/lib/libdhcp.so
build/target/usr/lib/libdhcpctl.so
build/target/usr/lib/libdhcp.so.0.0.0
build/target/usr/lib/libdhcp.so.0
build/target/usr/lib/libdhcpctl.so.0
build/target/usr/lib/libdhcpctl.la
build/target/usr/lib/libdhcp.la
build/target/usr/lib/libdhcpctl.so.0.0.0
build/target/var/lib/dhcp

As Arnout also asked, which buildroot version are you using?

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 13781] isc dhcp-server package don't create file /usr/bin/dhcpd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13781

--- Comment #6 from Kay Jeschonneck <[email protected]> ---

Quoted 1 line

You did enable BR2_PACKAGE_DHCP_SERVER, right?

Yes

Quoted 1 line

As Arnout also asked, which buildroot version are you using?

version 2021.02

Quoted 1 line

Hi, just tried to reproduce your issue. Setup the environment with using the latest buildroot from master. With that I see the expected files in the target directory.

I don't see the same file.
I use the version 2021.02, the kontron external layer and the kontron_smarc_sal28_defconfig plus i enabled BR2_PACKAGE_DHCP and BR2_PACKAGE_DHCP_SERVER.

This is my result:

#find build/target/ -name "*dhcp*"
build/target/var/lib/dhcp
build/target/usr/lib/libdhcpctl.so
build/target/usr/lib/libdhcp.so.0
build/target/usr/lib/libdhcpctl.so.0.0.0
build/target/usr/lib/libdhcpctl.so.0
build/target/usr/lib/libdhcp.so.0.0.0
build/target/usr/lib/libdhcp.so
build/target/usr/share/udhcpc
build/target/etc/dhcpcd.conf
build/target/etc/dhcp
build/target/etc/dhcp/dhcpd.conf
build/target/etc/init.d/S80dhcp-relay
build/target/etc/init.d/S80dhcp-server
build/target/sbin/udhcpc

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 13781] isc dhcp-server package don't create file /usr/bin/dhcpd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13781

--- Comment #8 from Heiko Thiery <[email protected]> --- could you please share the content of the following file;

# cat build/dhcp-4.4.2/.files-list.txt 

dhcp,./usr/lib/libdhcp.so.0.0.0
dhcp,./usr/lib/libdhcp.so.0
dhcp,./usr/lib/libdhcp.so
dhcp,./usr/lib/libdhcp.la
dhcp,./usr/lib/libomapi.so.0.0.0
dhcp,./usr/lib/libomapi.so.0
dhcp,./usr/lib/libomapi.so
dhcp,./usr/lib/libomapi.la
dhcp,./usr/lib/libdhcpctl.so.0.0.0
dhcp,./usr/lib/libdhcpctl.so.0
dhcp,./usr/lib/libdhcpctl.so
dhcp,./usr/lib/libdhcpctl.la
dhcp,./usr/bin/omshell
dhcp,./var/lib/dhcp
dhcp,./usr/sbin/dhcpd
dhcp,./etc/dhcp/dhcpd.conf
dhcp,./etc/init.d/S80dhcp-server
dhcp,./etc/init.d/S80dhcp-relay

this is what the package should install into the target.

you could also try to rebuild the dhcp package and check/share the output:

# make dhcp-dirclean dhcp

maybe the autoreconfigure does something strange on your side.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#9 lore raw

[Buildroot] [Bug 13781] isc dhcp-server package don't create file /usr/bin/dhcpd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=13781

Kay Jeschonneck <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #9 from Kay Jeschonneck <[email protected]> --- I have found the problem.
In the logs of the command "make dhcp-dirclean dhcp" i get the info the package gawk is missed. After i install this package, everything is fine.

Thanks for your help.

I close this bug report.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.