configure: error: c99 structure initializer are not supported

Dennis Clarke dclarke at blastwave.org
Mon Aug 25 04:44:01 GMT 2008


On an older Solaris 8 machine and Sun Studio 8 compiler I ran into
a problem where configure would not complete due to :

configure: error: c99 structure initializer are not supported

Is there any way around this ?

Do I need to switch to Sun Studio 11 or perhaps GCC 4.2.x for the build
on an older piece of hardware ?

details of configure follow :

SAMBA VERSION: 3.2.2
LIBREPLACE_LOCATION_CHECKS: START
checking build system type... sparc-sun-solaris2.8
checking host system type... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
LIBREPLACE_LOCATION_CHECKS: END
LIBREPLACE_CC_CHECKS: START
checking for gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for cc option to accept ISO C99... unsupported
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/xpg4/bin/grep
checking for egrep... /usr/xpg4/bin/grep -E
checking for AIX... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... no
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether byte ordering is bigendian... yes
checking for inline... inline
checking for C99 designated initializers... no
checking for C99 designated initializers with -AC99... no
checking for C99 designated initializers with -qlanglvl=extc99... no
checking for C99 designated initializers with -qlanglvl=stdc99... no
checking for C99 designated initializers with -c99... no
configure: WARNING: c99 structure initializer are not supported
checking for a BSD-compatible install... ../samba-3.2.2/source/install-sh -c
checking for library containing strerror... none required
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking standards.h usability... no
checking standards.h presence... no
checking for standards.h... no
checking for long long... yes
checking for int... yes
checking size of int... 4
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 4
checking for long long... (cached) yes
checking size of long long... 8
checking for uint_t... yes
checking for int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for int64_t... yes
checking for uint64_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for off_t... yes
checking size of off_t... 8
checking for size_t... (cached) yes
checking size of size_t... 4
checking for ssize_t... (cached) yes
checking size of ssize_t... 4
checking for intptr_t... yes
checking for uintptr_t... yes
checking for ptrdiff_t... yes
checking for immediate structures... no
LIBREPLACE_CC_CHECKS: END
checking for size_t... (cached) yes
checking size of size_t... (cached) 4
checking for void *... yes
checking size of void *... 4
checking whether to use profiling... no
checking for a BSD-compatible install... ../samba-3.2.2/source/install-sh -c
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for perl... /bin/perl
checking for ar... ar
checking if the linker (ld) is GNU ld... no
checking whether cc understands -c and -o together... yes
checking that the C compiler understands -Werror... no
checking that the C compiler understands -w2... no
checking that the C compiler understands -errwarn... yes
checking that the C compiler understands volatile... yes
checking that the C compiler understands negative enum values... yes
checking for C99 designated initializers... no
checking for C99 designated initializers with -AC99... no
checking for C99 designated initializers with -qlanglvl=extc99... no
checking for C99 designated initializers with -qlanglvl=stdc99... no
checking for C99 designated initializers with -c99... no
configure: error: c99 structure initializer are not supported


-- 
Dennis Clarke



More information about the samba-technical mailing list