httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Pohl <list-apache-us...@mail2news-gw.secaron.de>
Subject Re: [users@httpd] can't compile mod_auth_ldap
Date Wed, 18 Dec 2002 07:19:19 GMT
Aaron Sturm wrote:
> Christian,
> 
> I'm confused. I untared the apache 2.0.43 and under
> httpd-2.0.43/modules/experimental there's a mod_auth_ldap.c
> 
> You say it doesn't come with it but I see the C file. Is it a trick?
> 
> I tried muquit's version over the weekend and got this error if you wanna
> take a stab at it.
> 
> make[1]: *** No rule to make target `modules/auth_ldap/mod_auth_ldap.la',
> needed by `httpd'.  Stop.
> make[1]: Leaving directory `/home/chewy/httpd-2.0.43'
> make: *** [all-recursive] Error 1
> 
> Thanks,
> Aaron
> 
> ----- Original Message -----
> From: "Christian Pohl" <pohl@secaron.de>
> Newsgroups: secaron.lists.apache-users
> To: "Aaron Sturm" <aaron_sturm@hotmail.com>
> Sent: Monday, December 16, 2002 3:58 AM
> Subject: Re: [users@httpd] can't compile mod_auth_ldap
> 
> 
> 
>>Aaron Sturm wrote:
>>
>>>Problem:
>>>I can compile apache by itself, I can compile with ssl, but I can't
>>>compile with mod_auth_ldap.
>>>
>>>Currently installed:
>>>openldap 2.0.27
>>>openssl-0.9.6h
>>>gcc 3.2
>>>solaris 8
>>>
>>>Variables:
>>>CFLAGS="-I/opt/openldap/include"
>>>LDFLAGS="-L/opt/openldap/lib"
>>>
>>>Configure syntax:
>>>./configure --prefix=/opt/apache --enable-mod_auth_ldap=shared
>>>--enable-mod_ssl=shared
>>>
>>>Error during make:
>>>make[1]: Entering directory `/home/chewy/httpd-2.0.43'
>>>/bin/bash /home/chewy/httpd-2.0.43/srclib/apr/libtool --silent
>>>--mode=compile gcc  -g -O2 -pthreads    -DSOLARIS2=8
>>>-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
>>>-DAP_HAVE_DESIGNATED_INITIALIZER
>>>-I/home/chewy/httpd-2.0.43/srclib/apr/include
>>>-I/home/chewy/httpd-2.0.43/srclib/apr-util/include
>>>-I/home/chewy/httpd-2.0.43/srclib/apr-util/xml/expat/lib -I.
>>>-I/home/chewy/httpd-2.0.43/os/unix
>>>-I/home/chewy/httpd-2.0.43/server/mpm/prefork
>>>-I/home/chewy/httpd-2.0.43/modules/http
>>>-I/home/chewy/httpd-2.0.43/modules/filters
>>>-I/home/chewy/httpd-2.0.43/modules/proxy
>>>-I/home/chewy/httpd-2.0.43/include
>>>-I/home/chewy/httpd-2.0.43/modules/dav/main  -c modules.c && touch
>>>modules.lo
>>>/bin/bash /home/chewy/httpd-2.0.43/srclib/apr/libtool --silent
>>>--mode=link gcc  -g -O2 -pthreads    -DSOLARIS2=8
>>>-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
>>>-DAP_HAVE_DESIGNATED_INITIALIZER
>>>-I/home/chewy/httpd-2.0.43/srclib/apr/include
>>>-I/home/chewy/httpd-2.0.43/srclib/apr-util/include
>>>-I/home/chewy/httpd-2.0.43/srclib/apr-util/xml/expat/lib -I.
>>>-I/home/chewy/httpd-2.0.43/os/unix
>>>-I/home/chewy/httpd-2.0.43/server/mpm/prefork
>>>-I/home/chewy/httpd-2.0.43/modules/http
>>>-I/home/chewy/httpd-2.0.43/modules/filters
>>>-I/home/chewy/httpd-2.0.43/modules/proxy
>>>-I/home/chewy/httpd-2.0.43/include
>>>-I/home/chewy/httpd-2.0.43/modules/dav/main -export-dynamic
>>>-L/home/chewy/httpd-2.0.43/srclib/apr-util/xml/expat/lib   -o httpd
>>>modules.lo  modules/aaa/mod_access.la modules/aaa/mod_auth.la
>>>modules/filters/mod_include.la modules/loggers/mod_log_config.la
>>>modules/metadata/mod_env.la modules/metadata/mod_setenvif.la
>>>modules/http/mod_http.la modules/http/mod_mime.la
>>>modules/generators/mod_status.la modules/generators/mod_autoindex.la
>>>modules/generators/mod_asis.la modules/generators/mod_cgi.la
>>>modules/mappers/mod_negotiation.la modules/mappers/mod_dir.la
>>>modules/mappers/mod_imap.la modules/mappers/mod_actions.la
>>>modules/mappers/mod_userdir.la modules/mappers/mod_alias.la
>>>modules/mappers/mod_so.la server/mpm/prefork/libprefork.la
>>>server/libmain.la os/unix/libos.la
>>>/home/chewy/httpd-2.0.43/srclib/pcre/libpcre.la
>>>/home/chewy/httpd-2.0.43/srclib/apr-util/libaprutil-0.la
>>>/home/chewy/httpd-2.0.43/srclib/apr-util/xml/expat/lib/libexpat.la
>>>/home/chewy/httpd-2.0.43/srclib/apr/libapr-0.la -lsendfile -lrt -lm
>>>-lsocket -lnsl -lresolv -ldl
>>>Undefined                       first referenced
>>> symbol                             in file
>>>apr_generate_random_bytes
>>>server/.libs/libmain.al(exports.lo)
>>>ld: fatal: Symbol referencing errors. No output written to .libs/httpd
>>>collect2: ld returned 1 exit status
>>>make[1]: *** [httpd] Error 1
>>>make[1]: Leaving directory `/home/chewy/httpd-2.0.43'
>>>make: *** [all-recursive] Error 1
>>>
>>>Any help... any help at all would be very much appreciated!! I've been
>>>looking for answers for about two weeks now.
>>>
>>>Thanks,
>>>Aaron
>>
>>Hi Aaron,
>>
>>Imho there is no mod_auth_ldap included in apache :(
>>
>>Use the extra ldap-module from
>>
> 
> http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap_apache2.ht
> ml
> 
>>and follow the installinstructions. It works fine.
>>
>>Kind regs, Chris
>>
>>--
>>Christian Pohl
>>»|secaron
>>
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
Hi Aaron,

yes there is a module (you can LART me). But I only compiled it with the 
one from muquit.

below is my compile-log.
replace the directory at CFLAGS where your (open)LDAP-include-files are 
located and LDFLAGS with the one where the libraries are (liblber and 
libldap).

Perhaps it is enough to set the copmiler/linker flags correct to compile 
the distributed module? I have not tried it, but if you try it, tell me 
your results.
(And if you compiled a new version of openssl, append the ssl-library 
path to /etc/ld.so.conf)

# cd /usr/src
# tar xvzf modauthldap.tgz
# tar xvzf httpd-2.0.43.tgz
# CFLAGS=“-I/usr/include“
# export CFALGS
# LDFALGS=“-L/usr/lib –llber –lldap“
# export LDFLAGS
# cd /usr/src/httpd-2.0.43
# ./configure --with-module=aaa:../modauthldap_apache2/mod_auth_ldap.c 
--enable-so --enable-ssl
(...)
# make depend
(...)
# make
(...)
# make install
(...)

Hope this helps.

Kind regards,

Chris

-- 
Christian Pohl
»|secaron

-- 
The From: and Reply-To: addresses are internal news2mail gateway addresses.
Reply to the list or to Christian Pohl <pohl@secaron.de>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message