[Bug 223819] net/ntp: RIPENCC TRIMBLE DRIVER COMPILE ERROR
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Nov 23 14:31:27 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223819
Bug ID: 223819
Summary: net/ntp: RIPENCC TRIMBLE DRIVER COMPILE ERROR
Product: Ports & Packages
Version: Latest
Hardware: i386
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: cy at FreeBSD.org
Reporter: giuxtheone at gmail.com
Flags: maintainer-feedback?(cy at FreeBSD.org)
Assignee: cy at FreeBSD.org
Created attachment 188216
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=188216&action=edit
MAKE with MAKE_JOBS_UNSAFE=yes
I am trying to rebuild my NTP Stratum-1 FreeBSD error using FreeBSD 11.1.
Trying to recompile the NTP with support for RIPENCC TRIMBLE CARD I end up
with a compilation error:
refclock_ripencc.c:5062:44: error: format string is not a string literal
(potentially insecure) [-Werror,-Wformat-security]
if (Flags&(1<<i)) pbuf += sprintf(pbuf,
LeapStatusText[i]);
^~~~~~~~~~~~~~~~~
refclock_ripencc.c:5062:44: note: treat the string as an argument to avoid this
if (Flags&(1<<i)) pbuf += sprintf(pbuf,
LeapStatusText[i]);
^
"%s",
refclock_ripencc.c:5247:9: warning: expression which evaluates to zero treated
as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
pbuf = '\0';
^~~~
12 warnings and 1 error generated.
*** Error code 1
Stop.
make[5]: stopped in /usr/ports/net/ntp/work/ntp-4.2.8p10/ntpd
*** Error code 1
Stop.
make[4]: stopped in /usr/ports/net/ntp/work/ntp-4.2.8p10/ntpd
*** Error code 1
Stop.
make[3]: stopped in /usr/ports/net/ntp/work/ntp-4.2.8p10
*** Error code 1
Stop.
make[2]: stopped in /usr/ports/net/ntp/work/ntp-4.2.8p10
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/net/ntp
*** Error code 1
Stop.
make: stopped in /usr/ports/net/ntp
It seems being related to a C compiler issue... Any idea/workaround?
I know that RipeNCC driver is really old (2002) but we still use that card and
the old server on which it was installed (with FREBSD 9.2) died.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list