Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 17th, 2005, 06:10 PM
Martin Sebor
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #2  
Old July 17th, 2005, 06:50 PM
Ben Collins-Sussman
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #3  
Old July 18th, 2005, 11:33 AM
Martin Sebor
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #4  
Old July 18th, 2005, 01:47 PM
Martin Sebor
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #5  
Old July 18th, 2005, 10:02 PM
Martin Sebor
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #6  
Old July 21st, 2005, 12:21 AM
Matthew Sanderson
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #7  
Old July 21st, 2005, 03:48 PM
Martin Sebor
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists Development > SSL is not supported


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway