Trying to build 4.3.0 on a Solaris 10 i386 box. nss_tests.c fails to compile with the error too many arguments to function 'getpwent_r' and also to function getgrent_r. Checking around, I see that the GNU versions of these functions take one more argument than the Solaris version. The error output is: [2473/3885] Compiling source4/torture/local/nss_tests.c ../source4/torture/local/nss_tests.c: In function 'test_enum_r_passwd': ../source4/torture/local/nss_tests.c:352:3: error: too many arguments to function 'getpwent_r' In file included from /usr/include/crypt.h:18:0, from ../lib/replace/../replace/replace.h:843, from ../source4/include/includes.h:23, from ../source4/torture/local/nss_tests.c:22: /usr/include/pwd.h:57:23: note: declared here ../source4/torture/local/nss_tests.c:352:7: warning: assignment makes integer from pointer without a cast [enabled by default] ../source4/torture/local/nss_tests.c: In function 'test_enum_r_group': ../source4/torture/local/nss_tests.c:546:3: error: too many arguments to function 'getgrent_r' In file included from ../lib/replace/system/passwd.h:38:0, from ../source4/torture/local/nss_tests.c:26: /usr/include/grp.h:43:22: note: declared here ../source4/torture/local/nss_tests.c:546:7: warning: assignment makes integer from pointer without a cast [enabled by default] Waf: Leaving directory `/home/projects/tools/samba/samba-4.3.0rc4.i386/bin'
Created attachment 11441 [details] Fix for Solaris getpwent_r and getgrent_r Patch to use only three arguments for Solaris.
(In reply to Tom Schulz from comment #1) Tom, can I add your 'Signed-off-by:' and push to master ? Thanks, Jeremy.
Please do.
This misses configure tests
Hmm. I take this back. There are configure tests, but for some reason it still fails the build for me.
Created attachment 11478 [details] patch for 4.3 cherry-picked from master
(In reply to Volker Lendecke from comment #5) > > ... but for some reason it still fails the build for me. Is that possibly a linking error because of getgrouplist() not defined? That would be yet another bug.
(In reply to Michael Adam from comment #7) > (In reply to Volker Lendecke from comment #5) > > > > ... but for some reason it still fails the build for me. > > Is that possibly a linking error because of getgrouplist() not defined? > > That would be yet another bug. It aready exists: bug #11512.
Comment on attachment 11478 [details] patch for 4.3 cherry-picked from master LGTM.
Karolin please push to 4.3.next.
(In reply to Jeremy Allison from comment #10) Pushed to autobuild-v4-3-test.
(In reply to Karolin Seeger from comment #11) Pushed to v4-3-test. Closing out bug report. Thanks!