Samba is a package that enables windows shares within linux. Samba can be used with gvfs, and mount to make remote shares appear as if they contain local data.
Samba configs conflict within versions, if you're experiencing problems with updates, remove samba entirely from the system, and reinstall from scratch. Once samba starts to run good with default configurations, start inserting custom configurations.
# emerge net-fs/samba
Here is an example of my samba 3x series /etc/samba/smb.conf file. This should work for samba 4x series but may take some adaptation. https://gist.github.com/666threesixes666/5505323
Windows uses wins, netbios, and netbui. to address a machine as //server or //doze requires these services activated otherwise you're restricted to ip/alias/dns to connect to a computer on the LAN.