1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Hello, |
5 |
|
6 |
my goal is to use nss_ldap and pam_ldap on my slug [1] with gentoo |
7 |
linux. Problem is: uclibc doesn't support nss which is needed, so I'm |
8 |
trying to get glibc working. I know from #gentoo-embedded that glibc |
9 |
isn't supported, but nevertheless I want to give it a try. I really want |
10 |
my slug to do LDAP authorization. |
11 |
|
12 |
My first try was just to emerge glibc after setting up my slug following |
13 |
this howto [2]. This ended with the same error like described in this |
14 |
thread which has no solution so far. [3] |
15 |
|
16 |
My second was to do a new install with another system tarball. I tried |
17 |
these ones: |
18 |
stage3-arm-20040510.tar.bz2 |
19 |
stage3-armv4l-2005.1.tar.bz2 |
20 |
|
21 |
But with both I just got a "Segmentation fault" when trying to chroot |
22 |
into the gentoo system. |
23 |
|
24 |
Then I tried to setup cross-compiling with crossdev "crossdev -g 3.4.4 |
25 |
armeb-softfloat-linux-gnu". gcc greater than 3.4.4 won't compile. |
26 |
But now, I don't know how to actually *use* the cross compile environment. |
27 |
After reading [4] I tried this: |
28 |
|
29 |
CFLAGS="-march=armv5t -Os" CHOST="armeb-softfloat-linux-gnu" \ |
30 |
CXXFLAGS="-march=armv5t -Os" emerge -B sys-libs/glibc |
31 |
|
32 |
But got this error: |
33 |
|
34 |
checking size of long double... configure: error: cannot compute sizeof |
35 |
(long double), 77 |
36 |
|
37 |
config.log: |
38 |
|
39 |
configure:7128: checking size of long double |
40 |
configure:7447: armeb-softfloat-linux-gnu-gcc -o conftest -march=armv5t |
41 |
- - - -O2 conftest.c >&5 |
42 |
/usr/lib/gcc/armeb-softfloat-linux-gnu/3.4.5/../../../../armeb-softfloat-linux-gnu/bin/ld: |
43 |
cannot find /usr/armeb-softfloat-linux-gnu/lib/libc.so.6 inside |
44 |
/usr/armeb-softfloat-linux-gnu/binutils-bin/2.16.1/../../../armeb-softfloat-linux-gnu |
45 |
collect2: ld returned 1 exit status |
46 |
configure:7450: $? = 1 |
47 |
configure: program exited with status 1 |
48 |
|
49 |
But this file exists: |
50 |
|
51 |
# ls /usr/armeb-softfloat-linux-gnu/lib/libc.so.6 |
52 |
/usr/armeb-softfloat-linux-gnu/lib/libc.so.6 |
53 |
|
54 |
The bottomline is: I don't get it working. I don't even understand this |
55 |
stuff. I'm lacking documentation and don't know what to google for. |
56 |
|
57 |
And I'd be lucky about any hints how to get LDAP Authorization |
58 |
working/glibc installed on my slug. |
59 |
|
60 |
TIA |
61 |
Jan |
62 |
|
63 |
[1] http://www.nslu2-linux.org |
64 |
[2] http://www.nslu2-linux.org/wiki/GentooSlug/HomePage |
65 |
[3] http://sourceware.org/ml/crossgcc/2004-06/msg00170.html |
66 |
[4] http://www.sable.mcgill.ca/~dbelan2/crossdev/cross-compiling-sablevm.txt |
67 |
-----BEGIN PGP SIGNATURE----- |
68 |
Version: GnuPG v1.4.2.2 (GNU/Linux) |
69 |
|
70 |
iD8DBQFEJqhyvuM9o4Jvd/8RAjrCAJoDKBvyzTwtZF14FBABbzpiqyANRACdE8+d |
71 |
iA9alZ0reoSyI4CY/YmFWXQ= |
72 |
=p1LF |
73 |
-----END PGP SIGNATURE----- |
74 |
-- |
75 |
gentoo-embedded@g.o mailing list |