soenke_laue@t-online.de
2004-Oct-19 09:33 UTC
[Samba] samba 3.0.7 make check fails in function strstr_m
Hi all, I wanted to upgrade from samba 3.0.4 to 3.0.7 and installed Samba 3.0.7 in a seperate directory . OS is Solaris 8 on Sun-Sparc. Python 2.3.3 (from sunfreeware) installed libiconv 1.8 installed When running "make check" i get the following output: .......................... # make check WARNING: you need to run ./config.status Linking bigballofmud shared library bin/libbigballofmud.so ln -snf libbigballofmud.so bin/libbigballofmud.so.0 gcc -O -Iinclude -I/sambafiles/samba-3.0.7/source/include -I/sambafiles/samba-3.0.7/source/ubiqx -I/sambafiles/samba-3.0.7/source/smbwrapper -I. -I/usr/local/include/python2.3/ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/sambafiles/samba-3.0.7/source -o bin/t_strcmp -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -liconv torture/t_strcmp.o -L ./bin -lbigballofmud gcc -O -Iinclude -I/sambafiles/samba-3.0.7/source/include -I/sambafiles/samba-3.0.7/source/ubiqx -I/sambafiles/samba-3.0.7/source/smbwrapper -I. -I/usr/local/include/python2.3/ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/sambafiles/samba-3.0.7/source -o bin/t_strstr -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -liconv torture/t_strstr.o -L ./bin -lbigballofmud gcc -O -Iinclude -I/sambafiles/samba-3.0.7/source/include -I/sambafiles/samba-3.0.7/source/ubiqx -I/sambafiles/samba-3.0.7/source/smbwrapper -I. -I/usr/local/include/python2.3/ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include -I/sambafiles/samba-3.0.7/source -o bin/t_push_ucs2 -lsendfile -lsec -lgen -lresolv -lsocket -lnsl -liconv torture/t_push_ucs2.o -L ./bin -lbigballofmud Compiling dynconfig.c Compiling lib/iconv.c lib/iconv.c: In function `sys_iconv': lib/iconv.c:131: warning: passing arg 2 of `libiconv' from incompatible pointer type Linking bin/smbcontrol LD_LIBRARY_PATH="`pwd`/bin:$LD_LIBRARY_PATH" \ PATH="`pwd`/bin:$PATH" \ python stf/standardcheck.py; \ if test -n ""; then \ python stf/pythoncheck.py; \ fi StrCaseCmp OK strstr_m FAIL ----------------------------------------------------------------- Traceback (most recent call last): File "/sambafiles/samba-3.0.7/source/stf/comfychair.py", line 325, in runtests obj.runtest() File "/sambafiles/samba-3.0.7/source/stf/strings.py", line 138, in runtest self.run_strstr(a, b, expect) File "/sambafiles/samba-3.0.7/source/stf/strings.py", line 100, in run_strstr out, err = self.runcmd('t_strstr \"%s\" \"%s\"' % (a.encode('utf-8'), b.encode('utf-8'))) File "/sambafiles/samba-3.0.7/source/stf/comfychair.py", line 196, in runcmd raise AssertionError("""command returned %d; expected %s: \"%s\" AssertionError: command returned 139; expected 0: "t_strstr "hello" "goodbye"" stdout: stderr: Segmentation Fault - core dumped test_log: Run command: t_strstr "hello" "hello" Wait status: 0x0 (exit code 0, signal 0) stdout: hello stderr: Run command: t_strstr "hello" "goodbye" Wait status: 0x8b00 (exit code 139, signal 0) stdout: stderr: Segmentation Fault - core dumped ----------------------------------------------------------------- PushUCS2_Tests OK NoArgs OK OneArg OK SmbdDest OK NmbdDest NOTRUN, not implemented WinbinddDest NOTRUN, not implemented PidDest OK SelfDest OK BadDest OK BadCmd OK Debug OK ForceElection OK SamSync OK SamRepl OK DmallocMark OK DmallocChanged OK Shutdown OK DrvUpgrade OK CloseShare OK Ping OK Debuglevel OK PrintNotify OK Profile OK ProfileLevel OK TimeoutArg OK ConfigFileArg OK BogusArg OK snprintf_Test OK ............................... also "make" produced a bunch of really frightening warnings: .............................. lib/sysacls.c: In function `sys_acl_to_text': lib/sysacls.c:647: warning: assignment discards qualifiers from pointer target type passdb/pdb_ldap.c: In function `ldapsam_alias_memberships': passdb/pdb_ldap.c:2649: warning: passing arg 5 of `smbldap_search' from incompatible pointer type lib/sendfile.c: In function `sys_sendfile': lib/sendfile.c:164: warning: cast from pointer to integer of different size lib/util_str.c: In function `strstr_m': lib/util_str.c:1322: warning: return discards qualifiers from pointer target type lib/iconv.c: In function `sys_iconv': lib/iconv.c:131: warning: passing arg 2 of `libiconv' from incompatible pointer type tdb/tdbutil.c: In function `make_tdb_data': tdb/tdbutil.c:46: warning: assignment discards qualifiers from pointer target type tdb/tdbutil.c: In function `tdb_chainlock_with_timeout_internal': tdb/tdbutil.c:60: warning: passing arg 1 of `tdb_set_lock_alarm' discards qualifiers from pointer target type auth/pampass.c: In function `make_pw_chat': auth/pampass.c:224: warning: passing arg 1 of `next_token' from incompatible pointer type auth/pampass.c:235: warning: passing arg 1 of `next_token' from incompatible pointer type auth/pampass.c: In function `smb_setup_pam_conv': auth/pampass.c:422: warning: assignment from incompatible pointer type libads/kerberos.c: In function `kerberos_kinit_password': libads/kerberos.c:84: warning: passing arg 4 of `krb5_get_init_creds_password' discards qualifiers from pointer target type nsswitch/winbindd_acct.c: In function `string2group': nsswitch/winbindd_acct.c:225: warning: passing arg 1 of `next_token' from incompatible pointer type client/client.c: In function `do_get': client/client.c:699: warning: passing arg 4 of `cli_getattrE' from incompatible pointer type client/client.c: In function `do_put': client/client.c:1075: warning: passing arg 4 of `cli_getattrE' from incompatible pointer type utils/net_lookup.c: In function `net_lookup_kdc': utils/net_lookup.c:212: warning: passing arg 3 of `krb5_locate_kdc' from incompatible pointer type utils/net_idmap.c: In function `net_idmap_fixup_hwm': utils/net_idmap.c:123: warning: passing arg 1 of `lp_idmap_uid' from incompatible pointer type utils/net_idmap.c:123: warning: passing arg 2 of `lp_idmap_uid' from incompatible pointer type utils/net_idmap.c:124: warning: passing arg 1 of `lp_idmap_gid' from incompatible pointer type utils/net_idmap.c:124: warning: passing arg 2 of `lp_idmap_gid' from incompatible pointer type utils/smbcontrol.c: In function `do_printnotify': utils/smbcontrol.c:431: warning: passing arg 3 of `notify_printer_byname' discards qualifiers from pointer target type rpcclient/cmd_spoolss.c: In function `get_driver_3_param': rpcclient/cmd_spoolss.c:1255: warning: passing arg 1 of `strtok' discards qualifiers from pointer target type rpcclient/cmd_reg.c: In function `cmd_reg_shutdown': rpcclient/cmd_reg.c:910: warning: passing arg 2 of `getopt' from incompatible pointer type rpcclient/cmd_shutdown.c: In function `cmd_shutdown_init': rpcclient/cmd_shutdown.c:43: warning: passing arg 2 of `getopt' from incompatible pointer type utils/profiles.c: In function `main': utils/profiles.c:614: warning: passing arg 1 of `mmap' from incompatible pointer type libsmb/spnego.c: In function `read_negTokenInit': libsmb/spnego.c:51: warning: passing arg 2 of `asn1_read_OID' from incompatible pointer type libsmb/spnego.c: In function `read_negTokenTarg': libsmb/spnego.c:186: warning: passing arg 2 of `asn1_read_OID' from incompatible pointer type libsmb/spnego.c: In function `free_spnego_data': libsmb/spnego.c:321: warning: passing arg 1 of `free' discards qualifiers from pointer target type libsmb/spnego.c:330: warning: passing arg 1 of `free' discards qualifiers from pointer target type lib/sendfile.c: In function `sys_sendfile': lib/sendfile.c:164: warning: cast from pointer to integer of different size lib/util_str.c: In function `strstr_m': lib/util_str.c:1322: warning: return discards qualifiers from pointer target type lib/iconv.c: In function `sys_iconv': lib/iconv.c:131: warning: passing arg 2 of `libiconv' from incompatible pointer type tdb/tdbutil.c: In function `make_tdb_data': tdb/tdbutil.c:46: warning: assignment discards qualifiers from pointer target type tdb/tdbutil.c: In function `tdb_chainlock_with_timeout_internal': tdb/tdbutil.c:60: warning: passing arg 1 of `tdb_set_lock_alarm' discards qualifiers from pointer target type libads/kerberos.c: In function `kerberos_kinit_password': libads/kerberos.c:84: warning: passing arg 4 of `krb5_get_init_creds_password' discards qualifiers from pointer target type nsswitch/pam_winbind.c: In function `converse': nsswitch/pam_winbind.c:67: warning: passing arg 3 of `pam_get_item' from incompatible pointer type nsswitch/pam_winbind.c:70: warning: passing arg 2 of pointer to function from incompatible pointer type nsswitch/pam_winbind.c: In function `_make_remark': nsswitch/pam_winbind.c:85: warning: assignment discards qualifiers from pointer target type nsswitch/pam_winbind.c: In function `_winbind_read_password': nsswitch/pam_winbind.c:297: warning: passing arg 3 of `pam_get_item' from incompatible pointer type nsswitch/pam_winbind.c:330: warning: assignment discards qualifiers from pointer target type nsswitch/pam_winbind.c:338: warning: assignment discards qualifiers from pointer target type nsswitch/pam_winbind.c:344: warning: assignment discards qualifiers from pointer target type nsswitch/pam_winbind.c:402: warning: passing arg 3 of `pam_get_item' from incompatible pointer type nsswitch/pam_winbind.c: In function `pam_sm_authenticate': nsswitch/pam_winbind.c:428: warning: passing arg 2 of `pam_get_user' from incompatible pointer type nsswitch/pam_winbind.c: In function `pam_sm_acct_mgmt': nsswitch/pam_winbind.c:482: warning: passing arg 2 of `pam_get_user' from incompatible pointer type nsswitch/pam_winbind.c: In function `pam_sm_chauthtok': nsswitch/pam_winbind.c:559: warning: passing arg 2 of `pam_get_user' from incompatible pointer type nsswitch/pam_winbind.c:636: warning: passing arg 3 of `pam_get_item' from incompatible pointer type Configure args for Samba 3.0.7: --prefix=/usr/local/samba-3.0.7 \ --with-pam \ --with-acl-support \ --with-winbind \ --with-ldap \ --with-ads \ --with-krb5=/usr \ --with-gnu-ld \ --with-ld=/usr/local/bin/ld \ --with-gnu-as \ --with-as=/usr/local/bin/as CPPFLAGS="-I/usr/local/include" \ --with-libiconv=/usr/local \ LDFLAG=-L/usr/lib/ldap ................................................................... Samba 3.0.4 is running on that same machine. I hope that's sufficient to get a picture of my status quo. I'm a bit out of wits now... Any help is of course very much appreciated. regards, S?nke