[Samba] Antwort: Re: Samba 4 on AIX with XLC

Benjamin Huntsman BHuntsman at mail2.cu-portland.edu
Mon Jan 14 11:31:11 MST 2013


>I can build and install samba 4.0.0 - I have the same library problems as
>you(copy, then set LIBPATH), but after copying the libraries I can run the
>smbd -b command without an error.
>Here's my environment - disclaimer - I've compiled ALL of the necessary
>freeware modules locally(gettext, libiconv, python...)
>
>LDFLAGS=-blibpath:/opt/pware/lib:/opt/pware/lib32:/usr/lib
>CC=xlc_r
>CXX=xlC_r
>CPPFLAGS=-qmaxmem=-1 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51
>-D_AIX52 -D_AIX53 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O
>-I/opt/pware/include -L/opt/pware/lib
>CXXFLAGS=-qmaxmem=-1 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51
>-D_AIX52 -D_AIX53 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O
>-I/opt/pware/include -L/opt/pware/lib
>CFLAGS=-qmaxmem=-1 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51
>-D_AIX52 -D_AIX53 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O
>-I/opt/pware/include -L/opt/pware/lib
>OBJECT_MODE=64
>
>./configure --prefix=/opt/pware/samba/4.0.0 --with-acl-support
>--without-ads --with-winbind --without-ldap --with-libiconv=/opt/pware
>--with-gettext=/opt/pware --enable-selftest --enable-socket-wrapper
>
>I'm compiling only a 64 bit version
>Python ist version 2.7.3
>All of the freeware modules are in /opt/pware[/lib/bin/include]
>AIX 6100-06-05-1115
>
>hth
>Howard
>

Hi there!
   thanks for the reply!  I'm trying out your recipe now, with a few modifications.  I'm using --prefix=/opt/samba-4.0.0, --sysconfdir=/etc/samba-4.0.0, --localstatedir=/var/samba-4.0.0.
I've got Python 2.7.3 also, built into /opt/samba-4.0.0/python.  I also excluded --without-ldap.  I'm using the IBM-build freeware stuff in /opt/freeware.  But for this to work for WPAR support, I need the config files to go in /etc, and state files in /var, since those are writable in a WPAR, but /opt is not.

...

Didn't work, but I ran into trouble when setting OBJECT_MODE=64, so maybe all of my compiled stuff isn't 64 bit.  Should have been, though.  I guess I figured XLC would build 64-bit binaries by default.

Hmm...
Anyway, I'm going to try to build Samba 3.6.10...

Thanks!

-Ben


More information about the samba mailing list