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)

ajack 2011-03-23 12:14

Re: svn, segmentation fault
 
Quote:

Originally Posted by sat2050 (Post 973711)
This error maybe due to the recent ssl patch ...
Is someone able to install and use current version svn?

Are you referring to the libopenssl package? Details please...

sat2050 2011-03-23 12:48

Re: svn, segmentation fault
 
Please ignore my previous comment
I was just going through http://maemo.org/packages/package_in...sion/1.6.12-3/
and saw the last patch that was made and hence was speculating but I did not see the date :D
Sorry for the inconvenience caused

but I am trying to resolve the problem as well and will post any updates I get
Sorry again

sat2050 2011-03-23 15:26

Re: svn, segmentation fault
 
Hi,
I am trying to recompile svn on maemo sdk but unable to configure the package. It seems there is some discrepancy in the libapr version.

check following log

Code:

maemo@maemo-desktop:~/subversion-1.6.12$ ./configure --with-ssl
configure: Configuring Subversion 1.6.12
./configure: line 2330: syntax error near unexpected token `config.nice'
./configure: line 2330: `SVN_CONFIG_NICE(config.nice)'
maemo@maemo-desktop:~/subversion-1.6.12$
maemo@maemo-desktop:~/subversion-1.6.12$ sh autogen.sh
buildcheck: checking installation...
buildcheck: autoconf version 2.65 (ok)
buildcheck: autoheader version 2.65 (ok)
buildcheck: libtool version 2.2.6b (ok)
buildcheck: local copy of find_apr.m4 does not match APR's copy.
            An updated copy of find_apr.m4 may need to be checked in.
buildcheck: local copy of PrintPath does not match APR's copy.
            An updated copy of PrintPath may need to be checked in.
buildcheck: local copy of find_apu.m4 does not match APRUTIL's copy.
            An updated copy of find_apu.m4 may need to be checked in.
Copying libtool helper: /usr/share/aclocal/libtool.m4
Copying libtool helper: /usr/share/aclocal/ltoptions.m4
Copying libtool helper: /usr/share/aclocal/ltsugar.m4
Copying libtool helper: /usr/share/aclocal/ltversion.m4
Copying libtool helper: /usr/share/aclocal/lt~obsolete.m4
Creating build-outputs.mk...
Creating svn_private_config.h.in...
Creating configure...
configure.ac:189: error: possibly undefined macro: AC_PROG_LIBTOOL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

You can run ./configure now.

Running autogen.sh implies you are a maintainer.  You may prefer
to run configure in one of the following ways:

./configure --enable-maintainer-mode
./configure --disable-shared
./configure --enable-maintainer-mode --disable-shared

Note:  If you wish to run a Subversion HTTP server, you will need
Apache 2.x.  See the INSTALL file for details.


sat2050 2011-03-23 20:51

Re: svn, segmentation fault
 
I re-extracted the source for subversion 1.6.12-3 from
http://maemo.org/packages/source/vie...sion/1.6.12-3/
but did not apply the diff patch and was able to build svn successfully without errors.

It seems errors raised after patching are due to missing directories for dependencies like libtool,libapr,sqllite,neon etc
I shall test the armrel version in the morning.

Will update the details here.

Mentalist Traceur 2011-03-23 22:17

Re: svn, segmentation fault
 
Quote:

Originally Posted by sat2050 (Post 974221)
I re-extracted the source for subversion 1.6.12-3 from
http://maemo.org/packages/source/vie...sion/1.6.12-3/
but did not apply the diff patch and was able to build svn successfully without errors.

It seems errors raised after patching are due to missing directories for dependencies like libtool,libapr,sqllite,neon etc
I shall test the armrel version in the morning.

Will update the details here.

Psssst. You're awesome.

ajack 2011-03-24 03:38

Re: svn, segmentation fault
 
Quote:

Originally Posted by sat2050 (Post 974221)
I re-extracted the source for subversion 1.6.12-3 from
http://maemo.org/packages/source/vie...sion/1.6.12-3/
but did not apply the diff patch and was able to build svn successfully without errors.

It seems errors raised after patching are due to missing directories for dependencies like libtool,libapr,sqllite,neon etc
I shall test the armrel version in the morning.

Will update the details here.

This is great news, can you give us a simple HOWTO?

Another question... How do we report bugs like this so that the maemo community can update the repos?

sat2050 2011-03-24 06:49

Re: svn, segmentation fault
 
Guys this is the first time I am using maemo sdk to compile a package.
You can get the virtual image for the sdk and download the source for subversion.
Use the sdk to compile this source.
Also if you apply the patch to source please remember you will have to give paths to the lib directories alongwith configure because it raises while configuration. I have some work to finish up before I can start on this today.

thanks any help is appreciated

Update :
Within Scratchbox
I am able to install libapr1 from extras-devel
Unable to install libaprutil1
Log output

Code:

dpkg: regarding .../libaprutil1_1.3.9+dfsg-5~bpo50+1maemo2_i386.deb containing libaprutil1:
 package uses Breaks; not supported in this dpkg
dpkg: error processing /var/cache/apt/archives/libaprutil1_1.3.9+dfsg-5~bpo50+1maemo2_i386.deb (--unpack):
 unsupported dependency problem - not installing libaprutil1
Errors were encountered while processing:
 /var/cache/apt/archives/libaprutil1_1.3.9+dfsg-5~bpo50+1maemo2_i386.deb
E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)

Any suggestions

ajack 2011-03-24 10:22

Re: svn, segmentation fault
 
Quote:

Originally Posted by sat2050 (Post 974449)
Guys this is the first time I am using maemo sdk to compile a package.
You can get the virtual image for the sdk and download the source for subversion.
Use the sdk to compile this source.
Also if you apply the patch to source please remember you will have to give paths to the lib directories alongwith configure because it raises while configuration. I have some work to finish up before I can start on this today.

thanks any help is appreciated

Update :
Within Scratchbox
I am able to install libapr1 from extras-devel
Unable to install libaprutil1
Log output

Code:

dpkg: regarding .../libaprutil1_1.3.9+dfsg-5~bpo50+1maemo2_i386.deb containing libaprutil1:
 package uses Breaks; not supported in this dpkg
dpkg: error processing /var/cache/apt/archives/libaprutil1_1.3.9+dfsg-5~bpo50+1maemo2_i386.deb (--unpack):
 unsupported dependency problem - not installing libaprutil1
Errors were encountered while processing:
 /var/cache/apt/archives/libaprutil1_1.3.9+dfsg-5~bpo50+1maemo2_i386.deb
E: Sub-process /scratchbox/devkits/debian-etch/bin/dpkg returned an error code (1)

Any suggestions

Can you package a deb file for us? :p

sat2050 2011-03-24 11:35

Re: svn, segmentation fault
 
Quote:

Originally Posted by ajack (Post 974556)
Can you package a deb file for us? :p

There is some conflict with apr version 1.4.2
Check Here

I am unable to install libaprutil1
I am also unabel to compile libaprutil1
Code:

[sbox-FREMANTLE_X86: ~/apr-util-1.3.9+dfsg] > ./configure --with-apr=../apr-1.4.2/configure
checking build system type... i486-pc-linux-gnu
checking host system type... i486-pc-linux-gnu
checking target system type... i486-pc-linux-gnu
checking for a BSD-compatible install... /scratchbox/tools/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.3.9
checking for chosen layout... apr-util
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
Applying apr-util hints file rules for i486-pc-linux-gnu
checking for APR... yes
configure: error: unrecognized option: --installbuilddir
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --includes
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --link-libtool
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --apr-so-ext
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --apr-lib-target
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --cpp
Try `../apr-1.4.2/configure --help' for more information.
  setting CPP to ""
configure: error: unrecognized option: --cpp
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --cflags
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --cppflags
Try `../apr-1.4.2/configure --help' for more information.
  setting CPPFLAGS to ""
configure: error: unrecognized option: --cppflags
Try `../apr-1.4.2/configure --help' for more information.
configure: error: unrecognized option: --shlib-path-var
Try `../apr-1.4.2/configure --help' for more information.
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /scratchbox/tools/bin/grep
checking for egrep... /scratchbox/tools/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for ldap support...
checking for default DBM... sdbm (default)
checking for pg_config... no
checking libpq-fe.h usability... no
checking libpq-fe.h presence... no
checking for libpq-fe.h... no
checking postgresql/libpq-fe.h usability... no
checking postgresql/libpq-fe.h presence... no
checking for postgresql/libpq-fe.h... no
checking sqlite3.h usability... yes
checking sqlite3.h presence... yes
checking for sqlite3.h... yes
checking for sqlite3_open in -lsqlite3... yes
checking sqlite.h usability... no
checking sqlite.h presence... no
checking for sqlite.h... no
checking sybdb.h usability... no
checking sybdb.h presence... no
checking for sybdb.h... no
checking freetds/sybdb.h usability... no
checking freetds/sybdb.h presence... no
checking for freetds/sybdb.h... no
checking for odbc_config... no
checking sql.h usability... no
checking sql.h presence... no
checking for sql.h... no
checking odbc/sql.h usability... no
checking odbc/sql.h presence... no
checking for odbc/sql.h... no
checking Expat 1.95.x... yes
  setting APRUTIL_EXPORT_LIBS to "-lexpat"
  setting APRUTIL_LIBS to "-lexpat"
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for type of inbuf parameter to iconv... char **
checking for iconv.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking for CODESET in langinfo.h... yes
checking whether APR has DSO support... no
checking for library containing crypt... -lcrypt
checking if system crypt() function is threadsafe... no
checking for crypt_r... yes
checking style of crypt_r... none
cp: cannot stat `/home/maemo/apr_rules.mk': No such file or directory
configure: creating ./config.status
config.status: creating Makefile
config.status: creating export_vars.sh
config.status: creating build/pkg/pkginfo
config.status: creating apr-util.pc
config.status: creating apu-1-config
config.status: creating include/private/apu_select_dbm.h
config.status: creating include/apr_ldap.h
config.status: creating include/apu.h
config.status: creating include/apu_want.h
config.status: creating test/Makefile
config.status: creating include/private/apu_config.h
config.status: include/private/apu_config.h is unchanged
config.status: executing default commands


ajack 2011-03-24 11:52

Re: svn, segmentation fault
 
Do keep us posted... Thanks again for your efforts... :)

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.

ajack 2011-03-26 00:41

Re: svn, segmentation fault
 
Quote:

Originally Posted by Mentalist Traceur (Post 975636)
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.

I agree with what you've said. However, Mece's solution gives us an immediate working subversion. Also, if such dependencies exist, it would have been highlighted by apt-get and the other dependent application would have been removed in the process.

Moving forward, we should report this to the maintainer and let them sort this out. Looking at the "apt-cache show libaprutil1" output, the maintainer is sebastien.lelong@gmail.com, do you want me to email this person?

ethernin 2011-03-26 09:16

Re: svn, segmentation fault
 
Quote:

Originally Posted by ajack (Post 975892)
I agree with what you've said. However, Mece's solution gives us an immediate working subversion. Also, if such dependencies exist, it would have been highlighted by apt-get and the other dependent application would have been removed in the process.

Moving forward, we should report this to the maintainer and let them sort this out. Looking at the "apt-cache show libaprutil1" output, the maintainer is sebastien.lelong@gmail.com, do you want me to email this person?


I Just want to say that you guys are AWESOME and this saved my day. I've been battling this for a long time and just found this. THANK YOU FOR ALL YOUR EFFORTS I LOVE THIS COMMUNITY! :D

ajack 2011-03-26 09:27

Re: svn, segmentation fault
 
I've emailed Sebastien:

Subversion problems on Maemo 5
From: Ajack <*******>
To: sebastien.lelong@gmail.com
Hi Sebastien,

The current version of subversion is having problems and we've identified the
following two packages as the culprit. They are libaprutil1 and libapr1. You
can find out more from the TMO thread at URL
http://talk.maemo.org/showthread.php...ght=subversion

Since you are listed as the maintainer of the two libraries, I was hoping you
can look into this problem so that this problem is resolved.

Regards,
Adrian (aka ajack)

ajack 2011-03-26 10:22

Re: svn, segmentation fault
 
I just got a reply... doesn't look good people... :(

-------

> Hi Adrian,
>
> Sorry to say, but I'm not in N900 dev anymore. I can remember I packaged
> a SVN, wasn't easy, mainly because weird dependencies (you can still skip
> them, and ./configure almost silents them, but then you got a very
> restrictive svn not able to checkout repos through https for
> instance...).
>
> I had a quick look at your thread, it seems you guys got a solution, the
> better is some of you replaces the deb I packaged, don't you think ?
> Sorry I can't dig this further. I've subscribed to the thread and will
> chime when I think I can help anyway.
>
> So many things to do, so little time... :)
>
>
> Cheers,
> Seb

ajack 2011-03-26 10:25

Re: svn, segmentation fault
 
I appreciate his (Sebastien Lelong) honesty and we do have a solution... maybe we can get TMO to downgrade the repos... but I am sure there are various QA issues involved. What now brown cow?

sat2050 2011-03-28 08:58

Re: svn, segmentation fault
 
Hello Guys,

Has some one been able to figure out if libapr is a dependecy for some package except for subversion, because it seems that the latest version of both libapr1 and libapr-util1 was patched for n900 using debian guidelines.
Also the source packages available at the package instance page dont seem to be proper because they had some files missing.
Therefore I had to download sources from subversion website again to recompile it.
Mece's versions are more stable than the latest versions for libapr1 and libaprutil-1.
For now subversion seems to run fine,
except one problem if the network hangs or connection is lost while checkout subversion stops responding and the drive may get corrupted so please run fsck utility if svn crashes.

mece 2011-03-28 09:15

Re: svn, segmentation fault
 
@sat2050 they are not "my versions" just the previous versions, that worked ;)
anyway, you can request to maintain the package and then upload fixed versions if you get it working.

sat2050 2011-03-28 10:06

Re: svn, segmentation fault
 
Quote:

Originally Posted by mece (Post 976964)
@sat2050 they are not "my versions" just the previous versions, that worked ;)
anyway, you can request to maintain the package and then upload fixed versions if you get it working.

I dont think I will be able to maintain the subversion package for now since I dont have much info about the svn build, I also need to be aware of the dfsg rules and maemo patches if applicable. Learning this will require a lot of time But with some help I am sure we can definitely try to maintian this package :)

Thanks

ajack 2011-03-28 17:10

Re: svn, segmentation fault
 
To sum it all up in one simple post, it has been identified that the libraries libapr1 and libaprutil1 is causing subversion to crash with a "segmentation fault" error. You can fix this by typing in:

Code:

sudo apt-get install libaprutil1=1.3.9-2 libapr1=1.4.2-1
However, this will cause the libraries to be replace when you do a package update with HAM, FAM or apt-get. To prevent these libraries from updating to the latest, create or edit the file at:

/etc/apt/preferences

And add in the following entires into the file:

Code:

Package: libaprutil1
Pin: version 1.3.9-2
Pin-Priority: 1001

Package: libapr1
Pin: version 1.4.2-1
Pin-Priority: 1001

This will pin the libraries and prevent them from being updated with the newer/faulty versions.

There was also reports that people had problems getting the older version of the two libs files. To download these two files, go to the following two URLs:

http://maemo.org/packages/view/libaprutil1/
http://maemo.org/packages/view/libapr1/

To install these DEBs, use the following command (as root):

Code:

dpkg -i <deb_file_armel.deb>
Hope this helps. :)

g_k 2011-03-30 12:03

Re: svn, segmentation fault
 
This is great news! However, I get the error message:

Quote:

E: Version '1.3.9-2' for 'libaprutil1' was not found
For libapr1 it is the same problem...

Do you have an idea why this can be?

Thanks in advance!

sat2050 2011-03-30 17:41

Re: svn, segmentation fault
 
Quote:

Originally Posted by g_k (Post 978457)
This is great news! However, I get the error message:



For libapr1 it is the same problem...

Do you have an idea why this can be?

Thanks in advance!

just download the deb file and install using dpkg.
there seems to be some problem with these packages on repo

ajack 2011-03-31 04:12

Re: svn, segmentation fault
 
Quote:

Originally Posted by sat2050 (Post 978640)
just download the deb file and install using dpkg.
there seems to be some problem with these packages on repo

The DEBs can be found at URL:

http://maemo.org/packages/view/libaprutil1/
http://maemo.org/packages/view/libapr1/

g_k 2011-03-31 05:25

Re: svn, segmentation fault
 
Thanks a lot!

*yawn* What a great feeling to have subversion on my N900! :)

Mentalist Traceur 2011-03-31 22:05

Re: svn, segmentation fault
 
*Sigh* Wish maintainers actually COMMITTED to maintaining something for years down the line.

Meh. Oh, also, for those who don't feel like manually fetching old dependencies, or in case the repository auto-deletes them (which it does sometimes do) there's also git and the git-svn plugin for it available, so you can use git-svn to get your svn access.

- Edit -

Of course, to be fair, I understand that life gets in the way and other circumstances can demotivate, so I don't hold it against the developer. Also, I haven't actually tries git-svn yet - I just happened to find it when looking it up in the repository.

- Edit 2 -

Maybe not. Trying to apt-get the git-svn package gets a package not found, and the maemo.org/packages search, although it lists a git-svn package, doesn't seem to actually have anything to download.

vinc17 2011-05-24 21:10

Re: svn, segmentation fault
 
Is there any reason why the repositories are not fixed yet? It's annoying to have them in an unstable state.

gun007 2011-06-02 04:28

Re: svn, segmentation fault
 
apt-cache show subversion

show install subversion 1.6.12 & 1.6.16

i'm try apt-get purge subversion

and

apt-get install subversion

brahim98 2011-10-13 12:49

[tutorial] compile subversion
 
Here is a step by step installation process of subversion and all the tools needed :
Beware, compilation and installation is not optified (add --prefix=/opt on every ./configure, but not tested) and not packaged (didn't dig into it), it's from upstream tarballs.
1) install compiler
Code:

sudo gainroot
apt-get install make gcc g++
exit

2) install wget
Code:

sudo gainroot
apt-get install wget
exit

3) compile m4
3.1) download
Code:

wget -c http://ftp.gnu.org/gnu/m4/m4-1.4.15.tar.gz
3.2) decompress
Code:

gunzip m4-1.4.15.tar.gz
tar -xf m4-1.4.15.tar
rm -f m4-1.4.15.tar

3.3) build
Code:

cd m4-1.4.15
./configure
make

3.4) install
Code:

sudo gainroot
make install
exit

3.5) clean
Code:

cd ..
rm -rf m4-1.4.15

4) compile autoconf
4.1) download
Code:

wget -c http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
4.2) decompress
Code:

gunzip autoconf-2.68.tar.gz
tar -xf autoconf-2.68.tar
rm -f autoconf-2.68.tar

4.3) build
Code:

cd autoconf-2.68
./configure
make

4.4) install
Code:

sudo gainroot
make install
exit

4.5) clean
Code:

cd ..
rm -rf autoconf-2.68

5) install libtool
Code:

sudo gainroot
apt-get install libtool
exit

6) install libsqlite3-dev
Code:

sudo gainroot
apt-get install libsqlite3-dev
exit

7) compile apr
7.1) download
Code:

wget -c http://apache.mirrors.tds.net//apr/apr-1.4.5.tar.gz
7.2) decompress
Code:

gunzip apr-1.4.5.tar.gz
tar -xf apr-1.4.5.tar
rm -f apr-1.4.5.tar

7.3) build
Code:

cd apr-1.4.5
./configure
make

7.4) install
Code:

sudo gainroot
make install
exit

7.5) clean
Code:

cd ..
rm -rf apr-1.4.5

8) compile aprutil
8.1) download
Code:

wget -c http://apache.mirrors.tds.net//apr/apr-util-1.3.12.tar.gz
8.2) decompress
Code:

gunzip apr-util-1.3.12.tar.gz
tar -xf apr-util-1.3.12.tar
rm -f apr-util-1.3.12.tar

8.3) build
Code:

cd apr-util-1.3.12
./configure
make

8.4) install
Code:

sudo gainroot
make install
exit

8.5) clean
Code:

cd ..
rm -rf apr-util-1.3.12

9) compile diffutils
9.1) download
Code:

wget -c http://ftp.gnu.org/gnu/diffutils/diffutils-3.2.tar.gz
9.2) decompress
Code:

gunzip diffutils-3.2.tar.gz
tar -xf diffutils-3.2.tar
rm -f diffutils-3.2.tar

9.3) build
Code:

cd diffutils-3.2
./configure
make

9.4) install
Code:

sudo gainroot
make install
exit

9.5) clean
Code:

cd ..
rm -rf diffutils-3.2

10) compile subversion
10.1) download
Code:

wget -c http://subversion.tigris.org/downloads/subversion-1.6.17.tar.gz
10.2) decompress
Code:

gunzip subversion-1.6.17.tar.gz
tar -xf subversion-1.6.17.tar
rm -f subversion-1.6.17.tar

10.3) build
Code:

cd subversion-1.6.17
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr
make

10.4) install
Code:

sudo gainroot
make install
exit

10.5) clean
Code:

cd ..
rm -rf subversion-1.6.17


pichlo 2013-12-17 01:23

Re: svn, segmentation fault
 
2 Attachment(s)
Just found this thread as I was having the same problem. Big thanks
guys for finding the solution, it works fantastic. Only one thing, otherwise I would not have bothered bumping a two years old thread.

Quote:

Originally Posted by Mentalist Traceur (Post 979536)
... for those who don't feel like manually fetching old dependencies, or in case the repository auto-deletes them ...

... I have attached the two working libraries here:


All times are GMT. The time now is 04:56.

vBulletin® Version 3.8.8