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

2013-01-14 Thread Howard Allison


samba-boun...@lists.samba.org wrote on 11.01.2013 18:04:21:

 Von: Benjamin Huntsman bhunts...@mail2.cu-portland.edu
 An: samba@lists.samba.org samba@lists.samba.org,
 Datum: 11.01.2013 18:05
 Betreff: Re: [Samba] Samba 4 on AIX with XLC
 Gesendet von: samba-boun...@lists.samba.org

 Sorry to be an annoyance, but I'm at a loss here and begging for help...

 The Python-based build says it completes successfully, and the make
 install also says it completes successfully.  Yet it doesn't copy
 all the required shared libraries, and the resultant binaries don't
 run.  I copied the missing shared objects by hand, which may or may
 not be a very good solution.  I put them all in /opt/samba-4.0.0/
 lib, but I suspect some of them were intended to live in different
 subdirectories thereof.

 Once the named libraries were copied, it then tells me it can't find
 the following symbols:

 aixacl_to_smbacl
 aixacl_smb_to_aixacl

 Don't know what to do next...

 So, my questions are:

 1. What can be done about the libraries not getting copied?  Is this
 a bug in my build, or in the build system?
 2. Do I need to move certain ones of them to other subdirectories in
 the lib directory?
 3. If I tracked down the ones below and copied them by hand, might
 there be others still that I missed?
 4. With all the subdirectories under lib, am I going to have to
 define a pretty complicated LD_LIBRARY_PATH to get this to run?
 5. Is there a way I can build the whole thing static from the
 Python-based build system?  I didn't see an option for that with ./
 configure --help.

 Anyway, I think we're crazy close, but I'm still missing that last
 little hurdle.  Many thanks in advance!!

 -Ben

 
 From: samba-boun...@lists.samba.org [samba-boun...@lists.samba.org]
 on behalf of Benjamin Huntsman [bhunts...@mail2.cu-portland.edu]
 Sent: Wednesday, January 09, 2013 3:18 PM
 To: samba@lists.samba.org
 Subject: Re: [Samba] Samba 4 on AIX with XLC

 Just FYI, here are at least some of the shared objects that don't
 get copied to the destination when running make install:

 libtalloc.so
 libgssapi-samba4.so
 libtdb.so
 libtevent.so
 libkrb5-samba4.so
 libroken-samba4.so
 libasn1-samba4.so
 libhcrypto-samba4.so
 libcom_err-samba4.so
 libwind-samba4.so
 libldb.so
 libheimbase-samba4.so
 libhx509-samba4.so
 libpyldb-util.so

 There may be others, but by copying those into /opt/samba-4.0.0/lib,
 I was able to get my compiled smbd to at least spit out the following
message:

 bash-3.2# /opt/samba-4.0.0/sbin/smbd -b
 exec(): 0509-036 Cannot load program /opt/samba-4.0.0/sbin/smbd
 because of the following errors:
 rtld: 0712-001 Symbol aixacl_to_smbacl was referenced
   from module /opt/samba-4.0.0/lib/private/libsmbd_base.so(),
 but a runtime definition
   of the symbol was not found.
 rtld: 0712-001 Symbol aixacl_smb_to_aixacl was referenced
   from module /opt/samba-4.0.0/lib/private/libsmbd_base.so(),
 but a runtime definition
   of the symbol was not found.
 bash-3.2#


 So looks like I'm still missing aixacl_to_smbacl and
 aixacl_smb_to_aixacl.  Any idea where I'd get those, and why they're
 not being found?

 Thanks!

 -Ben
 --
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





VERTRAULICHKEIT: Diese Nachricht ist ausschließlich für denjenigen
bestimmt, an den sie adressiert ist und kann vertrauliche Informationen
enthalten. Falls Sie nicht der Empfänger dieser Nachricht sind, weisen wir
Sie darauf hin, dass die unberechtigte Weitergabe oder Verwendung sowie das
unberechtigte Verteilen oder Kopieren dieser Nachricht strikt untersagt
sind. Falls Sie diese Nachricht irrtümlich 

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

2013-01-14 Thread Benjamin Huntsman
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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba