httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Garvey <david.gar...@gmail.com>
Subject Re: [users@httpd] SSL and apache 2.2.15 installed from source. How to?
Date Fri, 25 Jun 2010 00:58:33 GMT
Are you using openssl libs? Do you want a dso?
http://www.issociate.de/board/post/44936/Compiling_mod_ssl_as_a_DSO.html

On Thu, Jun 24, 2010 at 2:44 PM, Audrey Lee <audrey.lee.is.me@gmail.com>wrote:

> A clue:
>
>
> http://mail-archives.apache.org/mod_mbox/httpd-dev/200901.mbox/%3C495EB674.1050309@kippdata.de%3E
>
> It works for me on Solaris. Those symbols (without the leading
> underscore) are referenced indeed by ab.c, but they should be in your
> libcrypto (BIO*) resp. libssl (SSL*).
>
> Are you sure, that the libraries libcrypto and libssl can be found? Are
> they in
>
> /Users/minfrin/src/apache/sandbox/crypto/nss-3.12/mozilla/dist/Darwin9.4.0_OPT.OBJ/lib?
>
> Which version of OpenSSL do you use (I use 0.9.8i)? Can you see the
> symbols in the libs (check with "nm")?
>
>
> Me, I tried this:
>
>
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:36 /pt/tmp/httpd-2.2.15 maco$ find /usr/lib
> /opt/local/lib -name '*crypto*' -print | xargs grep _BIO_set_callback
> Binary file /opt/local/lib/libcrypto.0.9.8.dylib matches
> Binary file /opt/local/lib/libcrypto.a matches
> Binary file /opt/local/lib/libcrypto.dylib matches
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$ find /usr/lib
> /opt/local/lib -name '*ssl*' -print | xargs grep
> _SSL_CTX_set_info_callback
> Binary file /opt/local/lib/libssl.0.9.8.dylib matches
> Binary file /opt/local/lib/libssl.a matches
> Binary file /opt/local/lib/libssl.dylib matches
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:38 /pt/tmp/httpd-2.2.15 maco$
>
>
>
> Thu Jun 24 14:37 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:38 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:39 /pt/tmp/httpd-2.2.15 maco$ nm
> /opt/local/lib/libssl.dylib |grep _SSL_CTX_set_info_callback
> 00028660 T _SSL_CTX_set_info_callback
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$ nm
> /opt/local/lib/libcrypto.dylib | grep _BIO_set_callback
> 00066880 T _BIO_set_callback
> 00066890 T _BIO_set_callback_arg
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
> Thu Jun 24 14:40 /pt/tmp/httpd-2.2.15 maco$
>
>
> Again, I'm no c-programmer so I dont know what nm is telling me here.
>
> I'm lost...
>
>
> On 6/24/10, Audrey Lee <audrey.lee.is.me@gmail.com> wrote:
> > Google returns a lot of hits on:
> >
> > Undefined symbols _BIO_set_callback_arg
> >
> >
> >
> > On 6/24/10, Audrey Lee <audrey.lee.is.me@gmail.com> wrote:
> >> Well,
> >>
> >>
> >> I did this:
> >>   - Carefully read  /pt/tmp/httpd-2.2.15/INSTALL
> >>   - ./configure --prefix=/pt/apache --enable-ssl --with-port=8123
> >> --with-sslport=8443
> >>   - ./make
> >>
> >> I bumped into this error from make:
> >>
> >> /usr/share/apr-1/build-1/libtool --silent --mode=link gcc
> >> -L/usr/lib -L/opt/local/lib   -o ab  ab.lo
> >> /pt/tmp/httpd-2.2.15/srclib/pcre/libpcre.la -L/usr/lib -R/usr/lib
> >> -laprutil-1 -lsqlite3 -lexpat -liconv -L/usr/lib -R/usr/lib -lapr-1
> >> -lpthread -lssl -lcrypto -lz
> >> Undefined symbols:
> >>   "_BIO_set_callback_arg", referenced from:
> >>       _start_connect in ab.o
> >>   "_BIO_get_callback_arg", referenced from:
> >>       _ssl_print_cb in ab.o
> >>   "_SSL_CTX_set_info_callback", referenced from:
> >>       _main in ab.o
> >>   "_BIO_set_callback", referenced from:
> >>       _start_connect in ab.o
> >> ld: symbol(s) not found
> >> collect2: ld returned 1 exit status
> >> make[2]: *** [ab] Error 1
> >> make[1]: *** [all-recursive] Error 1
> >> make: *** [all-recursive] Error 1
> >> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> >> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> >> Thu Jun 24 14:15 /pt/tmp/httpd-2.2.15 maco$
> >>
> >> I am not a c programmer but my guess is that we have a file named ab.o
> >> and it wants some things and cannot find them.
> >>
> >>
> >> On 6/24/10, Audrey Lee <audrey.lee.is.me@gmail.com> wrote:
> >>> Herald and Jeff,
> >>>
> >>> Thanks for the responses!
> >>>
> >>> I feel like I'm making progress.
> >>>
> >>> Here is what my modules directory looks like:
> >>>
> >>>   /pt/apache/modules:
> >>>   total used in directory 24 available 35223120
> >>>   drwxr-xr-x   3 maco  staff   102 Jun 19 12:41 .
> >>>   drwxr-xr-x  14 maco  staff   476 Jun 19 12:41 ..
> >>>   -rw-r--r--   1 maco  staff  9083 Jun 19 12:37 httpd.exp
> >>>
> >>> How do I create mod_ssl.so ?
> >>>
> >>> I sense that both of you have given me a good clue.
> >>>
> >>> I'll search the web for more clues.
> >>>
> >>> I know that a .so file is compiled software which suggests to me that
> >>> I might be able to create it along the path I followed to install my
> >>> copy of apache from the source code I obtained here:
> >>>
> >>>   - http://download.nextag.com/apache/httpd/httpd-2.2.15.tar.gz
> >>>
> >>> I unpacked httpd-2.2.15.tar.gz to here:
> >>>
> >>>   - /pt/tmp/httpd-2.2.15/
> >>>
> >>> When I search
> >>>
> >>>   - /pt/tmp/httpd-2.2.15/INSTALL
> >>>
> >>> For the word "module" I see this:
> >>>
> >>> Here is a typical example which configures Apache for the installation
> >>> tree /sw/pkg/apache plus the two additional modules mod_rewrite and
> >>> mod_speling for later loading through the DSO mechanism:
> >>>
> >>>
> >>>      ./configure --prefix=/sw/pkg/apache \
> >>>      --enable-rewrite=shared \
> >>>      --enable-speling=shared
> >>>
> >>> Question 1:
> >>>   - What is the DSO mechanism?
> >>>
> >>> Question 2:
> >>>   - Can I create mod_ssl.so using --enable-ssl=shared  ?
> >>>   - If yes, what is the proper way to create and install mod_ssl.so
> >>> after I have already finished my install from source ?
> >>>
> >>>
> >>> On 6/23/10, Jeff Trawick <trawick@gmail.com> wrote:
> >>>> On Wed, Jun 23, 2010 at 3:04 AM, HERALD <herald.jose@avenues.info>
> >>>> wrote:
> >>>>>
> >>>>> Do you have the ssl module in your module folder?? . the file name
> >>>>> would
> >>>>> be
> >>>>> mod_ssl.so under /Apache/modules/ path
> >>>>
> >>>> For the benefit of the person with the problem, who appears to be new
> >>>> to this: The immediate symptom ("Invalid command 'SSLSessionCache'
> >>>> ...") is due to no "LoadModule ssl_module /path/to/mod_ssl.so" (and
of
> >>>> course there must be a mod_ssl.so installed somewhere.)
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> 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
> >>>>
> >>>>
> >>>
> >>
> >
>
> ---------------------------------------------------------------------
> 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
>
>


-- 
David Garvey

Mime
View raw message