I originally posted an email looking to see if anyone has compiled samba
v3 for hpux.  Apparently not since it was just released last week.

I was able to compile it and it did run.  However the windbind_nss.so
lib wasn't created which I think I need to authenticate against an
Active Dir.  I didn't have the time to look into the issue.  I will have
more time in a couple of months to recompile samba.  

The biggest problem I had was with missing libraries which samb expects
your system to have.  I'm sure they are on Linux but not HP.  I would
just compile till it couldn't find a library and then search hp software
and gnu software for that lib.  Generally I would download the gnu lib
from hp.software.com since I figured it would work with samba better.

Here are some notes I made as I compiled.  Maybe you will find them
useful.

I installed libiconv-1.9 then gettext, finally ldap2 for their libs.  I
needed libs libiconv and libcypto.
 
export LPATH='/usr/local/lib:/usr/lib'  # Make isn't passing paths
correctly to ld!
export CPPFLAG='-I/epic/prd01/s3/samba-3.0.0rc1/source/include
-I/usr/local/include'           #ldap, iconv
export LDFLAGS='-L /usr/local/lib'

./configure  --with-winbind --with-ads --with-libiconv=/usr/local
--prefix=/opt/samba --localstatedir /var/opt/samba
--with-lockdir=/var/opt/samba/locks
--with-privatedir=/var/opt/samba/private
--with-sambabook=/opt/samba/doc/using-samba

I then made some slight changes to the LIB paths in the Makefile since
they were not correct for my compiler. -L stuff. 

Also from doing some of the makes I had to make the following changes to
a couple of include files:
In /usr/include/netinet/ip.h  Modified the system one because the
include was <netinet/ip.h>
/* mwv n_long is defined in in_systm.h so I am adding it here. /*
#ifndef n_long
typedef u_long  n_long;
#endifIn

auth/pass_check.c.  Needed /usr/include/shadow.h but sys version had
problems with #endif.  So I copied it to source/includes and then put
#include "shadow.h" in auth/pass_check.c.  

Then I ran make.  It failed when it tried to link swat,
smbpasswd,rpcclient but I just reran make to compile everything else.
Swat seems to run fine.  Linking fails because of the following:
/usr/ccs/bin/ld: Unsatisfied symbols:
   __udivdi3 (code)
   __umoddi3 (code)
*** Error exit code 1

Using nm I found these symbols are in /usr/local/libcrypto.a. Think it
comes with ldap.  Could probably track down another lib that has them
defined but I don't have time.

Ran make install to install it.
Then setup a simple /etc/opt/samba/smb.conf and started samba.  Just
smbd and swat.
/opt/samba/sbin/smbd -D -s /etc/opt/samba/smb.conf


Reply via email to