httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardy Griech <>
Subject Re: mod_gnutls and mod_proxy (TLS termination)
Date Fri, 29 Apr 2011 13:10:51 GMT
On 29.04.2011 11:09, Ben Noordhuis wrote:
> Alternatively, compile Apache and mod_gnutls with -g -O0 and run it
> with `gdb --args httpd -X -e debug`. Put a breakpoint on the

I'm stuck with apaches compilation:

/usr/share/apr-1.0/build/libtool --silent --mode=link i486-linux-gnu-gcc 
-pthread  -g -O0      -o htpasswd  htpasswd.lo   -lm 
/usr/lib/ -ldb /usr/lib/
/usr/bin/ld: htpasswd.o: undefined reference to symbol 'crypt@@GLIBC_2.0'
/usr/bin/ld: note: 'crypt@@GLIBC_2.0' is defined in DSO 
//lib/ so try adding it to the linker command line
//lib/ could not read symbols: Invalid operation
collect2: ld returned 1 exit status

Google-ing did not really help.  This all on 'Debian testing'.

Is it possible to use the existing apache for debugging purposes?  Doing 
the following:

APACHE_LOG_DIR=/var/log/apache2 APACHE_RUN_USER=www-data 
APACHE_RUN_GROUP=www-data gdb --args /usr/sbin/apache2 -X -e debug
symbol-file /usr/lib/apache2/modules/
b mgs_hook_pre_connection

does not work (I guess, because the actual breakpoint address is not known).

Any way to do it better (i.e. correct)?



View raw message