Build Apache 1.3.37 with mod_ssl on Ubuntu x86_64

2007-03-07 Thread Gianluca Magalotti
I'm trying to build apache 1.3.37 with ssl support on a Ubuntu 6.1 
running on a AMD Turion 64.

I've downloaded  the following packages:
Apache 1.3.37 sources (apache_1.3.37.tar.gz from httpd.apache.org)
Mod SSL 2.8.28 (mod_ssl-2.8.28-1.3.37.tar.gz from www.modssl.org)
Open SSL 0.9.8e (openssl-0.9.8e.tar.gz from www.openssl.org)
I've built openssl as described into the INSTALL file provided with 
mod_ssl distribution, using gcc-4.0:

./config no-idea -fPIC no-threads --prefix=/path/to/local/openssl
make
make test
make install
Then I've patched Apache by using (into the mod_ssl directory):
./Configure --with-apache=/path/to/local/apache

then I've switched to the apache tree and configured it as follows:

MM_BASE=/path/to/mm/ \
SSL_BASE=/path/to/local/openssl \
./configure \
  --prefix=/path/to/local/apache \
  --enable-module=most \
  --enable-shared=max \
  --disable-module=auth_dbm \
  --disable-module=cern_meta \
  --disable-module=log_agent \
  --disable-module=log_referer \
  --disable-module=usertrack
make

I received the ld error while linking libssl.so saying that libcrypto.a 
(module x86_64cpuid.o) cannot be relocated, compile with -fPIC (but is 
what I've done).
I've also tried using gcc-3.3 as well as using -fpic instead of -fPIC 
while building openssl.
I've tried to use the DSO version of libcrypto/libssl and compilation 
coes well but when starting apache it stops due to unresolved symbols 
(SSL_).
I found nothing appropriate on the Internet, because all solutions are 
"rebuild openssl with -fPIC (but is what I'm doing).


Can someone help me?
Thanks in Advance
Gianluca


__
Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
User Support Mailing List  modssl-users@modssl.org
Automated List Manager[EMAIL PROTECTED]


Core dump with mod_ssl

2007-03-07 Thread pradeep kumar

Hi,

When I use mod_ssl and test it with RoadRunner it dumps core. The details
are given below.

$ openssl version
OpenSSL 0.9.8d 28 Sep 2006
$ httpd -v
Server version: Apache/2.0.58  HP-UX_Apache-based_Web_Server
Server built:   Dec 20 2006 13:10:19
$

(gdb) bt

#0 0xc0214508 in kill+0x10 ()

#1 0x4e9f4 in sig_coredump+0x88 ()

#2 

#3 0xc0c3141c in ASN1_STRING_free+0x14 ()

#4 0xc0c989c8 in ASN1_primitive_free+0x68 ()

#5 0xc0c98834 in asn1_item_combine_free+0x3dc ()

#6 0xc0c987e0 in asn1_item_combine_free+0x388 ()

#7 0xc0c98388 in ASN1_item_free+0x20 ()

#8 0xc0c2bc50 in X509_free+0x18 ()

#9 0xc0be0b2c in SSL_SESSION_free+0xac ()

#10 0xc0bd96e4 in SSL_free+0x124 ()

#11 0xc0bbb64c in ssl_filter_io_shutdown+0x14c ()

#12 0xc0bbc0dc in ssl_io_filter_output+0x1fc ()

#13 0x4fa14 in ap_pass_brigade+0x6c ()

#14 0x4c114 in ap_flush_conn+0x84 ()

#15 0x4c1f8 in ap_lingering_close+0x60 ()

#16 0x3a310 in process_socket+0xb8 ()

#17 0x3aec8 in worker_thread+0x1e0 ()

#18 0xc0522f54 in dummy_worker+0x1c ()

#19 0xc0094024 in __pthread_bound_body+0xa8 ()

#20 0xc00c4ab4 in __pthread_bound_start+0x14 ()


Does it have to do anything with some pointer alignment problem? Let me know
if more details is needed.

Thanks in advance,
Pradeep