[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: config failing on AIX 4.3.3



How should I re-configure sasl???

I attempted to reconfigure it as follows:
	export ac_cv_func_getaddrinfo=no
	export ac_cv_func_getnameinfo=no

	./configure --without-saslauthd

Here are the last few steps in the make process that fails:

      /bin/sh ../libtool --mode=link gcc  -Wall -W -Wall -g -O2 \
	-L/usr/local/lib  -o dbconverter-2  dbconverter-2.o \
	../sasldb/libsasldb.la ../lib/libsasl2.la   
	mkdir .libs
	libtool: link: warning: this platform does not like uninstalled
shared 	libraries
	libtool: link: `dbconverter-2' will be relinked during installation
	gcc -Wall -W -Wall -g -O2 -L/usr/local/lib -o .libs/dbconverter-2 \
	dbconverter-2.o ../sasldb/.libs/libsasldb.al \
	-L/dnload/cyrus_sasl/cyrus-sasl-2.1.9/lib/.libs \
	-lsasl2 -ldl -L/dnload/cyrus_sasl/cyrus-sasl-2.1.9/lib/.libs \
	-L/usr/local/lib
	ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestInit
	ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestUpdate
	ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestFinal
	ld: 0711-317 ERROR: Undefined symbol: .EVP_get_digestbyname
	ld: 0711-317 ERROR: Undefined symbol: .EVP_cleanup
	ld: 0711-317 ERROR: Undefined symbol: .OpenSSL_add_all_digests
	ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
	collect2: ld returned 8 exit status
	make: 1254-004 The error code from the last command is 1.

> -----Original Message-----
> From: Howard Chu [mailto:hyc@highlandsun.com] 
> Sent: Tuesday, November 12, 2002 7:17 PM
> To: 'Bennett, Tony - CNF'; 'James Zappia'; 
> openldap-software@OpenLDAP.org
> Subject: RE: config failing on AIX 4.3.3
> 
> 
> Your libsasl is built strangely; it had a dependency on 
> OpenSSL's libcrypto
> but wasn't linked with it. Generally libsasl itself doesn't 
> use any crypto
> routines, only the actual plugins do, so it's odd that you 
> ran into this
> problem.
> 
>   -- Howard Chu
>   Chief Architect, Symas Corp.       Director, Highland Sun
>   http://www.symas.com               http://highlandsun.com/hyc
>   Symas: Premier OpenSource Development and Support
> 
> > -----Original Message-----
> > From: owner-openldap-software@OpenLDAP.org
> > [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of 
> Bennett, Tony -
> CNF
> 
> > Thanks for the response James...
> >
> > However, "configure" failed in the same place.
> >
> > It appears that the compile labeled "configure:19575:" below,
> > is not specifying "-lcrypto".
> >
> > Is this a problem with the "configure" script????
> >
> > -tony
> >
> > > -----Original Message-----
> > > From: James Zappia [mailto:James.Zappia@digitalinsight.com]
> > > Sent: Tuesday, November 12, 2002 3:37 PM
> > > To: 'Bennett, Tony - CNF'; 'openldap-software@OpenLDAP.org'
> > > Subject: RE: config failing on AIX 4.3.3
> > >
> > >
> > > It looks like /usr/local/ssl/lib isn't in your LIBPATH
> > > environment variable
> > > so the configure script isn't finding libcrypto.a (hence the
> > > ld errors).
> > >
> > > Try to do something like...
> > >
> > > # LIBPATH=/usr/local/ssl/lib:$LIBPATH ./configure
> > >
> > > Or modify ~/.profile to include /usr/local/ssl/lib
> > >
> > > Regards,
> > > James
> > >
> > >
> > > -----Original Message-----
> > > From: Bennett, Tony - CNF [mailto:Bennett.Tony@cnf.com]
> > > Sent: Tuesday, November 12, 2002 2:40 PM
> > > To: 'openldap-software@OpenLDAP.org'
> > > Subject: config failing on AIX 4.3.3
> > >
> > >
> > > Please help a ldap newbie...configure openLDAP.
> > >
> > > Overall goal:	enable Apache's mod_auth_ldap on an AIX
> > 4.3.3 RS6000
> > >                   to authenticate against Microsoft's
> > Active Directory
> > >
> > > I have installed the following products (with their
> > configure command
> > > listed)
> > > which I believe to be prerequisites to installing and
> > > configuring openLDAP:
> > >
> > > 	openssl 	0.9.6g
> > > 			./config threads no-shared no-dso no-asm no-rc5
> > > no-idea
> > > 			installs into: /usr/local/ssl
> > > 	BerkeleyDB 	4.1.24
> > > 			cd /dnload/bdb/db-4.1.24/build_unix
> > > 			CC=gcc ../dist/configure
> > > 			installs into /usr/local/Berkely.4.1
> > >                           which I've symlinked to
> > > /usr/local/Berkely_curr
> > > 	cyrus-sasl	2.1.9
> > > 			export ac_cv_func_getaddrinfo=no
> > > 			export ac_cv_func_getnameinfo=no
> > > 			./configure --with-openssl=/usr/local/ssl  \
> > >             		--enable-static                \
> > >             		--disable-shared               \
> > >             		--without-saslauthd
> > > 			installs includes: /usr/local/include/sasl
> > > 				   libs:     /usr/local/lib/sasl2
> > >
> > > Next I've been trying numerous "configure" options, and never
> > > been able to
> > > get "configure" to complete.
> > >
> > > Here's the latest "configure" on openLDAP:
> > >
> > > 	          CC=gcc \
> > > 	          CPPFLAGS="-D_THREAD_SAFE -I/usr/local/include \
> > > 	          -I/usr/local/ssl/include \
> > > 	          -I/usr/local/BerkeleyDB_curr/include" \
> > > 	          LDFLAGS="-L/usr/local/ssl/lib     \
> > > 	         -L/usr/local/lib \
> > > 	         -L/usr/local/BerkeleyDB_curr/lib \
> > > 	         -mthreads " \
> > > 	         ./configure --with-cyrus-sasl  \
> > >
> > > The last couple of errors in my config.log follow
> > > (BTW: it looks like the EVP_* functions causing the link
> > > failures below
> > > are located in libcrypto.a at /usr/local/ssl/lib/libcrypto.a):
> > >
> > > 	configure:19556: checking for sasl_client_init in -lsasl2
> > > 	configure:19575: gcc -o conftest -g -O2 -D_THREAD_SAFE \
> > >       -I/usr/local/include \
> > >       -I/usr/local/ssl/include \
> > >       -I/usr/local/BerkeleyDB_curr/include \
> > >       -L/usr/local/ssl/lib             \
> > >       -L/usr/local/lib         	\
> > >       -L/usr/local/BerkeleyDB_curr/lib -mthreads  conftest.c
> > > -lsasl2   1>&5
> > > 	ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestInit
> > > 	ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestUpdate
> > > 	ld: 0711-317 ERROR: Undefined symbol: .EVP_DigestFinal
> > > 	ld: 0711-317 ERROR: Undefined symbol: .EVP_get_digestbyname
> > > 	ld: 0711-317 ERROR: Undefined symbol: .EVP_cleanup
> > > 	ld: 0711-317 ERROR: Undefined symbol: .OpenSSL_add_all_digests
> > > 	ld: 0711-345 Use the -bloadmap or -bnoquiet option to
> > > obtain more
> > > information.
> > > 	collect2: ld returned 8 exit status
> > > 	configure: failed program was:
> > > 	#line 19564 "configure"
> > > 	#include "confdefs.h"
> > > 	/* Override any gcc2 internal prototype to avoid an error.  */
> > > 	/* We use char because int might match the return type of a gcc2
> > > 	    builtin and then its argument prototype would still
> > > apply.  */
> > > 	char sasl_client_init();
> > >
> > > 	int main() {
> > > 	sasl_client_init()
> > > 	; return 0; }
> > > 	configure:19594: checking for sasl_client_init in -lsasl
> > > 	configure:19613: gcc -o conftest -g -O2 -D_THREAD_SAFE -I/usr/
> > > local/include -I/usr/local/ssl/include -I/usr/local/BerkeleyDB
> > > 	_curr/include -L/usr/local/ssl/lib             -L/usr/local/lib
> > > -	L/usr/local/BerkeleyDB_curr/lib -mthreads  conftes
> > > 	t.c -lsasl   1>&5
> > > 	collect2: Library libsasl not found
> > > 	configure: failed program was:
> > > 	#line 19602 "configure"
> > > 	#include "confdefs.h"
> > > 	/* Override any gcc2 internal prototype to avoid an error.  */
> > > 	/* We use char because int might match the return type of a gcc2
> > > 	    builtin and then its argument prototype would still
> > > apply.  */
> > > 	char sasl_client_init();
> > >
> > > 	int main() {
> > > 	sasl_client_init()
> > > 	; return 0; }
> > >
> > > Am I (at least) headed in the right direction???
> > >
> > > Any help, tips, pointers, or commiseration would be appreciated.
> > >
> > > -tony
> > >
> >
> >
>