httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Declerck Michael-W30479" <>
Subject RE: [users@httpd] mod_authnz_ldap for 2.2.2
Date Fri, 28 Jul 2006 19:56:11 GMT
I went to a clean environment shell and tried Elaine's suggestions. The
Apache installed successfully!
However, there was one condition during the install: I could not install
Apache into it's original home directory location.
I had to install it in /usr/local/apache2.
Everytime I treid to install in the old location, I would get an erro
saying "libtool will only install apr into a directory ending in
I tried recompiling apr into my home directory using the steps on the page, and I got the same
error as above. 
I tried using the --with-apr and --with-apr-util flags pointing to my
original install in the home directory, but that only caused errors in
the make.
Thus, I have apache installed in two places on my machine (oh double the
Does anyone know if the modules I installed will be availabe to both
Any advice is appreciated,


From: Declerck Michael-W30479 
Sent: Friday, July 28, 2006 11:10 AM
Subject: RE: [users@httpd] mod_authnz_ldap for 2.2.2

I tried the extra --with-ldap-include and --with-ldap-lib flags, but I
get the same error.
Do you think this may have to do with the environment variables
See my previous message for what they are set to (LD_LIBRARY_PATH is set
to /directory/of/previous/apache/install/lib:${LD_LIBRARY_PATH}).
I have been trying to do the apr-util recompile as listed on the page.
The first step on the site (see link above) which is to compile apr, it
compiles _very quickly_ (the make lasts about two lines). 
Otherwise, this first step compiles without incident into the previous
Apache install folder in my home directory.
The second step apr-util configuration runs without incident, but during
the make I get the following error:
libtool: install: error: cannot install `' to a directory
not ending in /directory/of/previous/apache/install//lib
make: *** [install] Error 1

despite the prefix flag being set to
/directory/of/previous/apache/install, it seems like it is looking
somewhere else. But I don't know how to tell.
I'm thinking that I should have never compiled Apache the first time
with a prefix, I have a feeling this has not helped my problems.
So I tried to compile apache again (with all your suggested flags below)
without the prefix. I experienced the same apr library errors during the
make as listed in my previous email.
Again, I am not sure if this has anything to do with the environment
variables I have set, to tell you the truth I am not really sure when or
when not to use them.
The problems seem to pile on top of themselves.
I thank you for your response, if you have any further advice I am
grateful to hear it.


From: elaine [] 
Sent: Friday, July 28, 2006 8:12 AM
Subject: Re: [users@httpd] mod_authnz_ldap for 2.2.2


Do you have any previous apr installation ? 
If you don't have, try to use the bundled apr and apr-util that comes
with the apache httpd 
source releases. To do this, you need to include these options into your
apache configuration:



Declerck Michael-W30479 wrote:

	My current situation of mod_authnz_ldap is still not good.
	The issue was the ldap libraries which I had downloaded from the
	OpenLDAP source.
	The libraries were being installed in /usr/local/lib.
	I had to point LDFLAGS to -L/usr/local/lib, and CPPFLAGS and
	The Apache configure had no errors with these environment
	I get these errors during the Apache make:
	server/.libs/libmain.a(exports.o):(.data+0xe48): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe4c): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe50): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe54): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe58): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe5c): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe60): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe64): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe68): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe6c): undefined
reference to
	server/.libs/libmain.a(exports.o):(.data+0xe70): undefined
reference to
	modules/aaa/.libs/libmod_authnz_ldap.a(mod_authnz_ldap.o): In
	reference to `apr_ldap_url_parse'
	collect2: ld returned 1 exit status
	make[1]: *** [httpd] Error 1
	I have very little idea of what to do.
	Any help at all is appreciated.
	-----Original Message-----
	From: Declerck Michael-W30479 
	Sent: Thursday, July 20, 2006 2:31 PM
	Subject: RE: [users@httpd] mod_authnz_ldap for 2.2.2
	Thank you for the redirect to /usr/lib/apache2/modules/, I was
	why none of the modules had the .so extension in the
	Upon looking in that folder, I found a module
which the
	link below suggests was replaced by mod_authnz_ldap in the
	The documentation said that the most significant change between
2.0 and
	2.2 was the authorization modules
	I have been searching around in the Ubuntu Dapper servertalk and
	forums, but have found nothing as yet.
	I am going to try to use the and see how the
	takes it.
	I will let you know what happens Kenneth.
	If anyone has found anywhere to download standard 2.2 modules
such as
	mod_auth_basic, mod_authn_file, mod_authz_user,
mod_authz_groupfile, and
	mod_authnz_ldap please let me know. 
	Your help is always appreciated.
	Michael DeClerck
	-----Original Message-----
	From: Kenneth Stueflotten Svee []
	Sent: Thursday, July 20, 2006 3:43 AM
	Subject: Re: [users@httpd] mod_authnz_ldap for 2.2.2
	[ Declerck Michael-W30479 ]

		I installed Apache2.2.2 several weeks ago on my Ubuntu
Linux machine 
		(which is similar to Debian), and also on my Windows XP
machine. I 
		went to my /etc/apache2/mods-available/ directory
looking for the 
		mod_authnz_ldap package which (according to should be

	Seems to be an Ubuntu build issue. You should try the
	features (forums and whatnot).

		However, the mod_authnz_ldap module does not exist in
that directory, 
		nor do many other modules which the Apache documentation
		should exist.

	The modules them selves are found (on my Ubuntu Dapper) in
	/usr/lib/apache2/modules/, and haven't found any
	either. The module is however not enabled by default when
	Apache2.2, so it may be it's available as an addon, but a quick
	apt-cache search did not reveal anything. Again, try the Ubuntu
	Kenneth Svee
	The official User-To-User support forum of the Apache HTTP
	See <URL:>
<>  for more info.
	To unsubscribe, e-mail:
	   "   from the digest:
	For additional commands, e-mail:
	The official User-To-User support forum of the Apache HTTP
	See <URL:>
<>  for more info.
	To unsubscribe, e-mail:
	   "   from the digest:
	For additional commands, e-mail:
	The official User-To-User support forum of the Apache HTTP
Server Project.
	See <URL:>
<>  for more info.
	To unsubscribe, e-mail:
	   "   from the digest:
	For additional commands, e-mail:

View raw message