Ralf Hornik Mailings
2009-Nov-20 18:51 UTC
[Samba] samba4 does not compile under opensolaris (wrong getpwent_r ptype)
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
Ralf Hornik Mailings
2009-Nov-21 15:41 UTC
[Samba] (Partially fixed) samba4 does not compile under opensolaris
Ralf Hornik Mailings schrieb:> with linux compiling samba 4 works pretty fine but with opensolaris > 'snv_111b' 64bit I have problems with the prototype declaration of > getpwent_r():I fixed this using --enable-nss-wrapper=yes to work around any NSS incompatibilities. Now when I try to start samba I get this Error: root at server01:/opt/samba4# ./sbin/samba -i -M single samba version 4.0.0alpha9-GIT-4abd858 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 samba: using 'single' process model Failed to bind to ipv4:0.0.0.0:389 - NT_STATUS_INVALID_PARAMETER task_server_terminate: [cldapd failed to setup interfaces] samba_terminate: cldapd failed to setup interfaces The debug output shows: root at server01:/opt/samba4# ./sbin/samba -i -M single -d 12 lp_load: refreshing parameters from /opt/samba4/etc/smb.conf params.c:pm_process() - Processing configuration file "/opt/samba4/etc/smb.conf" Processing section "[globals]" Processing section "[netlogon]" Processing section "[sysvol]" pm_process() returned Yes adding hidden service IPC$ adding hidden service ADMIN$ samba version 4.0.0alpha9-GIT-4abd858 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 fcntl_lock 3 34 0 1 2 fcntl_lock: Lock call successful GENSEC backend 'krb5' registered GENSEC backend 'fake_gssapi_krb5' registered GENSEC backend 'schannel' registered GENSEC backend 'spnego' registered GENSEC backend 'gssapi_spnego' registered GENSEC backend 'gssapi_krb5' registered GENSEC backend 'gssapi_krb5_sasl' registered GENSEC backend 'ntlmssp' registered NTPTR backend 'simple_ldb' NTVFS backend 'simple' for type 1 registered NTVFS backend 'cifs' for type 1 registered NTVFS backend 'nbench' for type 1 registered NTVFS backend 'unixuid' for type 1 registered NTVFS backend 'unixuid' for type 3 registered NTVFS backend 'unixuid' for type 2 registered NTVFS backend 'cifsposix' for type 1 registered NTVFS backend 'smb2' for type 1 registered NTVFS backend 'default' for type 2 registered NTVFS backend 'default' for type 3 registered NTVFS backend 'default' for type 1 registered NTVFS backend 'posix' for type 1 registered PROCESS_MODEL 'standard' registered PROCESS_MODEL 'prefork' registered PROCESS_MODEL 'single' registered AUTH backend 'winbind_samba3' registered AUTH backend 'winbind' registered AUTH backend 'winbind_wbclient' registered AUTH backend 'server' registered AUTH backend 'name_to_ntstatus' registered AUTH backend 'fixed_challenge' registered AUTH backend 'unix' registered AUTH backend 'anonymous' registered AUTH backend 'sam' registered AUTH backend 'sam_ignoredomain' registered SHARE backend [ldb] registered. SHARE backend [classic] registered. gendb_search_v: (&(objectclass=ldapSecret)(cn=SAMDB Credentials)) -> 0 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-INTERNAL ERROR: Signal 11 in pid 1396 (4.0.0alpha9-GIT-4abd858) Please read the file BUGS.txt in the distribution =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-PANIC: internal error BACKTRACE: 17 stack frames: #0 /opt/samba4/sbin/samba'call_backtrace+0x38 [0x8a41718] #1 /opt/samba4/sbin/samba'smb_panic+0x29b [0x8a41adb] #2 /opt/samba4/sbin/samba'fault_report+0x1b1 [0x8a41cb1] #3 /opt/samba4/sbin/samba'sig_fault+0x4e [0x8a41d1e] #4 /lib/libc.so.1'__sighndlr+0xf [0xfeaed0cf] #5 /lib/libc.so.1'call_user_handler+0x2af [0xfeae01bf] #6 /lib/libc.so.1'strlen+0x30 [0xfea647a0] #7 /lib/libc.so.1'vsnprintf+0x65 [0xfeab31bd] #8 /lib/libc.so.1'vasprintf+0x36 [0xfeaae14e] #9 /opt/samba4/sbin/samba'dbgtext+0x53 [0x8a41113] #10 /opt/samba4/sbin/samba'cli_credentials_set_secrets+0x1c5 [0x85029f5] #11 /opt/samba4/sbin/samba'samdb_credentials+0xa2 [0x85aa3e2] #12 /opt/samba4/sbin/samba'samdb_connect+0x41 [0x85aa481] #13 /opt/samba4/sbin/samba'prime_ldb_databases+0x6c [0x816213c] #14 /opt/samba4/sbin/samba'binary_smbd_main+0x6f0 [0x81629f0] #15 /opt/samba4/sbin/samba'main+0x35 [0x8162c25] #16 /opt/samba4/sbin/samba'_start+0x7d [0x816196d] Abort (core dumped) I read the BUGS.txt but I have no gdb here. Can I do something else to troubleshoot this? Regards Ralf
Apparently Analagous Threads
- FreeBSD 8.1 & Samba4 alpha11 domain controller - cldapd bind problem
- Samba 4 AD - Samba Fails to Start, hdb_samba4_create_kdc (setup KDC database) failed
- Samba 4 Kerberos: Failed to decrypt PA-DATA
- 4.0 stopped working after updating xubuntu 13.04
- 4.2.1 make quicktest error