Since a serious bug has been found in samba recently, i had to compile samba server
on my linkstation.
I downloaded the latest version, the first issue was which source folder i had to use, either source3 or source4, it turned out to be source3 (source4 seems to be a new, experimental version).
Since i wanted to install to the local folders, i proceeded like for rtorrent with:
./configure --prefix=/usr/local
make && make install
The second problem i encountered after the build, after i ran smbd -V to check the version, the libraries
libtalloc.so.2