Cross compiling tinc for arm platform

Rob Townley rob.townley at gmail.com
Tue Nov 24 16:31:10 CET 2009


On Tue, Nov 24, 2009 at 9:09 AM, Guus Sliepen <guus at tinc-vpn.org> wrote:
> On Tue, Nov 24, 2009 at 04:00:36PM +0100, David Schueler wrote:
>
>> I managed to setup a cross compiler on my Gentoo system to compile for arm
>> platform.
>> I installed all nessecary tools and libs in /usr/arm-unknown-linux-uclibc/
>> like openssl lzo and so on over the cross emerge package manager.
> [...]
>> But when i try to establish a connection, tinc is reporting:
>> tincd 1.0.11 (Nov 24 2009 12:10:17) starting, debug level 1
>> tincd: can't resolve symbol 'EVP_bf_cbc'
>>
>> So EVP_bf_cbc is defined in evp.h of the openssl lib and is compiled into
>> libcrypto.so. libcrypto.so is in /usr/lib on the arm-system.
>> So why do i get that error?
>> Does someone have a hint what i'm doing wrong?
>
> Are you sure libcrypto.so in /usr/arm-unknown-linux-uclibc on the Gentoo system
> is the same as on your ARM device? You can also try to make a static binary by
> adding LDFLAGS=-static to your ./configure command. Other than that, I have no
> ideas, I have no experience with cross-compiling for the ARM platform.

In a general system context, this error is often resolved by updating
symbolic links, but that doesn't mean it will in your case.
In the i386 search below, the only place EVP_bf_cbc is found is in
libkio, not libcrypto.

What are the results of "file
/usr/arm-unknown-linux-uclibc/libcrypto.so" on your intel and arm
system?

On a Fedora 11 intel system:

# file /usr/lib/libcrypto.so
  /usr/lib/libcrypto.so: symbolic link to `libcrypto.so.0.9.8k'

# file /usr/lib/libcrypto.so.0.9.8k
  /usr/lib/libcrypto.so.0.9.8k: ELF 32-bit LSB shared object, Intel
80386, version 1 (SYSV), dynamically linked, stripped


# fgrep -i EVP_bf_cbc /usr/lib/*.*
  Binary file /usr/lib/libkio.so.4 matches
  Binary file /usr/lib/libkio.so.4.2.0 matches


i hope you get this working as i have some pocketpc machines that
could use tinc.  If it matters, i am running tincd 1.0.11~git (Oct 22
2009 23:29:19).


>
> --
> Met vriendelijke groet / with kind regards,
>     Guus Sliepen <guus at tinc-vpn.org>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iEYEARECAAYFAksL9xMACgkQAxLow12M2ns/5ACfQPyD+Tw+v9AO4mBbqXBLSszf
> x1oAoIuB+JE1wTquOeEb4fJQo2ddTvZU
> =DSDE
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> tinc mailing list
> tinc at tinc-vpn.org
> http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc
>
>


More information about the tinc mailing list