Bug 4751 - Samba requires C99 designated initializers
Samba requires C99 designated initializers
Status: RESOLVED WONTFIX
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.25a
Sparc Solaris
: P3 major
: none
Assigned To: Gerald (Jerry) Carter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-28 13:30 UTC by Tom Schulz
Modified: 2007-06-28 13:36 UTC (History)
0 users

See Also:


Attachments
Complete ndr_wkssvc.c errors (3.50 KB, text/plain)
2007-06-28 13:34 UTC, Tom Schulz
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Schulz 2007-06-28 13:30:16 UTC
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.
Comment 1 Tom Schulz 2007-06-28 13:34:54 UTC
Created attachment 2791 [details]
Complete ndr_wkssvc.c errors
Comment 2 Gerald (Jerry) Carter 2007-06-28 13:36:49 UTC
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