[Samba] samba4 does not compile under opensolaris (wrong getpwent_r ptype)
Ralf Hornik Mailings
ralf at best.homeunix.org
Fri Nov 20 11:51:27 MST 2009
Dear list,
with linux compiling samba 4 works pretty fine but with opensolaris
'snv_111b' 64bit I have problems with the prototype declaration of
getpwent_r():
(Using /opt/SunStudioExpress/bin/cc)
Compiling torture/../../lib/nss_wrapper/testsuite.c
"torture/../../lib/nss_wrapper/testsuite.c", line 336: prototype
mismatch: 4 args passed, 3 expected
"torture/../../lib/nss_wrapper/testsuite.c", line 336: warning:
improper pointer/integer combination: op "="
"torture/../../lib/nss_wrapper/testsuite.c", line 518: prototype
mismatch: 4 args passed, 3 expected
"torture/../../lib/nss_wrapper/testsuite.c", line 518: warning:
improper pointer/integer combination: op "="
"torture/../../lib/nss_wrapper/testsuite.c", line 669: warning:
implicit function declaration: getgrouplist
cc: acomp failed for torture/../../lib/nss_wrapper/testsuite.c
Unlike linux, in opensolaris '/usr/include/pwd.h' this prototype
indeed doesn't match this function in testsuite.c.
There is no possibility to get the right prototype unless modifying
the os headers.
Is there a workaround or a quick solution available? However I cannot
(and wouldn't like to) use gcc because of the buggy glibc of solaris.
Thank you and best regards
Ralf
More information about the samba
mailing list