maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   svn, segmentation fault (https://talk.maemo.org/showthread.php?t=70570)

sat2050 2011-03-25 08:31

Re: svn, segmentation fault
 
Okay I was able to compile apr-1.3.12 and apr-util-1.3.10
on scratchbox x86 config
I am also able to run autogen and configure scripts for subversion

but when I try to compile the source by invoking make command it returns error.

Code:

cd subversion/svn && /bin/sh /home/maemo/svn/subversion-1.6.12/libtool --tag=CC --silent --mode=link gcc  -g -O2  -g -O2 -pthread  -D_LARGEFILE64_SOURCE -DNE_LFS  -rpath /usr/local/lib -o svn  add-cmd.o blame-cmd.o cat-cmd.o changelist-cmd.o checkout-cmd.o cleanup-cmd.o commit-cmd.o conflict-callbacks.o copy-cmd.o delete-cmd.o diff-cmd.o export-cmd.o help-cmd.o import-cmd.o info-cmd.o list-cmd.o lock-cmd.o log-cmd.o main.o merge-cmd.o mergeinfo-cmd.o mkdir-cmd.o move-cmd.o notify.o propdel-cmd.o propedit-cmd.o propget-cmd.o proplist-cmd.o props.o propset-cmd.o resolve-cmd.o resolved-cmd.o revert-cmd.o status-cmd.o status.o switch-cmd.o tree-conflicts.o unlock-cmd.o update-cmd.o util.o ../../subversion/libsvn_client/libsvn_client-1.la ../../subversion/libsvn_wc/libsvn_wc-1.la ../../subversion/libsvn_ra/libsvn_ra-1.la ../../subversion/libsvn_delta/libsvn_delta-1.la ../../subversion/libsvn_diff/libsvn_diff-1.la ../../subversion/libsvn_subr/libsvn_subr-1.la /usr/local/apr/lib/libaprutil-1.la    -lexpat /usr/local/apr/lib/libapr-1.la -lrt -lcrypt  -lpthread -ldl -L/scratchbox/devkits/svn/lib -Wl,-rpath -Wl,/scratchbox/host_shared/lib/ -Wl,-rpath -Wl,/scratchbox/tools/lib/ -Wl,-rpath -Wl,/scratchbox/devkits/svn/lib/ -L/scratchbox/devkits/svn/lib -lneon
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_NAME_entry_count'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_set_ex_data'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_connect'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `i2d_X509'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_session'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_set_client_CA_list'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `sk_pop_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `GENERAL_NAME_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `sk_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PEM_read_X509'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ASN1_STRING_to_UTF8'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PKCS12_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get1_session'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_set_session'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `OPENSSL_add_all_algorithms_noconf'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PKCS12_SAFEBAG_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_NAME_get_index_by_NID'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_set_verify'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_SESSION_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `sk_value'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_ctrl'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_load_error_strings'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_NAME_cmp'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_peer_certificate'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_get_subject_name'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ERR_clear_error'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_NAME_get_entry'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `d2i_PKCS12_fp'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `CRYPTO_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_get_ext_d2i'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_cmp_current_time'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_new'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_verify_result'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PKCS7_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_read'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_set_fd'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_pending'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_verify_cert_error_string'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_load_client_CA_file'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_load_verify_locations'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PKCS12_unpack_p7data'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ERR_get_error'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_dup'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSLv23_client_method'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `CRYPTO_set_mem_functions'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ERR_reason_error_string'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `sk_num'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `d2i_X509'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PEM_write_X509'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `EVP_PKEY_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_use_PrivateKey_file'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_library_init'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_use_certificate_file'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_client_CA_list'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_ex_data'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PKCS12_get_friendlyname'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_new'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_SESSION_cmp'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_write'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `RAND_pseudo_bytes'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_get_cert_store'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_alias_get0'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_check_private_key'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PKCS12_unpack_authsafes'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `OBJ_nid2obj'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_print_fp'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `sk_new_null'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_accept'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSLv2_server_method'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_shutdown'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_digest'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_get_issuer_name'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `RAND_status'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_version'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_ctrl'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `OBJ_cmp'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_cmp'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `EVP_sha1'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_NAME_ENTRY_get_data'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_error'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_STORE_set_default_paths'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_CTX_free'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `sk_push'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `OBJ_obj2nid'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSLv23_server_method'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `PKCS12_parse'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `X509_STORE_add_cert'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSLeay'
/home/maemo/svn/subversion-1.6.12/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `SSL_get_peer_cert_chain'
collect2: ld returned 1 exit status
make: *** [subversion/svn/svn] Error 1


ajack 2011-03-25 08:42

Re: svn, segmentation fault
 
Are you missing libopenssl-dev package?

sat2050 2011-03-25 09:14

Re: svn, segmentation fault
 
Quote:

Originally Posted by ajack (Post 975380)
Are you missing libopenssl-dev package?

Its already thr

Code:

apt-get install libssl-dev
Reading package lists... Done
Building dependency tree... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.


sat2050 2011-03-25 09:53

Re: svn, segmentation fault
 
Adding --without-neon I was able to compile svn on scratchbox x86

Code:

[sbox-FREMANTLE_X86: ~/svn/subversion-1.6.12] > ./subversion/svn/svn --version
svn, version 1.6.12 (r955767)
  compiled Mar 25 2011, 05:43:34

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme


mece 2011-03-25 10:46

Re: svn, segmentation fault
 
Solved this one like this:
Code:

root
apt-get install libaprutil1=1.3.9-2
apt-get install libapr1=1.4.2-1

No segfault after that.

Edit: Doing apt-get upgrade would break it again, naturally. But at least this method is simple enough for anyone to do.

ajack 2011-03-25 10:53

Re: svn, segmentation fault
 
@Mece: Thanks man! You've saved me from a lot of heartache! :D:D

@Sat2050: Thanks for the effort, but I guess I'll use Mece's method which is so much easier for the average user to follow. But your efforts is GREATLY APPRECIATED!!! :)

sat2050 2011-03-25 11:33

Re: svn, segmentation fault
 
Quote:

Originally Posted by mece (Post 975440)
Solved this one like this:
Code:

root
apt-get install libaprutil1=1.3.9-2
apt-get install libapr1=1.4.2-1

No segfault after that.

Edit: Doing apt-get upgrade would break it again, naturally. But at least this method is simple enough for anyone to do.

Hey thanx for resolving the issue

sat2050 2011-03-25 11:34

Re: svn, segmentation fault
 
Quote:

Originally Posted by ajack (Post 975446)
@Mece: Thanks man! You've saved me from a lot of heartache! :D:D

@Sat2050: Thanks for the effort, but I guess I'll use Mece's method which is so much easier for the average user to follow. But your efforts is GREATLY APPRECIATED!!! :)

No worries I was able to understand SVN package completely :)
and I was able to compile it on ARMREL as well :D

ZenGuru 2011-03-25 16:12

Re: svn, segmentation fault
 
Quote:

Originally Posted by mece (Post 975440)
Solved this one like this:
Code:

root
apt-get install libaprutil1=1.3.9-2
apt-get install libapr1=1.4.2-1

No segfault after that.

Edit: Doing apt-get upgrade would break it again, naturally. But at least this method is simple enough for anyone to do.

You are great!

Mentalist Traceur 2011-03-25 16:52

Re: svn, segmentation fault
 
Quote:

Originally Posted by sat2050 (Post 975463)
No worries I was able to understand SVN package completely :)
and I was able to compile it on ARMREL as well :D

sat2050: I would much rather take your solution to mece's one. Can you possibly request to be the maintainer of the subversion package in the repository and push your fixed-for-latest-version-of-the-libs subversion package to the repository?

Not that I can't compile myself, and I probably will using your steps, but it'd be nice if people didn't have to deal with either of the fixes in this thread from now on.

- Edit -

My problem with Mece's solution is obviously we had something that installed a more recent version of that lib - if something else depends on the later lib, now or in the future, we're back into dependency hell.


All times are GMT. The time now is 13:51.

vBulletin® Version 3.8.8