The build fails because client/mount.cifs.c declares the fstab.h header, which isn't provided by uclibc. Further details and patch are here: https://bugzilla.samba.org/show_bug.cgi?id=7539 Apparently the patch has been applied to a 4.x release, but since those are masked in Gentoo it seems like a good idea to add this to our ebuilds for the time being. emerge --info, build log, etc. on request, but I don't see the point as the upstream developers have already confirmed and fixed the bug and it just needs retro-fitting to 3.x releases.
Created attachment 271503 [details, diff] Correct patch I tried the patches from Samba's Bugzilla, and neither of them seemed to work. So I patched the offending file manually, and it compiled OK. This is the patch I used: it works against a fully unpacked net-fs/samba-3.5.8-r1 source tree.
Commited, thanks for the patch + 04 May 2011; Víctor Ostorga <vostorga@gentoo.org> samba-3.5.8-r1.ebuild, + +files/3.5/samba-3.5.8-uclib-build.patch: + Fix build on uclibc systems, bug 365233 patch thanks to Tom Lloyd + <napalmllama@gmail.com> +