Network Services | NTP does not build with gcc15 (#19)

Chris Johns (@chris) gitlab at rtems.org
Thu Sep 18 04:47:01 UTC 2025




Chris Johns commented: https://gitlab.rtems.org/rtems/pkg/rtems-net-services/-/issues/19#note_131150


Also this is the work in progress patch for `net-services` :

```diff
diff --git a/netservices.py b/netservices.py
index 9fc208b..422d5be 100644
--- a/netservices.py
+++ b/netservices.py
@@ -246,11 +246,14 @@ def build(bld):

     ttcp_source_files = ['ttcp/ttcp.c']

+    ttcp_no_warnings = ['-Wno-implicit-function-declaration', '-Wno-int-conversion']
+    ttcp_std = ['-std=c17']
+
     bld.stlib(features='c',
               target='ttcp',
               source=ttcp_source_files,
               includes=ttcp_incl,
-              cflags=cflags,
+              cflags=cflags + ttcp_no_warnings + ttcp_std,
               defines=[net_def],
               use=[net_use])
     bld.install_files("${PREFIX}/" + arch_lib_path, ["libttcp.a"])
@@ -265,7 +268,6 @@ def build(bld):
     telnetd_source_files = [
         "telnetd/check_passwd.c",
         "telnetd/des.c",
-        "telnetd/genpw.c",
         "telnetd/pty.c",
         "telnetd/telnetd-init.c",
         "telnetd/telnetd.c"
diff --git a/ttcp/ttcp.c b/ttcp/ttcp.c
index 659da82..39f756b 100644
--- a/ttcp/ttcp.c
+++ b/ttcp/ttcp.c
@@ -69,6 +69,7 @@
 #define __need_getopt_newlib
 #include <getopt.h>
 #include <rtems/shell.h>
+#include <sys/select.h>
 #endif /* __rtems__ */

 #if RTEMS_NET_LWIP
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-net-services/-/issues/19#note_131150
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20250918/7e679a10/attachment.htm>


More information about the bugs mailing list