trouble compiling nsd-2.3.0 under solaris 10

Erik Rozendaal erik at
Tue May 31 07:46:00 UTC 2005

joel.nyholm at wrote:
> Have anyone compiled NSD 2.3.0 under Solaris 10? I have some trouble 
> compiling it under solaris 10..
> when i compile tsig.c i get the following error..
> gcc -I/usr/local/ssl/include -DHAVE_CONFIG_H -I. -DDBFILE=\"/etc/nsd/nsd.db\" -DPIDFILE=\"/var/run/\" -DUSER=\"nsd\" -g -O2 -c tsig.c
> tsig.c: In function `tsig_from_query':
> tsig.c:252: error: too few arguments to function `ctime_r'
> tsig.c:256: error: too few arguments to function `ctime_r'
> *** Error code 1
> make: Fatal error: Command failed for target `tsig.o'

Looks like the ctime_r function on solaris is not POSIX compliant by 
default and has an additional 'size' argument.  Could you try 
reconfiguring with:

$ ./configure CPPFLAGS='-D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600'

and recompiling?

Other CPPFLAGS you might try to use are:




More information about the nsd-users mailing list