[ Compilation Error ]
Subversion version 1.7.9 (r1462340) compiled with:
$ ./configure --with-ssl
$ make

Following error during installation of subversion occured:

cd subversion/libsvn_ra_neon && /bin/bash /home/xxx/subversion-1.7.9/libtool 
--tag=CC --silent --mode=link gcc  -g -O2   -pthread  -D_LARGEFILE64_SOURCE 
-DNE_LFS -Werror=implicit-function-declaration   -rpath /usr/local/lib 
-version-info 0 -Wl,--no-undefined -o libsvn_ra_neon-1.la  commit.lo fetch.lo 
file_revs.lo get_dated_rev.lo get_deleted_rev.lo get_location_segments.lo 
get_locations.lo get_locks.lo lock.lo log.lo merge.lo mergeinfo.lo options.lo 
props.lo replay.lo session.lo util.lo 
../../subversion/libsvn_delta/libsvn_delta-1.la 
../../subversion/libsvn_subr/libsvn_subr-1.la -laprutil-1 -lapr-1 
-L/usr/local/lib -lneon -lz -lssl -lcrypto -L/usr/lib/i386-linux-gnu 
-Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err 
-lexpat 
/usr/local/lib/libneon.a(ne_openssl.o): In function `ne_ssl_context_create':
/home/xxx/neon-0.29.6/src/ne_openssl.c:572: undefined reference to 
`SSLv2_server_method'
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_ra_neon/libsvn_ra_neon-1.la] Error 1


[ Solution ]
In directory src of neon project locate ne_openssl.c file [example: 
~/neon-0.29.6/src/ne_openssl.c] and update following function 
"ne_ssl_context_create" as follows:

ne_ssl_context *ne_ssl_context_create(int mode)
{
    ne_ssl_context *ctx = ne_calloc(sizeof *ctx);
    if (mode == NE_SSL_CTX_CLIENT) {
        ctx->ctx = SSL_CTX_new(SSLv23_client_method());
        ctx->sess = NULL;
        /* set client cert callback. */
        SSL_CTX_set_client_cert_cb(ctx->ctx, provide_client_cert);
        /* enable workarounds for buggy SSL server implementations */
        SSL_CTX_set_options(ctx->ctx, SSL_OP_ALL);
        SSL_CTX_set_verify(ctx->ctx, SSL_VERIFY_PEER, verify_callback);
    } else {
        ctx->ctx = SSL_CTX_new(SSLv23_server_method());
        SSL_CTX_set_session_cache_mode(ctx->ctx, SSL_SESS_CACHE_CLIENT);
    }
    return ctx;
}

Rem.: A part with elseif were deleted and SSLv23_server_method() is used
instead of SSLv2_server_method().

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/845901

Title:
  libneon can't find SSLv2_server_method

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/neon27/+bug/845901/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to