httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardy Griech <nt...@mardys.de>
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 
/home/hardy/c/httpd-2.2.17/srclib/pcre/libpcre.la 
/usr/lib/libaprutil-1.la -ldb /usr/lib/libapr-1.la
/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/libcrypt.so.1 so try adding it to the linker command line
//lib/libcrypt.so.1: 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/mod_gnutls.so
b mgs_hook_pre_connection
run

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

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

Thanks

Hardy

Mime
View raw message