Craig Green
2010-Apr-16 06:57 UTC
[Samba] krb5 library issues when Compiling 3.5.2 and 3.4.7 on AIX 5.3
I have been trying to configure/compile Samba 3.5.2 and 3.4.7 on AIX 5.3 with ML-11 and ML-10. The configure issues that I am getting only occur if I use --with-ads. I can run configure on both versions if I do not include ADS support. The errors I get are: checking for krb5_principal_get_realm... no checking for krb5_princ_realm... no configure: WARNING: krb5_mk_req_extended not found in -lkrb5 configure: WARNING: no CREATE_KEY_FUNCTIONS detected configure: WARNING: no GET_ENCTYPES_FUNCTIONS detected configure: WARNING: no KT_FREE_FUNCTION detected configure: WARNING: no KRB5_VERIFY_CHECKSUM_FUNCTION detected configure: error: krb5 libs don't have all features required for Active Directory support It appears that I am missing the krb5-libs, is this correct? If I do not include "--with-ads" I get the same WARNINGS but do not get the error. The error is now actually a warning, as per: configure: WARNING: krb5 libs don't have all features required for Active Directory support checking whether Active Directory and krb5 support is used... no I have also tried compiling KRB5 from source. It compiles and I can install what I have compiled but I still get the same warnings and error. I am using gcc, etc .from the pware.hvcc site. The packaged I have installed are: pware53.autoconf.rte 2.63.0.0 COMMITTED GNU autoconf 2.63 pware53.base.rte 5.3.0.0 COMMITTED pWare base for 5.3 pware53.bdb.rte 4.7.25.4 COMMITTED Berkeley DB 4.7.25 pware53.bison.rte 2.4.0.0 COMMITTED GNU bison 2.4 pware53.cyrus-sasl.rte 2.1.23.1 COMMITTED cyrus-sasl 2.1.23 pware53.gcc-g++.rte 4.2.4.0 COMMITTED GNU GCC pware53.gettext.rte 0.17.0.0 COMMITTED GNU gettext 0.17 pware53.gmp.rte 4.3.1.0 COMMITTED gmp 4.3.1 pware53.krb5.rte 1.7.1.1 COMMITTED MIT Kerberos 1.7.1 pware53.libiconv.rte 1.13.1.0 COMMITTED GNU libiconv 1.13.1 pware53.libtool.rte 1.5.26.0 COMMITTED GNU libtool 1.5.26 pware53.m4.rte 1.4.12.0 COMMITTED GNU m4 1.4.12 pware53.make.rte 3.81.0.0 COMMITTED GNU make 3.81 pware53.mpfr.rte 2.4.1.5 COMMITTED mpfr 2.4.1-p5 pware53.ncurses.rte 5.7.0.1 COMMITTED ncurses 5.7.0.1 pware53.openldap.rte 2.4.21.1 COMMITTED OpenLDAP 2.4.21 pware53.openssl.rte 0.9.8.13 COMMITTED OpenSSL 0.9.8m pware53.popt.rte 1.10.4.0 COMMITTED popt 1.10.4 pware53.readline.rte 6.1.0.0 COMMITTED GNU readline 6.1 pware53.zlib.rte 1.2.4.0 COMMITTED zlib 1.2.4 Here is my configure line ./configure --with-acl-support --with-utmp --with-ads \ --with-ldap --with-krb5=/opt/pware --with-pam \ --with-libiconv=/opt/pware --with-sendfile-support \ --prefix=/opt/pware/samba/3.4.7 --with-syslog --with-quotas \ --with-winbind=yes --with-aio-support=yes --with-automount \ --with-static-modules="vfs_aixacl2,vfs_aixacl" \ --with-shared-modules="idmap_rid,idmap_ad,idmap_tdb2" \ --with-dnsupdate Does anyone have any idea as to what the problem is? Regards, Craig Green Support Consultant - Unix Ultradata - Vision to Reality +61 3 9291 1742 www.ultradata.com.au Disclaimer Notice This message contains privileged and confidential information intended only for the use of the addressee named above. If you are not the intended recipient of this message you are hereby notified that you must not disseminate, copy or take any action or place any reliance on it. If you have received this message in error please notify Ultradata immediately on +61 3 9291 1600. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Ultradata Australia Pty. Ltd. To unsubscribe from receiving commercial electronic messages from Ultradata Australia please email unsubscribe at ultradata.com.au with the subject heading "Unsubscribe".
Michael Wood
2010-Apr-16 07:31 UTC
[Samba] krb5 library issues when Compiling 3.5.2 and 3.4.7 on AIX 5.3
On 16 April 2010 08:57, Craig Green <cgreen at ultradata.com.au> wrote:> I have been trying to configure/compile Samba 3.5.2 and 3.4.7 on AIX 5.3 with ML-11 and ML-10. > > The configure issues that I am getting only occur if I use --with-ads. > I can run configure on both versions if I do not include ADS support. > > The errors I get are: > > checking for krb5_principal_get_realm... no > checking for krb5_princ_realm... no > configure: WARNING: krb5_mk_req_extended not found in -lkrb5 > configure: WARNING: no CREATE_KEY_FUNCTIONS detected > configure: WARNING: no GET_ENCTYPES_FUNCTIONS detected > configure: WARNING: no KT_FREE_FUNCTION detected > configure: WARNING: no KRB5_VERIFY_CHECKSUM_FUNCTION detected > configure: error: krb5 libs don't have all features required for Active Directory support > > It appears that I am missing the krb5-libs, is this correct?No, it seems to find a kerberos library, but can't find the necessary functions in it. Are you sure it's finding the right kerberos library and not some old version that was installed as part of AIX?> If I do not include "--with-ads" I get the same WARNINGS but do not get the error. > The error is now actually a warning, as per: > > configure: WARNING: krb5 libs don't have all features required for Active Directory support > checking whether Active Directory and krb5 support is used... no > > I have also tried compiling KRB5 from source. ?It compiles and I can install what I have compiled but I still get the same warnings and error. > > I am using gcc, etc .from the pware.hvcc site. > The packaged I have installed are: > > ?pware53.autoconf.rte ? ? ?2.63.0.0 ?COMMITTED ?GNU autoconf 2.63 > ?pware53.base.rte ? ? ? ? ? 5.3.0.0 ?COMMITTED ?pWare base for 5.3 > ?pware53.bdb.rte ? ? ? ? ? 4.7.25.4 ?COMMITTED ?Berkeley DB 4.7.25 > ?pware53.bison.rte ? ? ? ? ?2.4.0.0 ?COMMITTED ?GNU bison 2.4 > ?pware53.cyrus-sasl.rte ? ?2.1.23.1 ?COMMITTED ?cyrus-sasl 2.1.23 > ?pware53.gcc-g++.rte ? ? ? ?4.2.4.0 ?COMMITTED ?GNU GCC > ?pware53.gettext.rte ? ? ? 0.17.0.0 ?COMMITTED ?GNU gettext 0.17 > ?pware53.gmp.rte ? ? ? ? ? ?4.3.1.0 ?COMMITTED ?gmp 4.3.1 > ?pware53.krb5.rte ? ? ? ? ? 1.7.1.1 ?COMMITTED ?MIT Kerberos 1.7.1 > ?pware53.libiconv.rte ? ? ?1.13.1.0 ?COMMITTED ?GNU libiconv 1.13.1 > ?pware53.libtool.rte ? ? ? 1.5.26.0 ?COMMITTED ?GNU libtool 1.5.26 > ?pware53.m4.rte ? ? ? ? ? ?1.4.12.0 ?COMMITTED ?GNU m4 1.4.12 > ?pware53.make.rte ? ? ? ? ?3.81.0.0 ?COMMITTED ?GNU make 3.81 > ?pware53.mpfr.rte ? ? ? ? ? 2.4.1.5 ?COMMITTED ?mpfr 2.4.1-p5 > ?pware53.ncurses.rte ? ? ? ?5.7.0.1 ?COMMITTED ?ncurses 5.7.0.1 > ?pware53.openldap.rte ? ? ?2.4.21.1 ?COMMITTED ?OpenLDAP 2.4.21 > ?pware53.openssl.rte ? ? ? 0.9.8.13 ?COMMITTED ?OpenSSL 0.9.8m > ?pware53.popt.rte ? ? ? ? ?1.10.4.0 ?COMMITTED ?popt 1.10.4 > ?pware53.readline.rte ? ? ? 6.1.0.0 ?COMMITTED ?GNU readline 6.1 > ?pware53.zlib.rte ? ? ? ? ? 1.2.4.0 ?COMMITTED ?zlib 1.2.4 > > Here is my configure line > > ./configure --with-acl-support --with-utmp --with-ads \ > --with-ldap --with-krb5=/opt/pware --with-pam \ > --with-libiconv=/opt/pware --with-sendfile-support \ > --prefix=/opt/pware/samba/3.4.7 --with-syslog --with-quotas \ > --with-winbind=yes --with-aio-support=yes --with-automount \ > --with-static-modules="vfs_aixacl2,vfs_aixacl" \ > --with-shared-modules="idmap_rid,idmap_ad,idmap_tdb2" \ > --with-dnsupdate > > Does anyone have any idea as to what the problem is?Maybe try the --with-krb5=base-dir configure option? -- Michael Wood <esiotrot at gmail.com>
Michael Wood
2010-Apr-16 07:32 UTC
[Samba] krb5 library issues when Compiling 3.5.2 and 3.4.7 on AIX 5.3
On 16 April 2010 09:31, Michael Wood <esiotrot at gmail.com> wrote:> On 16 April 2010 08:57, Craig Green <cgreen at ultradata.com.au> wrote:[...]>> Here is my configure line >> >> ./configure --with-acl-support --with-utmp --with-ads \ >> --with-ldap --with-krb5=/opt/pware --with-pam \ >> --with-libiconv=/opt/pware --with-sendfile-support \ >> --prefix=/opt/pware/samba/3.4.7 --with-syslog --with-quotas \ >> --with-winbind=yes --with-aio-support=yes --with-automount \ >> --with-static-modules="vfs_aixacl2,vfs_aixacl" \ >> --with-shared-modules="idmap_rid,idmap_ad,idmap_tdb2" \ >> --with-dnsupdate >> >> Does anyone have any idea as to what the problem is? > > Maybe try the --with-krb5=base-dir configure option?Sorry, I see you did. See if you can figure out if it is actually using that one. -- Michael Wood <esiotrot at gmail.com>
Michael Wood
2010-Apr-16 08:38 UTC
[Samba] krb5 library issues when Compiling 3.5.2 and 3.4.7 on AIX 5.3
Hi On 16 April 2010 09:59, <christoph.beyer at desy.de> wrote:> Hi, > > try --with-krb5=/path/to/your/kerberos/installation/rootI suggested this at the bottom of his message and then realised that he had done this.> or > > export CPPFLAGS="-I/your/krb/dir/include" > export LDFLAGS="$LDFLAGS -L/your/krb/dir/lib"This might be worth a try. -- Michael Wood <esiotrot at gmail.com>
William Jojo
2010-Apr-17 15:49 UTC
[Samba] krb5 library issues when Compiling 3.5.2 and 3.4.7 on AIX 5.3
---- Original message ---->Date: Fri, 16 Apr 2010 10:38:09 +0200 >From: Michael Wood <esiotrot at gmail.com> >Subject: Re: [Samba] krb5 library issues when Compiling 3.5.2 and 3.4.7 on AIX 5.3 >To: christoph.beyer at desy.de >Cc: Samba <samba at lists.samba.org> > >Hi > >On 16 April 2010 09:59, <christoph.beyer at desy.de> wrote: >> Hi, >> >> try --with-krb5=/path/to/your/kerberos/installation/root > >I suggested this at the bottom of his message and then realised that >he had done this. >The real problem is the ld command will not search for libs that end with .so unless you provide the -brtl option. BTW, 3.5.2 is available on the site, unless there are features you don't need. :-) The method of configuring Samba that I use for pWare is: env CC="gcc -O2 -Wl,-blibpath:/opt/pware/lib:/usr/lib:/lib,-brtl" \ CPPFLAGS="-I/opt/pware/include" \ CFLAGS="-O2 -I/opt/pware/include" \ LDFLAGS="-L/opt/pware/lib " \ ./configure --with-acl-support --with-utmp \ --with-ldap --with-krb5=/opt/pware \ --with-libiconv=/opt/pware --with-sendfile-support \ --prefix=/opt/pware --with-syslog --with-quotas \ --with-winbind=yes --with-aio-support=yes --with-automount \ --with-pam --with-acl-support \ --with-static-modules="vfs_aixacl2,vfs_aixacl" \ --with-shared-modules="idmap_rid,idmap_ad,vfs_gpfs,idmap_tdb2" Cheers, Bill>> or >> >> export CPPFLAGS="-I/your/krb/dir/include" >> export LDFLAGS="$LDFLAGS -L/your/krb/dir/lib" > >This might be worth a try. > >-- >Michael Wood <esiotrot at gmail.com> >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/options/samba