Cannot build BIND 9.11.6-P1 on Solaris 11.3 / sparc with Developer Studio 12.5 compiler
Cannot build BIND 9.11.6-P1 on Oracle Solaris 11.3 on sparc architecture with Developer Studio 12.5 compiler.
BIND version used
Steps to reproduce
Tried on Oracle Solaris 11.3 on sparc architecture with Developer Studio 12.5 compiler.
- export PATH=/usr/bin:/opt/developerstudio12.5/bin
- ./configure --without-gssapi CC=/opt/developerstudio12.5/bin/cc CFLAGS='-xtarget=native -m64 -O' CXX=/opt/developerstudio12.5/bin/CC CXXFLAGS='-xtarget=native -m64 -O'
What is the current bug behavior?
The build was failed on link phase with the following error.
Undefined first referenced symbol in file isc_atomic_xadd client.o ld: fatal: symbol referencing errors *** Error code 1 make: Fatal error: Command failed for target `named' Current working directory /var/share/tmp/bind-9.11.6-P1/bin/named *** Error code 1
It seems BIND 9.11.6-P1 introduce new requirement "atomic". BIND 9.11.6 was able to build on the same environment successfully.
Developer Studio 12.5 compiler has stdatomic but BIND configure rejects this stdatomic because ATOMIC_INT_LOCK_FREE is defined as "1" on /opt/developerstudio12.5/lib/compilers/include/cc/stdatomic.h file.
The configure said that:
checking for usable stdatomic.h... no checking architecture type for atomic operations... noatomic
On x86_64 architecture, the configure said that:
checking for usable stdatomic.h... no checking size of void *... 8 checking architecture type for atomic operations... x86_64
What is the expected correct behavior?
Relevant configuration files
$ uname -psvri SunOS 5.11 11.3 sparc sun4v $ cc -V cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31
Relevant logs and/or screenshots
Attached config.log file.config.log