1 |
Hi, |
2 |
|
3 |
when cross-compiling I have encountered some problems with path names: |
4 |
|
5 |
ROOT=/usr/armv4tl-softfloat-linux-gnueabi |
6 |
SYSROOT=/usr/armv4tl-softfloat-linux-gnueabi |
7 |
|
8 |
I get error messages like: |
9 |
/usr/lib/libgmp.so: could not read symbols: File in wrong format |
10 |
|
11 |
or |
12 |
|
13 |
/usr/libexec/gcc/armv4tl-softfloat-linux-gnueabi/ld: cannot find |
14 |
/lib/libcrack.so.2 |
15 |
|
16 |
I have changed the paths manually |
17 |
|
18 |
in the file $ROOT/usr/lib/libgmp.la |
19 |
|
20 |
from |
21 |
libdir='/usr/lib' |
22 |
to |
23 |
libdir='/usr/armv4tl-softfloat-linux-gnueabi/usr/lib' |
24 |
|
25 |
in the file $ROOT/usr/lib/libcrack.so |
26 |
from |
27 |
GROUP ( /lib/libcrack.so.2 ) |
28 |
to |
29 |
GROUP ( /usr/armv4tl-softfloat-linux-gnueabi/lib/libcrack.so.2 ) |
30 |
|
31 |
|
32 |
Are there any tools which can do this automatically. |
33 |
I know that there is cross-fix-root or lafilefixer, but I am reluctant |
34 |
to test it logged in as root. |
35 |
Are there any docs about these tools beside --help on the command line. |
36 |
|
37 |
These problems occurred when cross-compiling as described in |
38 |
http://gentoo.mindzoo.de/index.cgi/wiki/cross-compiling-chroot |
39 |
(currently Version 2) |
40 |
|
41 |
Best regards |
42 |
|
43 |
Jan |