Samba 3.0.23a in a Solaris 10 Zone

I am attempting to install and configure Samba v3.0.23a in a zone on a Solaris 10 (x86) server and have not had much luck.

First Problem is I can not get SWAT to function:

Added to /etc/inetd.conf

swatstream tcpnowait root/opt/samba/sbin/swatswat

Ran "inetconv"

Ran "svcadm enable svc:/network/swat/tcp:default"

Verified SWAT running:

# svcs -a |grep swat

online 11:52:23 svc:/network/swat/tcp:default

Opened "http:\\localhost:901"

Recieved the following error in the web-browser

"ld.so.1: swat: fatal: libiconv.so.2: open failed: No such file or directory "

How do I correct this?

[660 byte] By [GoldyGophera] at [2007-11-27 6:03:55]
# 1

Its not finding the libraries when its run. There are 2 ways to fix this.

You could set LD_LIBRARY_PATH when running the executable.

You could wrap a shell script round it which sets them then runs the executable.

The probably preferable approach is to set the library paths using -L/-R when building.

Heres how we compile. Were using home grown versions of the libraries. Adjust paths to suit your environment..

CPPFLAGS=-I/usr/local/openldap/include\ -I/usr/local/ssl/include

LDFLAGS="-L/usr/local/ssl/lib -R/usr/local/ssl/lib -L/usr/local/openldap/lib -R/usr/local/openldap/lib -L/usr/local/libiconv/lib -R/usr/local/libiconv/lib"

export LDFLAGS CPPFLAGS

cd source

./configure --prefix=%prefix --with-ldapsaml --with-libiconv=/usr/local/libiconv \

--with-automount --with-ads --with-krb5=/usr/local/krb5 --with-quotas --with-utmp \

--with-logfilebase=/var/samba --with-acl-support

make

robert.cohena at 2007-7-12 16:47:20 > top of Java-index,General,Sys Admin Best Practices...