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 .................... cut ............................... "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 have found nothing in any documentation that states that this C99 support is required. Hopefully you can fix things so that Samba can be compiled with this compiler on Solaris. I will attach the full error list in a moment, but it is all the same type of errror.
Created attachment 2791 [details] Complete ndr_wkssvc.c errors
This was a deliberate choice: See this thread: http://marc.info/?l=samba-technical&m=115768408611144&w=2 and the specific mention of Solaris 8. http://marc.info/?l=samba-technical&m=115769364018466&w=2