What do I need to feed apt-get install to get the correct Samba sources to match my Raspberry Pi?
Short summary: I have a COTS NAS running Linux exporting Public/foo. I have a raspberry pi where I'm trying to mount //NAS/Public/foo to /media/foo. Mount gives "Invalid argument". smbclient //NAS/Public/foo /media/foo gives NT_STATUS_BAD_NETWORK_NAME. Wireshark (running on the pi) doesn't show anything going from the pi to the NAS. None of the log files on the NAS change when I try the mount. I've used smbcontrol pid debug 10, everything looks good until NT_STATUS_BAD_NETWORK_NAME suddenly shows up. I can use foo on my Windows boxes.
I'm an experienced Linux user, the problem is not directory permissions, nor a firewall. I've spent a good 30 hours on this and I'm at the end of my rope.
I want to run gdb on samba itself, which means I need to build it with the -g option. After apt-get update and apt-get upgrade I have the following installed:
samba/stable,now 2:4.5.12+dfsg-2+deb9u2 armhf [installed]
samba-common/stable,now 2:4.5.12+dfsg-2+deb9u2 all [installed,automatic]
samba-common-bin/stable,now 2:4.5.12+dfsg-2+deb9u2 armhf [installed,automatic]
samba-dsdb-modules/stable,now 2:4.5.12+dfsg-2+deb9u2 armhf [installed,automatic]
samba-libs/stable,now 2:4.5.12+dfsg-2+deb9u2 armhf [installed,automatic]
samba-vfs-modules/stable,now 2:4.5.12+dfsg-2+deb9u2 armhf [installed,automatic]
libsmbclient/stable,now 2:4.5.12+dfsg-2+deb9u2 armhf [installed,automatic]
smbclient/stable,now 2:4.5.12+dfsg-2+deb9u2 armhf [installed]
smbclient says I have Samba 3.6.5 installed. Samba.org says the latest is 4.8.2. Not seeing sources to 3.6.5.
What do I need to feed apt-get install to get the correct Samba sources to match my Raspberry Pi? Yeah, I know whatever I build will now be "my current samba". I want sources that are known to work on the pi, namely the source to the binaries already installed.
ps. Just realized the binaries already installed are not known to work, they're just known to run
But you know what I mean.