My http daemon dies when ldap is configured... Without ldap everything works fine (pgsql, mysql and imap support).
Same problem occurs with php-4.0.5. However, I figured out that I have to run httpd with the -X arg when using gdb. So here is what I get when running gdb:
[root@develop /root]# gdb /usr/sbin/httpd
GNU gdb 5.0rh-5 Red Hat Linux 7.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(no debugging symbols found)...
(gdb) run -X
Starting program: /usr/sbin/httpd -X
Processing config directory: /etc/httpd/conf/vhosts
[Tue May 15 18:02:41 2001] [warn] NameVirtualHost *:443 has no VirtualHosts
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x402781d4 in dl_close (map=0x81164b0) at dl-close.c:96
96 dl-close.c: No such file or directory.
in dl-close.c
(gdb)
I am using apache-1.3.19 and php-4.0.5 on a RedHat 7.1 system with openldap-devel, postgresql-devel and mysql-devel installed. The args for php are:
sh configure \
--prefix=/usr \
--exec-prefix=/usr \
--with-config-file-path=/etc \
--enable-pic \
--enable-shared \
--with-apache=$home/apache_%{apachever} \
--with-imap=shared,$home/imap-%{imapver}/c-client \
--with-mysql=shared,/usr \
--with-ldap=shared,/usr \
--with-pgsql=shared,/usr \
--enable-track-vars \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--with-regex=system \
--with-exec-dir=/usr/bin \
--with-gd \
--with-jpeg-dir=/usr \
--with-zlib \
--with-png \
--with-xmlSSL_BASE=SYSTEM \
And the args for apache are:
SSL_BASE=SYSTEM \
sh configure \
--with-layout=config.mybuild:RedHat \
--with-perl=/usr/bin/perl \
--add-module=$RPM_SOURCE_DIR/mod_bandwidth.c \
--add-module=$RPM_SOURCE_DIR/mod_put.c \
--add-module=$RPM_SOURCE_DIR/mod_interchange.c \
--activate-module=src/modules/php4/libphp4.a \
--enable-shared=php4 \
--enable-module=ssl \
--enable-shared=ssl \
--enable-module=cern_meta \
--enable-module=rewrite \
--enable-module=so