Seiichi Nakashima
2002-May-04 15:46 UTC
[Samba] samba-2.2.4 compile error at smbd/password.c
Hi. I compile samba-2.2.4, but compile error occured at smbd/password.c. ( ./configure ==> make ; I do not set options) and I install samba-2.2.4, nevertheless compile error occured. I setup smb.conf and smbpasswd, reboot PC, smbd and nmbd start up. ( I do not use domain, only workgroup ) Then I access to samba server from win2000, I found my home directory, displayed user and password input window, and I input them. but could not authorize. This time, smbd run continuous at linux-box. == compile error messages = smbd/password.c: In function `grab_server_mutex': smbd/password.c:1198: warning: passing arg 1 of `message_named_mutex' discards qualifiers from pointer target type -------------------------------- Seiichi Nakashima Email nakasima@kumin.ne.jp --------------------------------
On Sun, 5 May 2002, Seiichi Nakashima wrote:> Hi. > > I compile samba-2.2.4, but compile error occured at smbd/password.c. > ( ./configure ==> make ; I do not set options) > and I install samba-2.2.4, nevertheless compile error occured. > I setup smb.conf and smbpasswd, reboot PC, smbd and nmbd start up. > ( I do not use domain, only workgroup ) > Then I access to samba server from win2000, I found my home directory, > displayed user and password input window, and I input them. > but could not authorize. This time, smbd run continuous at linux-box. > > == compile error messages => > smbd/password.c: In function `grab_server_mutex': > smbd/password.c:1198: warning: passing arg 1 of `message_named_mutex' > discards qualifiers from pointer target typeThis is a warning, not an error. The call discarded a "const". This is not related to your problem. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
Seiichi Nakashima
2002-May-04 22:56 UTC
[Samba] samba-2.2.4 compile error at smbd/password.c
Thank you.>This is a warning, not an error. The call discarded a "const". >This is not related to your problem.I have problems for my samba environment. I send three mails to samba@list.samba.org. one is a "Unable to load interpriter /lib/ld-linux.so.1". This is linux slackware-3.9 base + linux-2.0.40-rc4 + samba-2.2.3a environment. I access to samba server from win2000 that is update all patch by windows upates. When I access /home/slackware/slackare-current ( only display, nothing to do ), 5 minutes late, this is occured. one is smbd consume cpu resources. This is linux slackware-8.1-pre base + linux-2.5.12 + samba-2.2.1a environment. and this problem occured linux-2.0, 2.2, 2.4, 2.5 and samba-2.0.10. last is samba-2.2.4 compile error at smbd/password.c. I understand that is not compile error , only warning. but I could not login to samba server from win2000. I send a mail to Japan Samba Users Group Member. He said that you change Windows2000 configuration, it is control panel ==> holder option(?) ==> diplay(?) ==> automatic search network holder and printer(?) set off. but I could not find them in my windows2000. Help me. -------------------------------- Seiichi Nakashima Email nakasima@kumin.ne.jp --------------------------------
Seiichi Nakashima
2002-May-05 14:21 UTC
[Samba] samba-2.2.4 compile error at smbd/password.c
Hi. I found errors in log file for samba. I use a same configuration file that is smb.conf between samba-2.0.10 and samba-2.2.4. and I use a same configuration parameter to compile samba ( ./configure ==> make ). Of course , when I replace samba version, I move samba directory from /usr/local/samba to /usr/local/samba-2.x.x. until samba-2.2.3a, these error do not find in samba log file. maybe these errors are caused that I could not login samba server. [2002/05/03 21:47:54, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:54, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. [2002/05/03 21:47:55, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1367) unable to open passdb database. -------------------------------- Seiichi Nakashima Email nakasima@kumin.ne.jp --------------------------------
Seiichi Nakashima
2002-May-05 19:32 UTC
[Samba] samba-2.2.4 work fine ( all problems solve )
Hi. I solved all problems, and samba-2.2.4 work fine. the cause was veto files option in smb.conf. I added veto files option in smb.conf, when nimda virus was prevalent in internet. and I use to continue this option. statement was veto files?= /.*/*.{*}/*.eml/*.nws/riched20.dll/. when I reinstall samba-2.2.4, I read documents that are README.Win2kSP2 and README.Win32-Viruses. First I add nt acl support option, but same results. Next I comment out veto files option from smb.conf, So all problem solved. Now, samba-2.2.4 work fine at slackware-3.9 base + linux-2.0.40-rc4 and slackware-8.1 base + linux-2.2.21-rc3 environment. this is my smb.conf. thank you. # Definition [GLOBAL] workgroup = homenet coding system = HEX client code page = 932 guest account = smbadmin printcap name = /etc/printcap log file = /usr/local/samba/var/samba.log socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 encrypt passwords = yes security = share hosts allow = 192.168.0.0/255.255.255.0 ##veto files = /.*/*.{*}/*.eml/*.nws/riched20.dll/ [PM-760C] comment = EPSON Color Printer nt acl support = no browseable = yes public = yes writeable = no printable = yes [HOMES] comment = Home Directories nt acl support = no browseable = no public = no writeable = no printable = no valid users = %U write list = %U # End -------------------------------- Seiichi Nakashima Email nakasima@kumin.ne.jp --------------------------------