Trying to build Samba 4.4.6 on a Solaris 10 Sparc box with the Sun C 5.13 SunOS_sparc compiler. The build fails with: "../source3/lib/msghdr.c", line 208: syntax error before or at: ; The offending line of code is: msg->msg = (struct msghdr) {}; I have sucessfully built Samba 4.4.6 on a Solaris 10 i386 box with the gcc compiler, so this is something that gcc understands but the Sun C compiler does not.
Replace {} with {0}. I've got a patch in the master autobuild, but that should help you.
That fixes it. I just checked and Samba 4.5.0 will have the same problem.
Created attachment 12522 [details] Patch from master
Comment on attachment 12522 [details] Patch from master LGTM.
Karolin please cherry-pick for 4.5.next ! Thanks ! Jeremy.
(In reply to Jeremy Allison from comment #5) Pushed to autobuild-v4-5-test.
Has this made it into 4.4.next?
(In reply to Tom Schulz from comment #7) > Has this made it into 4.4.next? No.
Hopefully we can get this into 4.4.nextnext. Is there anything I can do to help?
Created attachment 12596 [details] git-am fix for 4.4.next. Back-ported from master to 4.4.next.
(In reply to Jeremy Allison from comment #10) Pushed to autobuild-v4-4-test (even it's already closed, autobuild failed anyway...).
(In reply to Karolin Seeger from comment #11) Pushed to v4-4-test. Closing out bug report. Thanks!