Date: Fri, 31 Mar 2006 10:46:53 +0200 (CEST) From: Ed Schouten <ed@fxq.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/95148: [dns/totd] Does not compile on FreeBSD CURRENT Message-ID: <200603310846.k2V8krxK079002@zonk.fxq.nl> Resent-Message-ID: <200603310850.k2V8oDQM036608@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 95148 >Category: ports >Synopsis: [dns/totd] Does not compile on FreeBSD CURRENT >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Mar 31 08:50:12 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 7.0-CURRENT i386 >Organization: n/a >Environment: System: FreeBSD zonk.fxq.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Mar 27 20:33:56 CEST 2006 root@zonk.fxq.nl:/usr/obj/export/src/sys/ZONK i386 >Description: I tried to compile totd on my desktop running FreeBSD, but it fails because totd is compiled with -Werr and GCC raises a warning at totd.c:507; tv_sec is a time_t, not a long. >How-To-Repeat: Install FreeBSD CURRENT on a machine and try to compile totd. Compilation will stop at totd.c. >Fix: The following diff should be stored in /usr/ports/dns/totd/files/: %%% --- totd.c Fri Mar 31 10:40:55 2006 +++ totd.c Fri Mar 31 10:41:14 2006 @@ -504,7 +504,7 @@ tvp = &tv_out; if (T.debug > 2) syslog (LOG_DEBUG, "next timeout after %ld s.", - tv_out.tv_sec); + (long)tv_out.tv_sec); } } %%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603310846.k2V8krxK079002>