PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > comp.info.servers.unix > Problems compiling httpd-2.0.54 with LDAP support
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.info.servers.unix Web servers for UNIX platforms.

Problems compiling httpd-2.0.54 with LDAP support

Réponse
 
LinkBack Outils de la discussion
Vieux 21/06/2005, 15h20   #1
edherrin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Problems compiling httpd-2.0.54 with LDAP support

I'm having problems getting httpd.2.0.54 to compile with ldap support.
Here are the parameters that I'm using:
../configure CC="gcc" CFLAGS="-O2" --prefix="/nfs/httpd-2.0.54"
--with-apr="/nfs/httpd-2.0.54" --with-apr-util="/nfs/httpd-2.0.54"
--with-openldap="/nfs/openldap-2.3.4" --enable-ldap --enable-auth-ldap
--with-ssl="/nfs/openssl-0.9.6b" --enable-ssl --with-mpm=worker
--enable-auth-dbm --enable-auth-digest --enable-cgid --enable-cgi
--enable-rewrite --enable-so --enable-dav --enable-dav-fs
--enable-suexec --enable-log-forensic --enable-dumpio --enable-http

Here is the error message:
#error mod_ldap requires APR-util to have LDAP support built in

Any suggestions?

  Réponse avec citation
Vieux 21/06/2005, 18h57   #2
Nick Kew
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problems compiling httpd-2.0.54 with LDAP support

edherrin wrote:
> I'm having problems getting httpd.2.0.54 to compile with ldap support.
> Here are the parameters that I'm using:
> ./configure CC="gcc" CFLAGS="-O2" --prefix="/nfs/httpd-2.0.54"
> --with-apr="/nfs/httpd-2.0.54" --with-apr-util="/nfs/httpd-2.0.54"
> --with-openldap="/nfs/openldap-2.3.4" --enable-ldap --enable-auth-ldap
> --with-ssl="/nfs/openssl-0.9.6b" --enable-ssl --with-mpm=worker
> --enable-auth-dbm --enable-auth-digest --enable-cgid --enable-cgi
> --enable-rewrite --enable-so --enable-dav --enable-dav-fs
> --enable-suexec --enable-log-forensic --enable-dumpio --enable-http
>
> Here is the error message:
> #error mod_ldap requires APR-util to have LDAP support built in


You used --with-apr-util=... But your apr-util was evidently
built without LDAP support. Either rebuild it with LDAP, or
ignore your installed APR-UTIL (and probably also APR), and
let it configure the bundled version for you instead.

--
Nick Kew
  Réponse avec citation
Vieux 21/06/2005, 21h29   #3
edherrin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Problems compiling httpd-2.0.54 with LDAP support

Thanks

I made some forward progress by doing the following:
../configure CC="gcc" CFLAGS="-O2" --prefix=/dir/httpd-2.0.54
--with-openldap=/dir/lib/openldap-2.3.4 --enable-ldap
--enable-auth-ldap --with-ssl=/dir/lib/openssl-0.9.6b --enable-ssl
--with-mpm=worker --enable-auth-dbm --enable-auth-digest --enable-cgid
--enable-cgi --enable-rewrite --enable-so --enable-dav --enable-dav-fs
--enable-suexec --enable-log-forensic --enable-dumpio --enable-http

After the error: #error mod_ldap requires APR-util to have LDAP support
built in

cd to srclib/apr-util and run:./configure --prefix="/dir/httpd-2.0.54"
--with-ldap-include="/dir/lib/openldap-2.3.4/include"
--with-ldap-lib="/dir/lib/openldap-2.3.4/lib" --with-ldap=ldap
--with-apr="/dir/src/httpd-2.0.54/srclib/apr"

Re-run make
and I get this error:
modules/experimental/.libs/mod_ldap.a(util_ldap.o)(.text+0x8c1): In
function `util_ldap_post_config':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
modules/experimental/.libs/mod_ldap.a(util_ldap.o)(.text+0x6f6): In
function `util_ldap_post_config':
: undefined reference to `ldap_set_option'
modules/experimental/.libs/mod_ldap.a(util_ldap.o)(.text+0x8af): In
function `util_ldap_post_config':
: undefined reference to `ldap_set_option'
modules/experimental/.libs/mod_ldap.a(util_ldap.o)(.text+0xd2c): In
function `util_ldap_connection_open':
: undefined reference to `ldap_set_option'

I have reason to believe that warning (warning: the use of `tmpnam' is
dangerous, better use `mkstemp') can be ignored.

What about the rest?

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 06h32.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10376 seconds with 11 queries