Build Error on Solaris 10

Hello,

I’m the NSD package maintainer at the OpenCSW project and I’m trying to build NSD 4.3.5 on Solaris 10 with the Developer Studio 12.6 compiler and run in to this problem:

/opt/developerstudio12.6/bin/cc -I/opt/csw/include -I/opt/csw/include -I. -I/opt/csw/include -xO3 -m32 -xarch=sparc -c remote.c
"util.h", line 91: warning: attribute "format" is unknown, ignored
"util.h", line 436: warning: attribute "format" is unknown, ignored
"buffer.h", line 55: warning: attribute "unused" is unknown, ignored
"buffer.h", line 412: warning: attribute "format" is unknown, ignored
"options.h", line 454: warning: attribute "format" is unknown, ignored
"udb.h", line 253: warning: zero or negative subscript
"udb.h", line 298: warning: zero or negative subscript
"difffile.h", line 101: warning: zero or negative subscript
"remote.c", line 195: warning: attribute "format" is unknown, ignored
"remote.c", line 2693: undefined symbol: AF_LOCAL
gmake: *** [Makefile:93: remote.o] Error 2

Not sure, but looks like I came across bug.

Regards,

Ihsan

Hi Ihsan,

Hello,

I’m the NSD package maintainer at the OpenCSW project and I’m trying to build NSD 4.3.5 on Solaris 10 with the Developer Studio 12.6 compiler and run in to this problem:

Thank you for the report. The issue is fixed in commit
https://github.com/NLnetLabs/nsd/commit/58dddc3f99964d1d0b0bd6ee77b92b629dbad5fc

Where there is an added compatibility check for the compile error that
happens in the Solaris build.

Best regards, Wouter