cvs commit: src/usr.sbin/named Makefile

Colin Percival cperciva at
Sun Aug 13 07:05:13 UTC 2006

Andrey Chernov wrote:
> On Sun, Aug 13, 2006 at 05:32:10AM +0000, Colin Percival wrote:
>> cperciva    2006-08-13 05:32:10 UTC
>>   FreeBSD src repository
>>   Modified files:
>>     usr.sbin/named       Makefile 
>>   Log:
>>   Undefine __DATE__ in order to avoid placing a build timestamp into
>>   /usr/sbin/{named, lwresd}.  Note that POSIX / C99 doesn't technically
>>   allow __DATE__ to be (un|re)defined, but gcc does what we mean anyway.
> There is a warning. Probably it can interfere with future warn level 
> increasing. What about _re_defining date, say, to the date of named 
> import?

Redefining __DATE__ produces a similar warning:
<command line>:12:1: warning: "__DATE__" redefined

AFAIK the only way to do this while avoiding warning entirely would be to
edit the source code directly to remove reference to __DATE__, but this
would involve either taking named.c off the vendor branch or convincing
the authors of BIND to adopt the change.

Colin Percival

More information about the cvs-src mailing list