| 1 | | |
| | 1 | I build subversion using the dependencies package (subversion-deps-1.4.4.tar.gz) provided on the subversion website. |
| | 2 | |
| | 3 | On linking, gcc spits out errors like this one: |
| | 4 | |
| | 5 | {{{ |
| | 6 | undefined reference to `svn_ra_local__init' |
| | 7 | }}} |
| | 8 | |
| | 9 | The libraries containing the referred functions have been built, but it seems the makefile somehow forgets to link them in. This is linked to the following warning: |
| | 10 | |
| | 11 | {{{ |
| | 12 | libtool: link: warning: undefined symbols not allowed in i586-pc-beos shared libraries |
| | 13 | }}} |
| | 14 | |
| | 15 | The configure script can easily be modified to set {{{-no-undefined}}} for BeOS platforms, like it does for cygwin. At line 19979 in configure, add the part that's preceded with the '+' signs: |
| | 16 | |
| | 17 | {{{ |
| | 18 | echo "$as_me:$LINENO: checking whether libtool needs -no-undefined" >&5 |
| | 19 | echo $ECHO_N "checking whether libtool needs -no-undefined... $ECHO_C" >&6 |
| | 20 | case $host in |
| | 21 | *-*-cygwin*) |
| | 22 | echo "$as_me:$LINENO: result: yes" >&5 |
| | 23 | echo "${ECHO_T}yes" >&6 |
| | 24 | LT_NO_UNDEFINED="-no-undefined" |
| | 25 | ;; |
| | 26 | + *-*-beos*) |
| | 27 | + echo "$as_me:$LINENO: result: yes" >&5 |
| | 28 | + echo "${ECHO_T}yes" >&6 |
| | 29 | + LT_NO_UNDEFINED="-no-undefined" |
| | 30 | + ;; |
| | 31 | + *) |
| | 32 | echo "$as_me:$LINENO: result: no" >&5 |
| | 33 | echo "${ECHO_T}no" >&6 |
| | 34 | LT_NO_UNDEFINED="" |
| | 35 | ;; |
| | 36 | esac |
| | 37 | }}} |
| | 38 | |
| | 39 | Normally, configure.in should be modified, not configure. I will create a patch for configure.in once I get autoconf ported. |
| | 40 | |
| | 41 | You should not use the option {{{--enable-dso}}}, as it's broken on BeOS. |
| | 42 | |
| | 43 | It's possible to build with SSL support using {{{--with-ssl}}}. Be sure to specify {{{CPPFLAGS}}} and {{{LDFLAGS}}} so that the OpenSSL headers and libs can be found. I successfully built subversion with [http://www.bebits.com/app/4317 OpenSSL 0.9.7j]. |
| | 44 | |
| | 45 | {{{make check}}} fails on: |
| | 46 | |
| | 47 | * file locking |
| | 48 | {{{ |
| | 49 | svn_tests: Can't get exclusive lock on file 'test-repo-commit-authz/db/transactions/0-1.txn/rev-lock': Invalid argument |
| | 50 | }}} |
| | 51 | * most of the python test programs |
| | 52 | {{{ |
| | 53 | EXCEPTION: SVNRepositoryCopyFailure |
| | 54 | }}} |
| | 55 | |
| | 56 | These are also because of the broken locking. |
| | 57 | |
| | 58 | there is no {{{flock()}}} in BeOS. Instead, flock_server (http://www.bebits.com/app/4030) can be used. [wiki:dev-libs/apr] needs to be adjusted to use it (ticket #37). |
| | 59 | |