I just compiled Samba (but in Solaris) with this
options:
export LDFLAGS="-L/opt/local/openldap/lib
-Wl,-R/opt/local/openldap/lib"
export CPPFLAGS=-I/opt/local/openldap/include
./configure --prefix=/opt/local/samba --with-winbind
--with-ads --with-ldap
--with-krb5=/opt/local/kerberos5
Maybe it can works for you.
Regards.
--- johsod@gmail.com wrote:
> Hi,
>
> I'm trying to compile Samba 3.0.14a with Active
> Directory support on
> AIX 5.3 with AIX C 7.0.
>
> The make process stops with the following error:
>
> Using FLAGS = -I/opt/compiled/include
> -I/opt/compiled/include
> -I/opt/freeware/include -D_LINUX_SOURCE_COMPAT
> -qmaxmem=32000 -I./popt
> -Iinclude
>
-I/home/johsod/freyasamba/samba/samba-3.0.14a/source/include>
-I/home/johsod/freyasamba/samba/samba-3.0.14a/source/ubiqx>
-I/home/johsod/freyasamba/samba/samba-3.0.14a/source/smbwrapper> -I.
> -I/opt/compiled/include -I/opt/compiled/include
> -I/opt/freeware/include
> -I/opt/freeware/include/openssl
> -I/opt/compiled/include/sasl
> -I/opt/compiled/include/gssapi
> -I/opt/compiled/include
> -I/home/johsod/freyasamba/samba/samba-3.0.14a/source
> LIBS = -liconv
> LDSHFLAGS > -Wl,-bexpall,-bM:SRE,-bnoentry,-berok
> -L/opt/compiled/lib -lcrypto -L/opt/freeware/lib
> -L/opt/compiled/lib
> -L/opt/compiled/lib/sasl2 -L/opt/compiled/lib
> LDFLAGS = -L/opt/compiled/lib -lcrypto
> -L/opt/freeware/lib
> -L/opt/compiled/lib -L/opt/compiled/lib/sasl2
> -L/opt/compiled/lib
> Compiling nsswitch/pam_winbind.c with -O2
> "nsswitch/pam_winbind.c", line 71.43: 1506-280 (W)
> Function argument
> assignment between types "void**" and "const void**"
> is not allowed.
> "nsswitch/pam_winbind.c", line 73.36: 1506-280 (W)
> Function argument
> assignment between types "struct pam_message**" and
> "const struct
> pam_message**" is not allowed.
> "nsswitch/pam_winbind.c", line 89.20: 1506-068 (W)
> Operation between
> types "char*" and "const char*" is not allowed.
> "nsswitch/pam_winbind.c", line 329.59: 1506-280 (W)
> Function argument
> assignment between types "void**" and "const void**"
> is not allowed.
> "nsswitch/pam_winbind.c", line 341.32: 1506-045 (S)
> Undeclared
> identifier PAM_AUTHTOK_RECOVER_ERR.
> "nsswitch/pam_winbind.c", line 362.36: 1506-068 (W)
> Operation between
> types "char*" and "const char*" is not allowed.
> "nsswitch/pam_winbind.c", line 370.30: 1506-068 (W)
> Operation between
> types "char*" and "const char*" is not allowed.
> "nsswitch/pam_winbind.c", line 376.38: 1506-068 (W)
> Operation between
> types "char*" and "const char*" is not allowed.
> "nsswitch/pam_winbind.c", line 434.40: 1506-280 (W)
> Function argument
> assignment between types "void**" and "const void**"
> is not allowed.
> "nsswitch/pam_winbind.c", line 451.1: 1506-277 (S)
> Syntax error:
> possible missing ';' or ','?
> "nsswitch/pam_winbind.c", line 454.25: 1506-277 (S)
> Syntax error:
> possible missing ';' or ','?
> "nsswitch/pam_winbind.c", line 459.15: 1506-277 (S)
> Syntax error:
> possible missing ';' or ','?
> "nsswitch/pam_winbind.c", line 448.1: 1506-485 (S)
> Parameter
> declaration list is incompatible with declarator for
> PAM_EXTERN.
> "nsswitch/pam_winbind.c", line 464.13: 1506-045 (S)
> Undeclared identifier ctrl.
> "nsswitch/pam_winbind.c", line 469.6: 1506-273 (E)
> Missing type in
> declaration of retval.
> "nsswitch/pam_winbind.c", line 471.39: 1506-045 (S)
> Undeclared
> identifier password.
> "nsswitch/pam_winbind.c", line 469.38: 1506-045 (S)
> Undeclared identifier pamh.
> "nsswitch/pam_winbind.c", line 469.44: 1506-045 (S)
> Undeclared identifier ctrl.
> "nsswitch/pam_winbind.c", line 469.15: 1506-221 (S)
> Initializer must
> be a valid constant expression.
> "nsswitch/pam_winbind.c", line 473.6: 1506-046 (S)
> Syntax error.
> make: 1254-004 The error code from the last command
> is 1.
>
>
> Stop.
>
>
> I'm now wondering if anyone else is experiencing
> this and if anyone
> has a solution to the problem?
>
> Thanks in advance,
>
> Regards,
>
> /Johan
> --
> To unsubscribe from this list go to the following
> URL and read the
> instructions:
> https://lists.samba.org/mailman/listinfo/samba
>
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs