Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Nov 2017 14:31:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 223819] net/ntp: RIPENCC TRIMBLE DRIVER COMPILE ERROR
Message-ID:  <bug-223819-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223819

            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@FreeBSD.org
          Reporter: giuxtheone@gmail.com
             Flags: maintainer-feedback?(cy@FreeBSD.org)
          Assignee: cy@FreeBSD.org

Created attachment 188216
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D188216&action=
=3Dedit
MAKE with MAKE_JOBS_UNSAFE=3Dyes

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 +=3D sprintf(pbuf,
LeapStatusText[i]);
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20
^~~~~~~~~~~~~~~~~
refclock_ripencc.c:5062:44: note: treat the string as an argument to avoid =
this
                        if (Flags&(1<<i)) pbuf +=3D sprintf(pbuf,
LeapStatusText[i]);
                                                                ^
                                                                "%s",
refclock_ripencc.c:5247:9: warning: expression which evaluates to zero trea=
ted
as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion]
        pbuf =3D '\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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-223819-13>