Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63884 - samba-3.0.6-r4 wins host resolution doesn't work, 3.0.6-r3 works fine
Summary: samba-3.0.6-r4 wins host resolution doesn't work, 3.0.6-r3 works fine
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
: 64217 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-13 06:29 UTC by John Russell
Modified: 2004-09-17 06:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Russell 2004-09-13 06:29:40 UTC
I have samba configured to resolve dhcp addresses of windows machines by using WINS. This is done by adding a WINS server to smb.conf and adding 'wins' to the end of the hosts line in nsswitch.conf.  This has worked fine since samba-2.x up until 3.0.6-r3.  However, I upgraded to 3.0.6-r4 and it stopped working.  All WINS hosts are unknown.  Switching back to r3 makes it work.  I dont' even have to restart samba.  If the r3 files are there...good.  r4 files... bad.

Reproducible: Always
Steps to Reproduce:
1.configure samba to resolve dynamic address hostnames using WINS
2. emerge samba-3.0.6-r4ping <windows machine with dhcp address
3. ping <windows machine with dhcp address>

Actual Results:  
host unknown

Expected Results:  
the ping should resolve the hostname to the correct dhcp address by asking the
WINS server.  This worked fine in 3.0.6-r3, but is broken in r4.
Comment 1 Christian Andreetta (RETIRED) gentoo-dev 2004-09-14 00:56:57 UTC
I'm a bit puzzled. if you do a 'diff -Nu usr/portage/net-fs/samba/samba-3.0.6-r{3,4}*', you'll see that, if you don't use amd64 systems, the changes are only cosmetics. Are you sure the only change in your network is the samba version update?
Comment 2 John Russell 2004-09-14 06:19:20 UTC
I made packages of samba-3.0.6-r3, 3.0.6-r4 and just this morning 3.0.7

With nothing else happening on the system I did an 

emerge --usepkg =3.0.6-r3

ping config70 (a windows machine that gets its address from dhcp.  This happens with all suck machines.)

ping works as expected, hostname resolved.

emerge --usepkg =3.0.6-r4

ping config70

ping: unknown host config70

emerge --usepkg =3.0.7

ping config70

ping: unknown host config70

emerge --usepkg =3.0.6-r3

ping config70

ping works as expected again.

Note that I have not at any point restarted he samba services during this process.  I also tried it with restarting the services just to be sure, but it seems to have no effect one way or the other.

A concurr, that this is really strange.
Comment 3 Christian Andreetta (RETIRED) gentoo-dev 2004-09-15 01:30:35 UTC
nice done: this is a significative test.
if you don't restart daemons, the cause can only be shared by libraries and runtime configuration.
-- Libs: since you're using a binary package for 3.0.6-r3, could you do a backup of this and make a new 'emerge =samba-3.0.6-r3'? This way, 3.0.6-r3 will be compiled against your current system libs version.
--Conf: If some tweaking in nsswitch.conf, smb.conf or resolv.conf don't resolve this issue, and you already set your conf as for http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetworkBrowsing.html#id2528560, I'd suggest you to contact samba support upstream.
Comment 4 John Russell 2004-09-15 06:17:51 UTC
I wasn't using binary packages.  I used quickpkg and emerge --buildpkgonly to make packages of these versions compiled locally so that I could swap them out quickly during testing.  

I was thinking about contacting samba support, but since the problem originally occurred between gentoo r3 and r4 I figured I'd try here first.  However, now that I've seen it from 3.0.6 (good) and 3.0.7 (bad) I'll try opening a bug with them.  

I'll check out that howto and see how it goes.  Thanks for the help.
Comment 5 Christian Andreetta (RETIRED) gentoo-dev 2004-09-15 07:00:05 UTC
One last thought: you're not using selinux nor amd64, I presume. If so, it could be something regarding profiles.
If you edit samba-3.0.7, and comment out the 'append-ldflags -Wl,-z,now -L/usr/$(get_libdir)' (line 140 of /usr/portage/net-fs/samba/samba-3.0.7.ebuild), can you give it a try?
Another question: stack-protector in CFLAGS?
Comment 6 M. Niebergall 2004-09-15 09:28:53 UTC
I noticed the same error today.  No selinux, amd64, stack-protector or anything special on my system.

However, commenting out the append-ldflags-line in the ebuild did solve it for me.  Samba-3.0.7 completed compiling a few minutes ago and I can ping other windows-hosts again (without restarting samba).
Comment 7 John Russell 2004-09-15 10:50:24 UTC
Yes, commenting out that line did fix the problem.  Thanks for the help
Comment 8 Christian Andreetta (RETIRED) gentoo-dev 2004-09-16 07:03:46 UTC
*** Bug 64217 has been marked as a duplicate of this bug. ***
Comment 9 Christian Andreetta (RETIRED) gentoo-dev 2004-09-17 04:42:51 UTC
Can you give a try on samba-3.0.7-r1? You should have no problems, while retaining libs preload advantages
Comment 10 Jetchko Jekov 2004-09-17 06:03:07 UTC
wins hostname resolution works in samba-3.0.7-r1
Comment 11 Christian Andreetta (RETIRED) gentoo-dev 2004-09-17 06:07:44 UTC
thanks: closing now and having a beer! :-)