httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Minson, John M Mr ARMY GUEST" <john.min...@us.army.mil>
Subject Re: [users@httpd] using ldap secure causes core dump PROGRESS Then STUMPED Again
Date Tue, 25 Nov 2008 16:03:04 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
using the following combo<br>
<br>
--with-ldap-lib=/usr/local/lib/&nbsp;
--with-ldap-include=/usr/local/include/ --with-ldap<br>
<br>
make the ldap config/make issue seem to go away but then the make dies
with<br>
<br>
gcc -g -O2&nbsp;&nbsp;&nbsp; -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE&nbsp;&nbsp;&nbsp;
-I/export/home/minsonj/httpd-2.2.10/srclib/pcre -I.
-I/export/home/minsonj/httpd-2.2.10/os/unix
-I/export/home/minsonj/httpd-2.2.10/server/mpm/prefork
-I/export/home/minsonj/httpd-2.2.10/modules/http
-I/export/home/minsonj/httpd-2.2.10/modules/filters
-I/export/home/minsonj/httpd-2.2.10/modules/proxy
-I/export/home/minsonj/httpd-2.2.10/include
-I/export/home/minsonj/httpd-2.2.10/modules/generators
-I/export/home/minsonj/httpd-2.2.10/modules/mappers
-I/export/home/minsonj/httpd-2.2.10/modules/database
-I/export/home/minsonj/httpd-2.2.10/srclib/apr/include
-I/export/home/minsonj/httpd-2.2.10/srclib/apr-util/include
-I/usr/local/include/
-I/export/home/minsonj/httpd-2.2.10/modules/proxy/../generators
-I/usr/local/ssl/include
-I/export/home/minsonj/httpd-2.2.10/modules/ssl
-I/export/home/minsonj/httpd-2.2.10/modules/dav/main&nbsp; -c
/export/home/minsonj/httpd-2.2.10/server/buildmark.c<br>
/export/home/minsonj/httpd-2.2.10/srclib/apr/libtool --silent
--mode=link gcc -g -O2&nbsp;&nbsp;&nbsp;&nbsp; -L/usr/local/lib/ -L/usr/local/ssl/lib
-R/usr/local/ssl/lib&nbsp;&nbsp; -o httpd&nbsp; modules.lo buildmark.o -export-dynamic
server/libmain.la modules/aaa/libmod_authn_file.la
modules/aaa/libmod_authn_default.la modules/aaa/libmod_authz_host.la
modules/aaa/libmod_authz_groupfile.la modules/aaa/libmod_authz_user.la
modules/aaa/libmod_authnz_ldap.la modules/aaa/libmod_authz_default.la
modules/aaa/libmod_auth_basic.la modules/filters/libmod_include.la
modules/filters/libmod_filter.la modules/ldap/libmod_ldap.la
modules/loggers/libmod_log_config.la modules/metadata/libmod_env.la
modules/metadata/libmod_setenvif.la modules/ssl/libmod_ssl.la
modules/http/libmod_http.la modules/http/libmod_mime.la
modules/generators/libmod_status.la
modules/generators/libmod_autoindex.la
modules/generators/libmod_asis.la modules/generators/libmod_cgi.la
modules/mappers/libmod_negotiation.la modules/mappers/libmod_dir.la
modules/mappers/libmod_actions.la modules/mappers/libmod_userdir.la
modules/mappers/libmod_alias.la modules/mappers/libmod_rewrite.la
modules/mappers/libmod_so.la server/mpm/prefork/libprefork.la
os/unix/libos.la -lm
/export/home/minsonj/httpd-2.2.10/srclib/pcre/libpcre.la
/export/home/minsonj/httpd-2.2.10/srclib/apr-util/libaprutil-1.la
-lexpat /export/home/minsonj/httpd-2.2.10/srclib/apr/libapr-1.la -luuid
-lsendfile -lrt -lsocket -lnsl -lpthread <br>
<br>
ld: fatal: library -lnet: not found<br>
<br>
before I started messing with the ldap stuff this error never occured<br>
<br>
<br>
I'm growing weary of the chase<br>
<br>
Minson, John M Mr ARMY GUEST wrote:
<blockquote cite="mid:492C058C.6060809@us.army.mil" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
I have tried every combination of<br>
  <br>
--with-ldap-lib<br>
--with-ldap-include<br>
--with-ldap<br>
  <br>
I can think of .<br>
  <br>
Using <br>
  <br>
--with-ldap-lib=/usr/local/lib/libldap.so&nbsp;
--with-ldap-include=/usr/local/ --with-ldap<br>
  <br>
lets the config run but at the end of the apache make I get<br>
  <br>
ld: fatal: file /usr/local/lib/libldap.so/libnet.a: Not a directory<br>
  <br>
Using any value for '--with-ldap= &lt;what ever&gt;' causes the
apr-util config to error out with some variation of<br>
  <br>
srclib/apr-util/configure: line 10753: unset:
`ac_cv_lib_/usr/local/_ldap_init': not a valid identifier<br>
  <br>
tried --with-ladp=/usr/local<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --with-ldap=/usr/local/<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --with-ldap=/usr/local/lib<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --with-ldap=/usr/local/lib/<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
  <br>
Tom Evans wrote:
  <blockquote cite="mid:1227607126.10955.59.camel@localhost" type="cite">
    <pre wrap="">On Mon, 2008-11-24 at 14:00 -0500, Minson, John M Mr ARMY GUEST wrote:
  </pre>
    <blockquote type="cite">
      <pre wrap="">note thi sis apache 2.2.10

# ldd httpd
        libldap.so.5 =&gt;  /usr/lib/libldap.so.5
        libdl.so.1 =&gt;    /lib/libdl.so.1
        libssl.so.0.9.8 =&gt;       /usr/local/ssl/lib/libssl.so.0.9.8
        libcrypto.so.0.9.8 =&gt;    /usr/local/ssl/lib/libcrypto.so.0.9.8
    </pre>
    </blockquote>
    <pre wrap=""><!---->
Yep.

  </pre>
    <blockquote type="cite">
      <pre wrap="">        libm.so.2 =&gt;     /lib/libm.so.2
        libaprutil-1.so.0
=&gt;     /usr/local/httpd/lib/libaprutil-1.so.0
        libexpat.so.1 =&gt;         /usr/sfw/lib/libexpat.so.1
        libapr-1.so.0 =&gt;         /usr/local/httpd/lib/libapr-1.so.0
        libuuid.so.1 =&gt;  /lib/libuuid.so.1
        libsendfile.so.1 =&gt;      /lib/libsendfile.so.1
        librt.so.1 =&gt;    /lib/librt.so.1
        libsocket.so.1 =&gt;        /lib/libsocket.so.1
        libnsl.so.1 =&gt;   /lib/libnsl.so.1
        libpthread.so.1 =&gt;       /lib/libpthread.so.1
        libc.so.1 =&gt;     /lib/libc.so.1
        libsasl.so.1 =&gt;  /usr/lib/libsasl.so.1
        libmd.so.1 =&gt;    /lib/libmd.so.1
        libnspr4.so =&gt;   /usr/lib/mps/libnspr4.so
        libplc4.so =&gt;    /usr/lib/mps/libplc4.so
        libnss3.so =&gt;    /usr/lib/mps/libnss3.so
        libssl3.so =&gt;    /usr/lib/mps/libssl3.so
        libgcc_s.so.1 =&gt;         /usr/local/lib/libgcc_s.so.1
        libgcc_s.so.1 =&gt;         /usr/sfw/lib/libgcc_s.so.1
        libaio.so.1 =&gt;   /lib/libaio.so.1
        libmp.so.2 =&gt;    /lib/libmp.so.2
        libscf.so.1 =&gt;   /lib/libscf.so.1
        libthread.so.1 =&gt;        /lib/libthread.so.1
        libsoftokn3.so =&gt;        /usr/lib/mps/libsoftokn3.so
        libplds4.so =&gt;   /usr/lib/mps/libplds4.so
        libdoor.so.1 =&gt;  /lib/libdoor.so.1
        libuutil.so.1 =&gt;         /lib/libuutil.so.1
        libgen.so.1 =&gt;   /lib/libgen.so.1
        libbsm.so.1 =&gt;   /lib/libbsm.so.1
        libsecdb.so.1 =&gt;         /lib/libsecdb.so.1
        libtsol.so.2 =&gt;  /lib/libtsol.so.2
        libcmd.so.1 =&gt;   /lib/libcmd.so.1
        /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-T200/lib/libmd_psr.so.1
        /usr/lib/mps/cpu/sparcv8plus/libnspr_flt4.so

ldd of mod_ssl and mod_authnz_ldap show nothing ? 
    </pre>
    </blockquote>
    <pre wrap=""><!---->
They probably have the SSL libraries staticly linked in.

  </pre>
    <blockquote type="cite">
      <pre wrap="">I think the issue is the 'libldap.so.5 =&gt;  /usr/lib/libldap.so.5'
.
This is pointing to the standard Solaris 10 ldap which I suspect was
built against the Solaris 10 ssl .

I cannot get the apache config/make to pick up my install of open ldap
2.4.11 installed in /usr/local 

If I set LD_LIBRARY_PATH=/usr/local/lib the apache config gives me

checking for ldap support...
checking for ldap_init in -lldap50... no
checking for ldap_init in -lldapssl41... no
checking for ldap_init in -lldapssl40... no
checking for ldap_init in -lldapssl30... no
checking for ldap_init in -lldapssl20... no
checking for ldap_init in -lldapsdk... no
checking for ldap_init in -lldapsdk... no
checking for ldap_init in -lldap... no
checking for ldap_init in -lldap... no
checking for ldap_init in -lldap... no
checking for ldap_init in -lldap... no
configure: error: could not find an LDAP library
configure failed for srclib/apr-util
    </pre>
    </blockquote>
    <pre wrap=""><!---->
Yeah, that is unlikely to work. How about manually installing apr and
apr-util (you'll find them in httpd-2.2.10/srclib/apr and
httpd-2.2.10/srclib/apr-util). When you come to build apr-util, you can
pass the LDAP library path to the configure script with something like
'--with-ldap-include=/usr/local --with-ldap-lib=/usr/local
--with-ldap=/usr/local/lib/libldap.so'. 
Thats probably not exactly right, but play around with it and then it
should be fine. 
Once you have apr/apr-util built correctly, configure httpd to use those
installed versions with '--with-apr=/usr/local/bin/apr-1-config
--with-apr-util=/usr/local/bin/apu-1-config'.

BTW, your emails all seem to come through as HTML email attachments.

Cheers

Tom


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <a moz-do-not-send="true" class="moz-txt-link-rfc1738"
 href="http://httpd.apache.org/userslist.html">&lt;URL:http://httpd.apache.org/userslist.html&gt;</a>
for more info.
To unsubscribe, e-mail: <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a>
   "   from the digest: <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a>
For additional commands, e-mail: <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a>


  </pre>
  </blockquote>
---------------------------------------------------------------------
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: <a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@httpd.apache.org">users-unsubscribe@httpd.apache.org</a>
" from the
digest: <a class="moz-txt-link-abbreviated" href="mailto:users-digest-unsubscribe@httpd.apache.org">users-digest-unsubscribe@httpd.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-help@httpd.apache.org">users-help@httpd.apache.org</a>
  </URL:http:></blockquote>
</body>
</html>

---------------------------------------------------------------------
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