Samba is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients. In laymen speak, it allows windows machines to connect to a Linux samba share :) I will break this guide down into 3 parts: Compile/Install, Setup, and Actually Running the Service.
1) Install Instructions
Download the source from the following URL: http://www.samba.org/samba/download You should get a file that looks similar to this: samba-3.4.0.tar.gz.
mv samba-3.4.0.tar.gz /tmp; cd /tmp tar xzf samba-3.4.0.tar.gz; cd samba-3.4.0/source3
Setup up appropriate environment variables
*For solaris use /usr/sfw/bin/gcc
set path = ( /usr/sfw/bin $path ) setenv CC "gcc -Wl,-rpath,/usr/local/samba/lib"
*For Linux
setenv LD_RUN_PATH /usr/local/samba/lib