Originally posted by: aixunix33
No,i think is a little difficult but if someone want to help we can try
I have a fresh AIX machine with XLC(trial version) not again expired,
is usefull to use GCC,simple don't compile samba on aix giving error.
Samba3 is not more supported,so is useful to compile it(but give error if try to compile)
We can try samba 4.0,4.1,4.2
I put the error compiling here,maybe someone can help
Let start with 4.0.26,the latest 4.0 release from samba
I use this configure
export CC=xlc CPPFLAGS='-I/opt/freeware/include' LDFLAGS=' -L/opt/freeware/lib' ./configure --check-c-compiler=xlc --with-ads --prefix=/opt/samba4 --sysconfdir=/etc/samba4 --localstatedir=/var --with-statedir=/var/lib/samba4 --with-privatedir=/var/lib/samba4/private --with-piddir=/var/run/samba4 --with-cachedir=/var/lib/samba4/private --with-lockdir=/var/lock/samba4 --with-logfilebase=/var/log/samba4 --with-sockets-dir=/var/run/samba4 --with-configdir=/etc/samba4 && make
the configure start,compile ok until line n° 512,then give this error
[ 513/3672] Compiling lib/tevent/tevent_wakeup.c
[ 514/3672] Compiling lib/tevent/pytevent.c
[ 515/3672] Compiling lib/addns/dnsquery.c
"../lib/tevent/pytevent.c", line 639.62: 1506-280 (W) Function argument assignment between types "char**" and "const char* const*" is not allowed.
[ 516/3672] Compiling lib/addns/dnsrecord.c
[ 517/3672] Compiling lib/addns/dnsutils.c
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax error: possible missing ';' or ','?
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 41.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for GSSAPI_CPP_START.
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 49.28: 1506-277 (S) Syntax error: possible missing ';' or ','?
"../source4/heimdal/lib/gssapi/gssapi/gssapi_spnego.h", line 41.1: 1506-485 (S) Parameter declaration list is incompatible with declarator for GSSAPI_CPP_START.
Waf: Leaving directory `/usr/local/src/samba-4.0.26/bin'
Build failed:
-> task failed (err #1):
{task: cc dnsrecord.c -> dnsrecord_1.o}
-> task failed (err #1):
{task: cc dnsutils.c -> dnsutils_1.o}
make: The error code from the last command is 1.
Let's try without include
LDFLAGS=' -L/opt/freeware/lib' ./configure --check-c-compiler=xlc --with-ads --prefix=/opt/samba4 --sysconfdir=/etc/samba4 --localstatedir=/var --with-statedir=/var/lib/samba4 --with-privatedir=/var/lib/samba4/private --with-piddir=/var/run/samba4 --with-cachedir=/var/lib/samba4/private --with-lockdir=/var/lock/samba4 --with-logfilebase=/var/log/samba4 --with-sockets-dir=/var/run/samba4 --with-configdir=/etc/samba4 && make clean && make
the configure give this error,in my case without ads is useless
Checking for ldap_add_result_entry : ok
Checking whether ldap_set_rebind_proc takes 3 arguments : ok
Active Directory support not available: LDAP support ist not available.
/usr/local/src/samba-4.0.26/source3/wscript:774: error: Active Directory support not found. Use --without-ads for building without Active Directory support.
any suggestion?
Next is 4.1
#AIX-Forum