Comment on ntpclient. Seems the 2015 code fails to compile on my Fedora 39 machine.

Michael D. Setzer II mikes at guam.net
Thu May 9 09:22:21 UTC 2024


Was looking at busybox page, and checked the link for the 
ntpclient. Seems the current version it shows is 2015.
Another page linked had email of LRDoolittle at lbl.gov but it was 
last updated in 2021? So don't know if it will be valid or will fail?

Downloaded it just to check, and ran make, but it failed with an 
error in Makefile and one needed include in ntpclient.c to resolve 
undefined value.

diff ntpclient-2015/Makefile ntpclient-2015b/Makefile 
20c20
< CFLAGS += -D_POSIX_C_SOURCE=199309 -D_BSD_SOURCE
---
> CFLAGS += -D_POSIX_C_SOURCE=199309 
-D_DEFAULT_SOURCE
# diff ntpclient-2015/ntpclient.c ntpclient-2015b/ntpclient.c 
42a43
> #include <linux/sockios.h>

So, not directly linked to busybox, but program is mentioned on 
pages. 

I include it on my G4L project, but is an optional program in cause 
someone wants to update time? Otherwise it just uses machines 
time.

Just in case. Those fix compile on my Fedora 39 machine, but not 
sure if others would see same changes needed. 

Thanks.

+------------------------------------------------------------+
 Michael D. Setzer II - Computer Science Instructor (Retired)     
 mailto:mikes at guam.net                            
 mailto:msetzerii at gmail.com
 mailto:msetzerii at gmx.com
 Guam - Where America's Day Begins                        
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
+------------------------------------------------------------+





More information about the busybox mailing list