RE: problems installing mod_ldap when compliing httpd 2.2.22

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I got apache to install by adding the following lines in the script.

set config_options="${config_options} --with-ldap-include=/opt/openldap/include/"
set config_options="${config_options} --with-ldap-lib=/opt/openldap/lib/libldap_r.so"

however after compiling and starting httpd using apachectl when I try accessing the secured web pages that needs ldap authentication I get the following error in sslerror_log

[Wed Aug 22 12:43:58 2012] [error] LDAP: Could not set the connection timeout

Any ideas?

John

-----Original Message-----
From: John Adamski [mailto:adamski@xxxxxxxxxxxxx] 
Sent: Tuesday, August 21, 2012 12:46 PM
To: 'users@xxxxxxxxxxxxxxxx'
Subject:  problems installing mod_ldap when compliing httpd 2.2.22

Apache 2.22 on HPUX 11v3 Integrity (Itanium) server

Our ERP is updating which version of apache httpd they use from 2.2.15 to 2.2.22.  We have a local process that uses mod_ldap & mod_authnz.  The ERP provides a script that does all the setup and compiling for us.  I'm trying to get httpd to compile on our test/dr server prior to doing it on our production server.

Last time when we upgraded to 2.2.15 I just had to add these three lines into the script to get things to compile with the added modules.

 set config_options="${config_options} --enable-ldap=static"
 set config_options="${config_options} --enable-authnz-ldap=static"
 set config_options="${config_options} --with-ldap=ldap"


when the script runs I get this:

./apache2_install | & tee install4.Out
"/home/carsids/adamski/.redo" 1 line, 40 characters
>>>Directory: /opt/apache2/src/httpd-2.2.22
>>Command: ./configure --prefix=/opt/apache2 --enable-authn-dbm=shared 
>>--with-mpm=prefork --with-included-apr --without-berkeley-db 
>>--enable-expires=shared --enable-headers=shared 
>>--enable-rewrite=shared --enable-mime-magic=shared 
>>--enable-info=shared --enable-status=shared --enable-userdir=shared 
>>--enable-http --enable-so --enable-ssl=shared 
>>--with-ssl=/opt/openssl101 --with-perl=/opt/perl514 --with-ndbm 
>>--with-expat=/opt/gnu --enable-dumpio=shared --enable-ldap=static 
>>--enable-authnz-ldap=static --with-ldap=ldap >& config.out
>>Command: make >& make.out
./apache2_install: Error: See errors in the .out file.

The make.out file has this at the end:

/bin/sh /opt/apache2/src/httpd-2.2.22/srclib/apr/libtool --silent --mode=link cc  +Onoprocelim +DD32 -Ae +Z -mt  +Onoprocelim +DD32   -Wl,+b -Wl,/opt/apache2
/lib:/opt/openssl101/lib:/opt/openssl101/lib/hpux32:/opt/gnu/lib:/opt/apache2/src/httpd-2.2.22/srclib/apr/.libs -L/opt/gnu/lib -release 1 -module -rpath /opt
/apache2/lib/apr-util-1 -o dbm/apr_dbm_ndbm.la dbm/apr_dbm_ndbm.lo -lc /bin/sh /opt/apache2/src/httpd-2.2.22/srclib/apr/libtool --silent --mode=compile cc +Onoprocelim +DD32 -Ae +Z -mt  +Onoprocelim +DD32 -DHAVE_CONFIG_H -DHPUX1
1 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE   -I/opt/apache2/src/httpd-2.2.22/srclib/apr-util/include -I/opt/apache2/src/httpd-2.2.22/srclib/apr-util
/include/private  -I/opt/apache2/src/httpd-2.2.22/srclib/apr/include  -I/opt/gnu/include  -o ldap/apr_ldap_init.lo -c ldap/apr_ldap_init.c && touch ldap/apr_ ldap_init.lo "ldap/apr_ldap_init.c", line 168: warning #2223-D: function "ldapssl_init" declared implicitly
      *ldap = ldapssl_init(hostname, portno, 0);
              ^

"ldap/apr_ldap_init.c", line 168: warning #2513-D: a value of type "int" cannot be assigned to an entity of type "LDAP *"
      *ldap = ldapssl_init(hostname, portno, 0);
            ^

/bin/sh /opt/apache2/src/httpd-2.2.22/srclib/apr/libtool --silent --mode=compile cc +Onoprocelim +DD32 -Ae +Z -mt  +Onoprocelim +DD32 -DHAVE_CONFIG_H -DHPUX1
1 -D_REENTRANT -D_HPUX_SOURCE -D_LARGEFILE64_SOURCE   -I/opt/apache2/src/httpd-2.2.22/srclib/apr-util/include -I/opt/apache2/src/httpd-2.2.22/srclib/apr-util
/include/private  -I/opt/apache2/src/httpd-2.2.22/srclib/apr/include  -I/opt/gnu/include  -o ldap/apr_ldap_option.lo -c ldap/apr_ldap_option.c && touch ldap/ apr_ldap_option.lo "ldap/apr_ldap_option.c", line 446: warning #2223-D: function "ldapssl_enable_clientauth" declared implicitly
              result->rc = ldapssl_enable_clientauth(ldap, "",
                           ^

"ldap/apr_ldap_option.c", line 456: warning #2223-D: function "ldapssl_advclientauth_init" declared implicitly
              result->rc = ldapssl_advclientauth_init(cert7db, NULL,
                           ^

"ldap/apr_ldap_option.c", line 458: error #2020: identifier "LDAPSSL_AUTH_CNCHECK" is undefined
                                                      1, secmod, LDAPSSL_AUTH_CNCHECK);
                                                                 ^

"ldap/apr_ldap_option.c", line 465: warning #2223-D: function "ldapssl_clientauth_init" declared implicitly
              result->rc = ldapssl_clientauth_init(cert7db, NULL,
                           ^

"ldap/apr_ldap_option.c", line 473: warning #2223-D: function "ldapssl_client_init" declared implicitly
              result->rc = ldapssl_client_init(cert7db, NULL);
                           ^

1 error detected in the compilation of "ldap/apr_ldap_option.c".
make[3]: *** [ldap/apr_ldap_option.lo] Error 1
make[3]: Leaving directory `/opt/apache2/src/httpd-2.2.22/srclib/apr-util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/apache2/src/httpd-2.2.22/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/apache2/src/httpd-2.2.22/srclib'
make: *** [all-recursive] Error 1

Since I now get this 2020 error, I assume I don't have some other mod_* that I need to add to get it to compile.  

I have also removed the '=static' and '=ldap' on the lines and get same error.

Does anyone know what is causing this error and how to correct it?


John David Adamski, Sr. Network Specialist Graceland University, 1 University Place, Lamoni, IA 50140 adamski@xxxxxxxxxxxxx



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux