[OpenIndiana-discuss] Odd Samba/winbind issue

James Relph james at themacplace.co.uk
Wed Jun 26 13:28:07 UTC 2013


> Okay, now I am tempted. You built samba4 on oi151a7 with gcc?

Yep, it's actually pretty straightforward when you work out the requirements, there's not tons of dependencies or other bits, my final working solution (I did this in a zone, so there's a few extra bits in here that aren't needed in a global zone) was:

pkg install ar illumos-gcc gnu-binutils git gdb system/header system/library/math/header-math developer/library/lint cups wget samba gnu-patch
wget http://www.samba.org/samba/ftp/samba-latest.tar.gz
tar -xvzf samba—latest.tar.gz
cd samba-4.0.6
export PATH="/usr/sbin:/usr/bin:/opt/gcc/4.4.4/bin:/usr/xpg4/bin:/usr/gnu/bin"
export LDFLAGS="-L/root/samba-4.0.6/bin/shared/private -R/usr/local/samba/lib/private -L/root/samba-4.0.6/bin/shared -R/usr/local/samba/lib -L/usr/gnu/lib -R/usr/gnu/lib -L/usr/lib -R/usr/lib -L/lib -R/lib -L/opt/gcc/4.4.4/lib -R/opt/gcc/4.4.4/lib"
./configure --with-ad
make
make install
ln -s /usr/local/samba/lib/nss_winbind.so.1 /lib/nss_winbind.so.1
ln -s /usr/local/samba/lib/nss_winbind.so.1 /lib/nss_winbind.so.2
ln -s /usr/local/samba/lib/nss_winbind.so.1 /lib/libnss_winbind.so.1

If I had a bit more time I'd dig out what was installed by the samba pkg that was required by samba4, but I'll get around to that at some point.  I need to get a smf manifest sorted out a bit more urgently :-)

James.


More information about the OpenIndiana-discuss mailing list