You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by karim Bendadda <ka...@gmail.com> on 2007/10/23 15:29:16 UTC

Have you tried to compile mod_auth_ldap??

Hi everybody,

    I'm trying to make the mod_auth_ldap.c (
http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.html). I
installed the openldap but I have the same error when doying the make (I
think the compilation is ok), Have you any idea???

debian:/usr/local/modauthldap_apache2# make
/usr/local/apache2/bin/apxs -c -DHAVE_SOCKET=1 -DHAVE_HTONL=1
-DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1 -DHAVE_YP_GET_DEFAULT_DOMAIN=1
-DHAVE_LIBNSL=1 -DHAVE_RES_SEARCH=1 -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1
-DHAVE_DN_SKIPNAME=1 -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1
-I/usr/local/iplanet/include  mod_auth_ldap.c
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread
-I/usr/local/apache2/include  -I/usr/local/apache2/include
-I/usr/local/apache2/include  -I/usr/local/iplanet/include -DHAVE_SOCKET=1
-DHAVE_HTONL=1 -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
-DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1 -DHAVE_RES_SEARCH=1
-DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1 -DHAVE_NSLDAP=1
-DHAVE_LDAP=1 -DHAVE_SSL=1  -c -o mod_auth_ldap.lo mod_auth_ldap.c && touch
mod_auth_ldap.slo
mod_auth_ldap.c:61:24: error: apr_compat.h: No such file or directory
mod_auth_ldap.c: In function 'create_ldap_auth_dir_config':
mod_auth_ldap.c:322: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c:337: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_ldap_server':
mod_auth_ldap.c:364: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_ldap_deref':
mod_auth_ldap.c:403: warning: initialization makes pointer from integer
without a cast
mod_auth_ldap.c: In function 'set_base_dn':
mod_auth_ldap.c:445: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_sub_dn':
mod_auth_ldap.c:453: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_bind_dn':
mod_auth_ldap.c:461: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_bind_pass':
mod_auth_ldap.c:469: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_ca_cert_db_path':
mod_auth_ldap.c:491: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_uid_attr':
mod_auth_ldap.c:501: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_uid_attr_alt':
mod_auth_ldap.c:509: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_group_attr':
mod_auth_ldap.c:517: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'set_ldapauthoritative':
mod_auth_ldap.c:525: warning: initialization makes pointer from integer
without a cast
mod_auth_ldap.c: At top level:
mod_auth_ldap.c:558: error: expected expression before
'ldap_auth_config_rec'
mod_auth_ldap.c:558: error: initializer element is not constant
mod_auth_ldap.c:558: error: (near initialization for
'ldap_auth_cmds[0].cmd_data')
mod_auth_ldap.c:631: error: expected expression before
'ldap_auth_config_rec'
mod_auth_ldap.c:631: error: initializer element is not constant
mod_auth_ldap.c:631: error: (near initialization for
'ldap_auth_cmds[14].cmd_data')
mod_auth_ldap.c:635: error: expected expression before
'ldap_auth_config_rec'
mod_auth_ldap.c:635: error: initializer element is not constant
mod_auth_ldap.c:635: error: (near initialization for
'ldap_auth_cmds[15].cmd_data')
mod_auth_ldap.c:652: error: expected expression before
'ldap_auth_config_rec'
mod_auth_ldap.c:652: error: initializer element is not constant
mod_auth_ldap.c:652: error: (near initialization for
'ldap_auth_cmds[17].cmd_data')
mod_auth_ldap.c:656: error: expected expression before
'ldap_auth_config_rec'
mod_auth_ldap.c:656: error: initializer element is not constant
mod_auth_ldap.c:656: error: (near initialization for
'ldap_auth_cmds[18].cmd_data')
mod_auth_ldap.c: In function 'check_user_authentication':
mod_auth_ldap.c:1348: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c: In function 'check_user_authorization':
mod_auth_ldap.c:1751: error: 'ap_array_header_t' undeclared (first use in
this function)
mod_auth_ldap.c:1751: error: (Each undeclared identifier is reported only
once
mod_auth_ldap.c:1751: error: for each function it appears in.)
mod_auth_ldap.c:1751: error: expected expression before ')' token
mod_auth_ldap.c:1751: error: invalid operands to binary *
mod_auth_ldap.c:1751: error: called object '<erroneous-expression>' is not a
function
mod_auth_ldap.c:1751: warning: assignment from incompatible pointer type
mod_auth_ldap.c:1927: warning: assignment makes pointer from integer without
a cast
mod_auth_ldap.c:2035: warning: assignment makes pointer from integer without
a cast
apxs:Error: Command failed with rc=65536


Thank you for help.

Re: Have you tried to compile mod_auth_ldap??

Posted by Joe Lewis <jo...@joe-lewis.com>.
karim Bendadda wrote:
> I see that's why id doesn't work...
>
> muquit.com is the website where I found the mod_auth_ldap... It explains how
> to install it and how it works
>   

Well, I have it running on 2.2 on a BSD server.  It helps to get the
right package from that website.  (Use the link to get to a page that is
specific to the 2.0 branch if that is what you are using, or look at the
individual links on the website to find which one of those is what you
want - be careful - most is for 1.3.x rather than living versions).  If
you have further problems, you will probably want to contact the author
of that module (the e-mail is on the site) as the author will want to
know what is wrong, and may know how to fix it faster than anyone else.

Joe
-- 
Joseph Lewis <http://sharktooth.org/>
"Divide the fire, and you will sooner put it out." - Publius Syrus

Re: Have you tried to compile mod_auth_ldap??

Posted by Joe Lewis <jo...@joe-lewis.com>.
I apologize for cluttering up all of the mailboxes on this list.  I am
sending this response back out to the list so that is is archived for
any search lists (if anyone tries this in the future).  The answer isn't
necessarily good, but it does work.

DISCLAIMER : Please note that this list doesn't support this extension -
but if questions on compiling or coding or porting a module arise, we
can help as long as people do a little leg work.  I only jumped in
because I've used the module before.  I am not the author.

Now, to the battlements :

I dropped back to the 2.12 (which is a subsequent version of the one I
have on my BSD server).  I pulled down the source, and tried to compile
it (it claimed to work with Apache 2.0, and I've had great success
moving modules from 2.0 to 2.2.x).

Note, this test was not done on the BSD server, but on a SLES
"wonderland" server.  Once configured using the line :

 ./configure --with-apache-dir=/usr/ --with-ldap-dir=/usr/

and adding the /usr/sbin/apxs2 to the APXS= setting in the Makefile (I'm
on SuSE, again), I tried to run a "make", which failed with the same
errors.  Apparently, the author of the module went back to 1.3.x
mentality and had the same include line in there that was failing for
you - so 2.2 is struggling with that.  I changed from "ap_compat.h" to
"apr_compat.h", and tried it again.

This time it failed on "APR_XOffsetOf" - which is not defined anywhere. 
After changing all occurrences of this to "APR_OFFSETOF", (and also an
"ap_array_header_t" to "apr_array_header_t"), it compiles.  But it
complains that it isn't portable due to the lib-tool used.  This could
be system-specific (I'm guessing that it is).  You will end up with a
mod_auth_ldap.so in a .libs/ directory, and you should be able to use that.

I strongly suggest that you take this information back to the original
author.  We can't fix the code for the author on that website, and since
Karim has already tried, I suggest Karim continue to do so.  The same
include issues will exist in the 3.11 version.  I don't know what else
is in that one.

Joe

karim Bendadda wrote:
>
>     <http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html>
>     >     >     >
>     >     >     > I think that's compile but the make doesn't work. I
>     tried
>     >     to contact
>     >     >     > the author he doesn't answer...
>

This is too bad.  It had a good life as an extension.  The current
modules shipping with the apache source should suffice for what I need
in the future.

Joe
-- 
Joseph Lewis <http://sharktooth.org/>
"Divide the fire, and you will sooner put it out." - Publius Syrus

Re: Have you tried to compile mod_auth_ldap??

Posted by karim Bendadda <ka...@gmail.com>.
I tried just this one:
http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html

I think that's compile but the make doesn't work. I tried to contact the
author he doesn't answer...

2007/10/23, Joe Lewis <jo...@joe-lewis.com>:
>
> There was a 3.11 on the first link you sent that claimed compatibility
> with 2.2.x - did you try that one?
>
> Joe
>
> karim Bendadda wrote:
> > Yes I m using apache 2.2.6. I'm trying to use the mod_authnz_ldap
> > module but I have already installed the apache and I want to compile
> > manually the mod_authnz_ldap (or the mod_auth_ldap_apache2) without
> > recompiling apache. I want to make some changes on the source code of
> > the module and load it as a dynamic module. My problème is I don't now
> > how to compile it manually .
> >
> >
> >
> > 2007/10/23, Joe Lewis <joe@joe-lewis.com <ma...@joe-lewis.com>>:
> >
> >     Are you using apache 2.2?
> >
> >     karim Bendadda wrote:
> >     > I m sorry I have made a mistake It's the Apache 2.0.x module that
> I
> >     > have tried to compile not the one I have refered in my first mail.
> >     > It's the mod_auth_ldap_apache2  that causes me  compilations
> >     problems.
> >     >
> >     >
> >     >
> >     > 2007/10/23, Joe Lewis <joe@joe-lewis.com
> >     <ma...@joe-lewis.com> <mailto:joe@joe-lewis.com
> >     <ma...@joe-lewis.com>>>:
> >     >
> >     >     You do realize that a section on that website said :
> >     >
> >     >     [quote]
> >     >     *-NOTICE-*
> >     >
> >     >     If you are looking for the module for *Apache 2.0.x*, please
> >     visit the
> >     >     page mod_auth_ldap_apache2.html
> >     >     <
> >     >
> >
> http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html
> >.
> >     >     The module for Apache 2.0.x has many more features, however,
> >     I plan to
> >     >     put all the features back to the module for Apache 1.3.x as
> time
> >     >     permits.
> >     >     [/quote]
> >     >
> >     >     You may want to try downloading a different (more recent)
> >     version.
> >     >
> >     >     Joe
> >     >
> >     >     karim Bendadda wrote:
> >     >     > I see that's why id doesn't work...
> >     >     >
> >     >     > muquit.com <http://muquit.com> <http://muquit.com> is the
> >     website where I found the
> >     >     mod_auth_ldap... It explains how
> >     >     > to install it and how it works
> >     >     >
> >     >     > I will try to install the new module. But how can I compile
> it
> >     >     without
> >     >     > recompiling the Apache sources??
> >     >     >
> >     >     > Thanks for your  answering so fast.
> >     >     >
> >     >     > 2007/10/23, Nick Kew <nick@webthing.com
> >     <ma...@webthing.com> <mailto:nick@webthing.com
> >     <ma...@webthing.com>>>:
> >     >     >
> >     >     >> On Tue, 23 Oct 2007 15:29:16 +0200
> >     >     >> "karim Bendadda" < kakibend@gmail.com
> >     <ma...@gmail.com>
> >     >     <mailto:kakibend@gmail.com <ma...@gmail.com>>>
> wrote:
> >     >     >>
> >     >     >>
> >     >     >>> Hi everybody,
> >     >     >>>
> >     >     >>>     I'm trying to make the mod_auth_ldap.c (
> >     >     >>>
> >     >     >> That'll be with apache 2.0, I presume?  The 2.2 version is
> >     >     >> mod_authnz_ldap.
> >     >     >>
> >     >     >>
> >     >     >>>
> >     >
> >
> http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.html).
> >     >     >>>
> >     >     >> Who or what is muquit.com <http://muquit.com>
> >     <http://muquit.com <http://muquit.com>>?
> >     >     >>
> >     >     >>
> >     >     >>> I installed the openldap but I have the same error when
> >     doying
> >     >     the
> >     >     >>> make (I think the compilation is ok), Have you any idea???
> >     >     >>>
> >     >     >>> debian:/usr/local/modauthldap_apache2# make
> >     >     >>> /usr/local/apache2/bin/apxs -c -DHAVE_SOCKET=1
> >     -DHAVE_HTONL=1
> >     >     >>> -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> >     >     >>> -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1
> >     -DHAVE_RES_SEARCH=1
> >     >     >>> -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> >     >     >>> -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1
> >     >     >>> -I/usr/local/iplanet/include
> >     >     >>> mod_auth_ldap.c /usr/local/apache2/build/libtool --silent
> >     >     >>> --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT
> >     >     -D_GNU_SOURCE
> >     >     >>> -D_LARGEFILE64_SOURCE -g -O2 -pthread
> >     -I/usr/local/apache2/include
> >     >     >>> -I/usr/local/apache2/include -I/usr/local/apache2/include
> >     >     >>> -I/usr/local/iplanet/include -DHAVE_SOCKET=1
> -DHAVE_HTONL=1
> >     >     >>> -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> >     >     >>> -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1
> >     -DHAVE_RES_SEARCH=1
> >     >     >>> -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> >     >     >>> -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1  -c -o
> >     mod_auth_ldap.lo
> >     >     >>> mod_auth_ldap.c && touch mod_auth_ldap.slo
> >     mod_auth_ldap.c:61:24:
> >     >     >>> error: apr_compat.h: No such file or directory
> >     >     mod_auth_ldap.c: In
> >     >     >>>
> >     >     >> apr_compat was deprecated in 2.0 and removed in
> >     2.2.  Looks like a
> >     >     >> module written for Apache 1.x.
> >     >     >>
> >     >     >> --
> >     >     >> Nick Kew
> >     >     >>
> >     >     >> Application Development with Apache - the Apache Modules
> Book
> >     >     >> http://www.apachetutor.org/ <http://www.apachetutor.org/>
> >     >     >>
> >     >     >>
> >     >     >
> >     >     >
> >     >     >
> >     >     >
> >     >
> >     >
> >     >     --
> >     >     Joseph Lewis <http://sharktooth.org/
> >     <http://sharktooth.org/> <http://sharktooth.org/>>
> >     >     "Divide the fire, and you will sooner put it out." - Publius
> >     Syrus
> >     >
> >     >
> >     >
> >     >
> >     > --
> >     > Karim Bendadda
> >
> >
> >     --
> >     Joseph Lewis <http://sharktooth.org/>
> >     "Divide the fire, and you will sooner put it out." - Publius Syrus
> >
> >
> >
> >
> > --
> > Karim Bendadda
>
>
> --
> Joseph Lewis <http://sharktooth.org/>
> "Divide the fire, and you will sooner put it out." - Publius Syrus
>



-- 
Karim Bendadda

Re: Have you tried to compile mod_auth_ldap??

Posted by karim Bendadda <ka...@gmail.com>.
Yes I m using apache 2.2.6. I'm trying to use the mod_authnz_ldap module but
I have already installed the apache and I want to compile manually the
mod_authnz_ldap (or the mod_auth_ldap_apache2) without recompiling apache. I
want to make some changes on the source code of the module and load it as a
dynamic module. My problème is I don't now how to compile it manually .



2007/10/23, Joe Lewis <jo...@joe-lewis.com>:
>
> Are you using apache 2.2?
>
> karim Bendadda wrote:
> > I m sorry I have made a mistake It's the Apache 2.0.x module that I
> > have tried to compile not the one I have refered in my first mail.
> > It's the mod_auth_ldap_apache2  that causes me  compilations problems.
> >
> >
> >
> > 2007/10/23, Joe Lewis <joe@joe-lewis.com <ma...@joe-lewis.com>>:
> >
> >     You do realize that a section on that website said :
> >
> >     [quote]
> >     *-NOTICE-*
> >
> >     If you are looking for the module for *Apache 2.0.x*, please visit
> the
> >     page mod_auth_ldap_apache2.html
> >     <
> >
> http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.html
> >.
> >     The module for Apache 2.0.x has many more features, however, I plan
> to
> >     put all the features back to the module for Apache 1.3.x as time
> >     permits.
> >     [/quote]
> >
> >     You may want to try downloading a different (more recent) version.
> >
> >     Joe
> >
> >     karim Bendadda wrote:
> >     > I see that's why id doesn't work...
> >     >
> >     > muquit.com <http://muquit.com> is the website where I found the
> >     mod_auth_ldap... It explains how
> >     > to install it and how it works
> >     >
> >     > I will try to install the new module. But how can I compile it
> >     without
> >     > recompiling the Apache sources??
> >     >
> >     > Thanks for your  answering so fast.
> >     >
> >     > 2007/10/23, Nick Kew <nick@webthing.com <mailto:nick@webthing.com
> >>:
> >     >
> >     >> On Tue, 23 Oct 2007 15:29:16 +0200
> >     >> "karim Bendadda" < kakibend@gmail.com
> >     <ma...@gmail.com>> wrote:
> >     >>
> >     >>
> >     >>> Hi everybody,
> >     >>>
> >     >>>     I'm trying to make the mod_auth_ldap.c (
> >     >>>
> >     >> That'll be with apache 2.0, I presume?  The 2.2 version is
> >     >> mod_authnz_ldap.
> >     >>
> >     >>
> >     >>>
> >
> http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.html).
> >     >>>
> >     >> Who or what is muquit.com <http://muquit.com>?
> >     >>
> >     >>
> >     >>> I installed the openldap but I have the same error when doying
> >     the
> >     >>> make (I think the compilation is ok), Have you any idea???
> >     >>>
> >     >>> debian:/usr/local/modauthldap_apache2# make
> >     >>> /usr/local/apache2/bin/apxs -c -DHAVE_SOCKET=1 -DHAVE_HTONL=1
> >     >>> -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> >     >>> -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1
> -DHAVE_RES_SEARCH=1
> >     >>> -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> >     >>> -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1
> >     >>> -I/usr/local/iplanet/include
> >     >>> mod_auth_ldap.c /usr/local/apache2/build/libtool --silent
> >     >>> --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT
> >     -D_GNU_SOURCE
> >     >>> -D_LARGEFILE64_SOURCE -g -O2 -pthread
> -I/usr/local/apache2/include
> >     >>> -I/usr/local/apache2/include -I/usr/local/apache2/include
> >     >>> -I/usr/local/iplanet/include -DHAVE_SOCKET=1 -DHAVE_HTONL=1
> >     >>> -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> >     >>> -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1
> -DHAVE_RES_SEARCH=1
> >     >>> -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> >     >>> -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1  -c -o
> mod_auth_ldap.lo
> >     >>> mod_auth_ldap.c && touch mod_auth_ldap.slo
> mod_auth_ldap.c:61:24:
> >     >>> error: apr_compat.h: No such file or directory
> >     mod_auth_ldap.c: In
> >     >>>
> >     >> apr_compat was deprecated in 2.0 and removed in 2.2.  Looks like
> a
> >     >> module written for Apache 1.x.
> >     >>
> >     >> --
> >     >> Nick Kew
> >     >>
> >     >> Application Development with Apache - the Apache Modules Book
> >     >> http://www.apachetutor.org/
> >     >>
> >     >>
> >     >
> >     >
> >     >
> >     >
> >
> >
> >     --
> >     Joseph Lewis <http://sharktooth.org/ <http://sharktooth.org/>>
> >     "Divide the fire, and you will sooner put it out." - Publius Syrus
> >
> >
> >
> >
> > --
> > Karim Bendadda
>
>
> --
> Joseph Lewis <http://sharktooth.org/>
> "Divide the fire, and you will sooner put it out." - Publius Syrus
>



-- 
Karim Bendadda

Re: Have you tried to compile mod_auth_ldap??

Posted by karim Bendadda <ka...@gmail.com>.
I see that's why id doesn't work...

muquit.com is the website where I found the mod_auth_ldap... It explains how
to install it and how it works

I will try to install the new module. But how can I compile it without
recompiling the Apache sources??

Thanks for your  answering so fast.

2007/10/23, Nick Kew <ni...@webthing.com>:
>
> On Tue, 23 Oct 2007 15:29:16 +0200
> "karim Bendadda" <ka...@gmail.com> wrote:
>
> > Hi everybody,
> >
> >     I'm trying to make the mod_auth_ldap.c (
>
> That'll be with apache 2.0, I presume?  The 2.2 version is
> mod_authnz_ldap.
>
> > http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.html).
>
> Who or what is muquit.com?
>
> > I installed the openldap but I have the same error when doying the
> > make (I think the compilation is ok), Have you any idea???
> >
> > debian:/usr/local/modauthldap_apache2# make
> > /usr/local/apache2/bin/apxs -c -DHAVE_SOCKET=1 -DHAVE_HTONL=1
> > -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> > -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1 -DHAVE_RES_SEARCH=1
> > -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> > -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1
> > -I/usr/local/iplanet/include
> > mod_auth_ldap.c /usr/local/apache2/build/libtool --silent
> > --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
> > -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include
> > -I/usr/local/apache2/include -I/usr/local/apache2/include
> > -I/usr/local/iplanet/include -DHAVE_SOCKET=1 -DHAVE_HTONL=1
> > -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> > -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1 -DHAVE_RES_SEARCH=1
> > -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> > -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1  -c -o mod_auth_ldap.lo
> > mod_auth_ldap.c && touch mod_auth_ldap.slo mod_auth_ldap.c:61:24:
> > error: apr_compat.h: No such file or directory mod_auth_ldap.c: In
>
> apr_compat was deprecated in 2.0 and removed in 2.2.  Looks like a
> module written for Apache 1.x.
>
> --
> Nick Kew
>
> Application Development with Apache - the Apache Modules Book
> http://www.apachetutor.org/
>



-- 
Karim Bendadda

Re: Have you tried to compile mod_auth_ldap??

Posted by Nick Kew <ni...@webthing.com>.
On Tue, 23 Oct 2007 15:29:16 +0200
"karim Bendadda" <ka...@gmail.com> wrote:

> Hi everybody,
> 
>     I'm trying to make the mod_auth_ldap.c (

That'll be with apache 2.0, I presume?  The 2.2 version is
mod_authnz_ldap.

> http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.html).

Who or what is muquit.com?

> I installed the openldap but I have the same error when doying the
> make (I think the compilation is ok), Have you any idea???
> 
> debian:/usr/local/modauthldap_apache2# make
> /usr/local/apache2/bin/apxs -c -DHAVE_SOCKET=1 -DHAVE_HTONL=1
> -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1 -DHAVE_RES_SEARCH=1
> -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1
> -I/usr/local/iplanet/include
> mod_auth_ldap.c /usr/local/apache2/build/libtool --silent
> --mode=compile gcc -prefer-pic -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
> -D_LARGEFILE64_SOURCE -g -O2 -pthread -I/usr/local/apache2/include
> -I/usr/local/apache2/include -I/usr/local/apache2/include
> -I/usr/local/iplanet/include -DHAVE_SOCKET=1 -DHAVE_HTONL=1
> -DHAVE_GETHOSTNAME=1 -DHAVE_GETHOSTBYADDR=1
> -DHAVE_YP_GET_DEFAULT_DOMAIN=1 -DHAVE_LIBNSL=1 -DHAVE_RES_SEARCH=1
> -DHAVE_LIBRESOLV=1 -DHAVE_INET_ATON=1 -DHAVE_DN_SKIPNAME=1
> -DHAVE_NSLDAP=1 -DHAVE_LDAP=1 -DHAVE_SSL=1  -c -o mod_auth_ldap.lo
> mod_auth_ldap.c && touch mod_auth_ldap.slo mod_auth_ldap.c:61:24:
> error: apr_compat.h: No such file or directory mod_auth_ldap.c: In

apr_compat was deprecated in 2.0 and removed in 2.2.  Looks like a
module written for Apache 1.x.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/