I am trying to build samba-3.0.25b on a Solaris 8 machine with the
Forte Developer 7 C 5.4 compiler. When I run configure I get the
following errors:

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

Hopeing that this support was not really needed, I removed the error
exit from configure and then configured and tried to build. I then
received the following warnings for most every source file:

"./librpc/gen_ndr/srvsvc.h", line 213: warning: enumerator value overflows
INT_MAX (2147483647)
"./librpc/gen_ndr/srvsvc.h", line 216: warning: enumerator value overflows
INT_MAX (2147483647)
"./librpc/gen_ndr/srvsvc.h", line 219: warning: enumerator value overflows
INT_MAX (2147483647)
"./librpc/gen_ndr/srvsvc.h", line 223: warning: enumerator value overflows
INT_MAX (2147483647)

After that there was a fatal set of errors:

"librpc/gen_ndr/ndr_wkssvc.c", line 4761: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4761: warning: old-style declaration or
incorrect type for: count
"librpc/gen_ndr/ndr_wkssvc.c", line 4762: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4762: warning: old-style declaration or
incorrect type for: names
"librpc/gen_ndr/ndr_wkssvc.c", line 4763: warning: improper pointer/integer
combination: op "="
"librpc/gen_ndr/ndr_wkssvc.c", line 4763: syntax error before or at: }
"librpc/gen_ndr/ndr_wkssvc.c", line 4763: warning: syntax error: empty
declaration
"librpc/gen_ndr/ndr_wkssvc.c", line 4770: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4770: warning: old-style declaration or
incorrect type for: count
"librpc/gen_ndr/ndr_wkssvc.c", line 4770: identifier redefined: count
current : int
previous: int : "librpc/gen_ndr/ndr_wkssvc.c", line 4761
"librpc/gen_ndr/ndr_wkssvc.c", line 4771: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4771: warning: old-style declaration or
incorrect type for: names
"librpc/gen_ndr/ndr_wkssvc.c", line 4771: identifier redefined: names
current : int
previous: int : "librpc/gen_ndr/ndr_wkssvc.c", line 4762
"librpc/gen_ndr/ndr_wkssvc.c", line 4772: warning: improper pointer/integer
combination: op "="
"librpc/gen_ndr/ndr_wkssvc.c", line 4772: syntax error before or at: }
"librpc/gen_ndr/ndr_wkssvc.c", line 4772: warning: syntax error: empty
declaration
"librpc/gen_ndr/ndr_wkssvc.c", line 4776: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4776: warning: old-style declaration or
incorrect type for: name
"librpc/gen_ndr/ndr_wkssvc.c", line 4776: warning: improper pointer/integer
combination: op "="
"librpc/gen_ndr/ndr_wkssvc.c", line 4777: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4777: warning: old-style declaration or
incorrect type for: syntax_id
"librpc/gen_ndr/ndr_wkssvc.c", line 4778: too many initializers for scalar
"librpc/gen_ndr/ndr_wkssvc.c", line 4781: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4781: warning: old-style declaration or
incorrect type for: helpstring
"librpc/gen_ndr/ndr_wkssvc.c", line 4781: warning: improper pointer/integer
combination: op "="
"librpc/gen_ndr/ndr_wkssvc.c", line 4782: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4782: warning: old-style declaration or
incorrect type for: num_calls
"librpc/gen_ndr/ndr_wkssvc.c", line 4783: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4783: warning: old-style declaration or
incorrect type for: calls
"librpc/gen_ndr/ndr_wkssvc.c", line 4783: warning: improper pointer/integer
combination: op "="
"librpc/gen_ndr/ndr_wkssvc.c", line 4784: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4784: warning: old-style declaration or
incorrect type for: endpoints
"librpc/gen_ndr/ndr_wkssvc.c", line 4784: warning: improper pointer/integer
combination: op "="
"librpc/gen_ndr/ndr_wkssvc.c", line 4785: syntax error before or at: .
"librpc/gen_ndr/ndr_wkssvc.c", line 4785: warning: old-style declaration or
incorrect type for: authservices
"librpc/gen_ndr/ndr_wkssvc.c", line 4786: warning: improper pointer/integer
combination: op "="
"librpc/gen_ndr/ndr_wkssvc.c", line 4786: syntax error before or at: }
"librpc/gen_ndr/ndr_wkssvc.c", line 4786: warning: syntax error: empty
declaration
"librpc/gen_ndr/ndr_wkssvc.c", line 4786: warning: syntax error: empty
declaration
cc: acomp failed for librpc/gen_ndr/ndr_wkssvc.c

I don't know if this has anything to do with the C99 compiler standard or
not. Does anyone know it a C99 compiler should be required or anything
else about these errors?

--
Tom Schulz
schulz@adi.com