There is a build issue (syntax error) while compiling Samba 4.12.7 with xlc compiler. The syntax error points to the FALLTHROUGH statements. Take pampass.c for example., +166 udp->PAM_password); +167 /* PAM frees resp */ +168 break; +169 +170 case PAM_TEXT_INFO: +171 FALL_THROUGH; +172 +173 case PAM_ERROR_MSG: +174 /* ignore it... */ According to online gcc docs, the FALL_THROUGH attribute should be used after a preceding statement. https://gcc.gnu.org/onlinedocs/gcc/Statement-Attributes.html But surprisingly gcc compiles even though there is no preceding statement but not xlc compiler.
(In reply to Ayappan from comment #0) In this case I think FALL_THROUGH is unnecessary, and the normal thing would be to write it like this: +166 udp->PAM_password); +167 /* PAM frees resp */ +168 break; +169 +170 case PAM_TEXT_INFO: +171 case PAM_ERROR_MSG: +172 /* ignore it... */
(In reply to Douglas Bagnall from comment #1) Do we get a patch from the community ?
lib/replace/replace.h handles this correctly with xlc