|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
SSL is not supported
I'm wondering if someone could help explain what I might be doing
wrong building subversion-1.2.1. I have SSL 0.9.8 (archives only) installed in /usr/local/openssl-0.9.8 on a relatively clean Solaris 9 box. I configured svn with the command below: ./configure /usr/local/openssl-0.9.8 \ /usr/local/openssl-0.9.8 \ /usr/local/subversion-1.2.1 Everything configured, built, and installed fine but when using svn with https I get an error about SSL not being supported: $ svn ls https:// svn: SSL is not supported It seems that the neon library was configured w/o SSL after all (the NEN_SSL macro doesn't appear to be defined anywhere). Am I missing some other required library/component that I need in order to use https? Thanks Martin To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#2
|
|||
|
|||
|
SSL is not supported
Martin Sebor wrote:
I'm wondering if someone could help explain what I might be doing wrong building subversion-1.2.1. I have SSL 0.9.8 (archives only) installed in /usr/local/openssl-0.9.8 on a relatively clean Solaris 9 box. I configured svn with the command below: ./configure /usr/local/openssl-0.9.8 \ /usr/local/openssl-0.9.8 \ /usr/local/subversion-1.2.1 Neon's configure script wants simply "", not "/path". Pass "" to subversion's configure, and the option will be automatically passed down to neon's configure. To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#3
|
|||
|
|||
|
SSL is not supported
Ben Collins-Sussman wrote:
Martin Sebor wrote: >I'm wondering if someone could help explain what I might be doing >wrong building subversion-1.2.1. I have SSL 0.9.8 (archives >only) installed in /usr/local/openssl-0.9.8 on a relatively clean >Solaris 9 box. I configured svn with the command below: >> >./configure /usr/local/openssl-0.9.8 \ >/usr/local/openssl-0.9.8 \ >/usr/local/subversion-1.2.1 Neon's configure script wants simply "", not "/path". Pass "" to subversion's configure, and the option will be automatically passed down to neon's configure. I started with that but configure failed due to the error below. Specifying /usr/local/openssl-0.9.8 let me get around that error but, ovbviously, didn't have desired effect. checking for library containing RSA_new -lcrypto checking for library containing SSL_library_init not found configure: error: could not find library containing SSL_library_init configure failed for neon Do you have any other suggestions on how to proceed? Thanks Martin To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#4
|
|||
|
|||
|
SSL is not supported
Martin Sebor wrote:
Ben Collins-Sussman wrote: >Martin Sebor wrote: >> I'm wondering if someone could help explain what I might be doing wrong building subversion-1.2.1. I have SSL 0.9.8 (archives only) installed in /usr/local/openssl-0.9.8 on a relatively clean Solaris 9 box. I configured svn with the command below: ./configure /usr/local/openssl-0.9.8 \ /usr/local/openssl-0.9.8 \ /usr/local/subversion-1.2.1 >> >> >> >> >Neon's configure script wants simply "", not >"/path". Pass "" to subversion's configure, and >the option will be automatically passed down to neon's configure. I started with that but configure failed due to the error below. Specifying /usr/local/openssl-0.9.8 let me get around that error but, ovbviously, didn't have desired effect. Here's some additional information: I reproduced the same problem on a Linux box with SSL installed in / (i.e., not in /usr/local/lib), so it's not specific to the platform but rather to the way SSL is installed. It looks to me like the configure test for SSL_library_init is doing the wrong thing: first, while it passes -L/usr/local/openssl-0.9.8/lib it fails to specify the openssl libraries on the linker line. I tried to help it by setting LDFLAGS like so: export LDFLAGS="-L/usr/local/openssl-0.9.8/lib -lcrypto -lssl" but that didn't help because the script specifies LDFLAGS on the linker line *before* the source file instead of after it. Here's the relevant portion of the cript: configure:15528: checking for library containing SSL_library_init configure:15557: gcc -o conftest -g -L /usr/local/openssl-0.9.8/lib -L/usr/local/openssl-0.9.8/lib -lcrypto -lssl conftest.c >&5 Undefined first referenced symbol in file SSL_library_init /var/tmp//ccahNJqr.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure:15563: $? = 1 configure: failed program was: | /* confdefs.h. */ Martin checking for library containing RSA_new -lcrypto checking for library containing SSL_library_init not found configure: error: could not find library containing SSL_library_init configure failed for neon Do you have any other suggestions on how to proceed? Thanks Martin To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#5
|
|||
|
|||
|
SSL is not supported
I was able to overcome these problems by following the steps below.
Hopefully someone can suggest how to simplify this whole process. I defined these variables in my environment prior to configuring and installing subversion: LIBS=-lcrypto -lssl (It turns out that the LDFLAGS variable should not be used to specify additional libraries: LIBS should.) To overcome subsequent linker errors caused by my SSL not having been built with thread support (I had originally configured SSL without any arguments), I reconfigured SSL like so: ./config /usr/local/openssl-0.9.8 threads zlib shared I then added SLL to the runtime linker's search path: That allowed me to configure, build, and install subversion. Unfortunately, even after all this svn fails at runtime with the following error: $ svn ls https:// ld.so.1: svn: fatal: relocation error: file / symbol SSL_load_error_strings: referenced symbol not found Somehow ld.so.1 is not loading libssl.so early enough (it shows up after libneon.so on the list of svn's dependencies). I solved this error by telling the linker to preload the library before any other: LD_PRELAD=libssl.so Martin To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#6
|
|||
|
|||
|
More OpenSSL build adventures
Hi guys,
This is mostly for Google's benefit: my own woes building SSL in order to build SVN. When building SSL for use in neon/SVN on Solaris 2.7/i86pc, instead of the previously-mentioned SSL config command: # ./config threads zlib shared I originally did: # ./config threads zlib ie, no shared, because the static lib was all SVN needed. But the SSL static lib later on gets linked into some shared object or other (I suppose either a neon or a SVN lib). So it was trying to link the non-PIC code in libssl.a into a shared object, which should contain only PIC code. This caused obscure messages from Sun's ld, from memory something like "relocations remain against allocated but non-writable sections", which AFAIK is SunSpeak for "you need to use PIC and you aren't". The solution was to rebuild SSL with: # ./config threads zlib -fPIC -DPIC and then rebuild Subversion. Those flags are for GCC; I don't know what the Sun Workshop or whatever other compilers need in this situation. Hope this helps somebody, Matthew Sanderson Senior Programmer (UNIX) TCG Information Systems Pty Ltd Sydney, Australia matthew (AT) formtrap (DOT) com http://www.formtrap.com/ +61 (02) 8303 2407 To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
|
#7
|
|||
|
|||
|
More OpenSSL build adventures
Matthew Sanderson wrote:
Hi guys, This is mostly for Google's benefit: my own woes building SSL in order to build SVN. When building SSL for use in neon/SVN on Solaris 2.7/i86pc, instead of the previously-mentioned SSL config command: # ./config threads zlib shared I originally did: # ./config threads zlib ie, no shared, because the static lib was all SVN needed. But the SSL static lib later on gets linked into some shared object or other (I suppose either a neon or a SVN lib). So it was trying to link the non-PIC code in libssl.a into a shared object, which should contain only PIC code. This caused obscure messages from Sun's ld, from memory something like "relocations remain against allocated but non-writable sections", which AFAIK is SunSpeak for "you need to use PIC and you aren't". The solution was to rebuild SSL with: # ./config threads zlib -fPIC -DPIC and then rebuild Subversion. Those flags are for GCC; I don't know what the Sun Workshop or whatever other compilers need in this situation. Hope this helps somebody, It sure helps me! :) I ran into these errors while trying to avoid the other problems I mentioned in a separate thread last week (Re: SSL not supported). I didn't investigate them but I meant to post a follow-up and let y'all know that I overcame my configuration problems by creating a couple of temporary symlinks like this: /usr/local/lib/libcrypto.a / /usr/local/lib/libssl.a / Then I was able to successfully configure svn using ./configure \ /usr/local/openssl-0.9.8 \ /usr/local/subversion-1.2.1 After building but before typing make instal, I also had to define to prevent the subversion installation from failing (it seems that it should know to do so by itself). Then I could delete the symlinks. AFAICT, this is a neon configuration bug (I was able to reproduce it in neon 0.25.2). Martin PS In addition to finally building 1.2.1 on Solaris 9, I also succeeded in installing it on AIX 5.3 (with XLC/C++ 7.0) and on Red Hat AS 4/IA64 (with gcc 3.2.3). My build on HP-UX 11.23 failed with both cc (SIGSEGV) and aCC 3.63 with the error below: /usr/bin/ld: Invalid loader fixup in text space needed in output file for symbol "$0000041F" in input file: ".libs/ne_locks.o". Make sure it was compiled with +z/+Z To unsubscribe, e-mail: users-unsubscribe (AT) subversion (DOT) tigris.org For additional commands, e-mail: users-help (AT) subversion (DOT) tigris.org |
![]() |
| Viewing: Web Development Archives > Mailing Lists > Development > SSL is not supported |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|