Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

ssl - apache - solaris

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


rajwinder.makkar.office at gmail

Nov 5, 2009, 8:23 AM

Post #1 of 5 (146 views)
Permalink
ssl - apache - solaris

I am trying to compile apache on solaris 10 and getting the below error :

Command used to configure :

./configure --prefix=/appl/apache1 --enable-mods-shared=most --enable-ssl
--with-ssl=/usr/local/ssl/

/usr/local/ssl/bin/openssl version
OpenSSL 0.9.8k 25 Mar 2009

Error on trying to start apache with ssl :

"Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1: httpd:
fatal: relocation error: file /appl/apache1/modules/mod_ssl.so: symbol
SSL_CTX_sess_set_new_cb: referenced symbol not found"

I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache 2.0.59

Any pointers what i am missing ?

Thanks
Singh


nick at webthing

Nov 5, 2009, 8:41 AM

Post #2 of 5 (138 views)
Permalink
Re: ssl - apache - solaris [In reply to]

Rajwinder-office Singh wrote:

> Error on trying to start apache with ssl :
>
> "Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1:
> httpd: fatal: relocation error: file /appl/apache1/modules/mod_ssl.so:
> symbol SSL_CTX_sess_set_new_cb: referenced symbol not found"

Did you try loading libssl with LoadFile before loading mod_ssl?

On opensolaris, I use
LoadFile /lib/libssl.so
LoadModule ssl_module modules/mod_ssl.so

--
Nick Kew

---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


gubydala at his

Nov 5, 2009, 8:48 AM

Post #3 of 5 (138 views)
Permalink
Re: ssl - apache - solaris [In reply to]

> ../configure --prefix=/appl/apache1 --enable-mods-shared=most --enable-ssl
> --with-ssl=/usr/local/ssl/
[snip]
> "Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1: httpd:
> fatal: relocation error: file /appl/apache1/modules/mod_ssl.so: symbol
> SSL_CTX_sess_set_new_cb: referenced symbol not found"

I suspect that it doesn't know where to find the library. You can confirm
this by running "ldd httpd" on the http daemon. If that's the case, try
adding the ssl library directory to the LD_LIBRARY_PATH (probably
/usr/local/ssl/lib) in the envvars file in the apache bin directory.

It's also possible to set up the RPATH during the configure/compile step
to set the location of the library within the binary but not usually
necessary. Using envvars works too.

> I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache
> 2.0.59
>
> Any pointers what i am missing ?
>
> Thanks
> Singh
>



---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


rajwinder.makkar.office at gmail

Nov 5, 2009, 10:59 AM

Post #4 of 5 (136 views)
Permalink
Re: ssl - apache - solaris [In reply to]

Thanks for you replies guys :

Loadfile before module works fine ;-)

LoadFile /usr/local/ssl/lib/libssl.so

I checked with ldd :

root[at]myserver # ldd /appl/apache0/bin/httpd
libm.so.2 => /lib/libm.so.2
libaprutil-1.so.0 => /appl/apache0/lib/libaprutil-1.so.0
libexpat.so.1 => /usr/local/lib/libexpat.so.1
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libapr-1.so.0 => /appl/apache0/lib/libapr-1.so.0
libuuid.so.1 => /lib/libuuid.so.1
libsendfile.so.1 => /lib/libsendfile.so.1
librt.so.1 => /lib/librt.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libpthread.so.1 => /lib/libpthread.so.1
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libaio.so.1 => /lib/libaio.so.1
libmd5.so.1 => /lib/libmd5.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V440/lib/libmd5_psr.so.1

root[at]myserver # ldd /appl/apache0/modules/mod_ssl.so
libssl.so.0.9.8 => /usr/local/lib/libssl.so.0.9.8
libcrypto.so.0.9.8 => /usr/local/ssl/lib/libcrypto.so.0.9.8
libuuid.so.1 => /lib/libuuid.so.1
libsendfile.so.1 => /lib/libsendfile.so.1
librt.so.1 => /lib/librt.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libpthread.so.1 => /lib/libpthread.so.1
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libdl.so.1 => /lib/libdl.so.1
libaio.so.1 => /lib/libaio.so.1
libmd5.so.1 => /lib/libmd5.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1
/platform/SUNW,Sun-Fire-V440/lib/libmd5_psr.so.1

Looks like libssl.so is not listed as dependency.

I tried adding in envvars file but didnt worked :

LD_LIBRARY_PATH="/usr/local/ssl/lib:/appl/apache0/lib:$LD_LIBRARY_PATH"



On Thu, Nov 5, 2009 at 11:48 AM, Sheryl <gubydala[at]his.com> wrote:

>
> > ../configure --prefix=/appl/apache1 --enable-mods-shared=most
> --enable-ssl
> > --with-ssl=/usr/local/ssl/
> [snip]
> > "Cannot load /appl/apache1/modules/mod_ssl.so into server: ld.so.1:
> httpd:
> > fatal: relocation error: file /appl/apache1/modules/mod_ssl.so: symbol
> > SSL_CTX_sess_set_new_cb: referenced symbol not found"
>
> I suspect that it doesn't know where to find the library. You can confirm
> this by running "ldd httpd" on the http daemon. If that's the case, try
> adding the ssl library directory to the LD_LIBRARY_PATH (probably
> /usr/local/ssl/lib) in the envvars file in the apache bin directory.
>
> It's also possible to set up the RPATH during the configure/compile step
> to set the location of the library within the binary but not usually
> necessary. Using envvars works too.
>
> > I tried it on Apache 2.2.13 / Apache 2.2.11 / Apache 2.0.63 / Apache
> > 2.0.59
> >
> > Any pointers what i am missing ?
> >
> > Thanks
> > Singh
> >
>
>
>
> ---------------------------------------------------------------------
> 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[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]httpd.apache.org
>
>


gubydala at his

Nov 5, 2009, 1:46 PM

Post #5 of 5 (134 views)
Permalink
Re: ssl - apache - solaris [In reply to]

> Thanks for you replies guys :
>
> Loadfile before module works fine ;-)

The only thing to watch out with on loadfile is that sometimes an upgrade
will "disappear" the addtion and you'll have to put it back. I never had
the problem on Solaris but I have seen that happen on RHEL.

Sheryl


---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.