* [gentoo-embedded] [gentoo-user-de] nss on arm - trying to use glibc
@ 2006-03-26 14:42 Jan Girlich
2006-03-28 18:00 ` Mike Frysinger
0 siblings, 1 reply; 3+ messages in thread
From: Jan Girlich @ 2006-03-26 14:42 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
my goal is to use nss_ldap and pam_ldap on my slug [1] with gentoo
linux. Problem is: uclibc doesn't support nss which is needed, so I'm
trying to get glibc working. I know from #gentoo-embedded that glibc
isn't supported, but nevertheless I want to give it a try. I really want
my slug to do LDAP authorization.
My first try was just to emerge glibc after setting up my slug following
this howto [2]. This ended with the same error like described in this
thread which has no solution so far. [3]
My second was to do a new install with another system tarball. I tried
these ones:
stage3-arm-20040510.tar.bz2
stage3-armv4l-2005.1.tar.bz2
But with both I just got a "Segmentation fault" when trying to chroot
into the gentoo system.
Then I tried to setup cross-compiling with crossdev "crossdev -g 3.4.4
armeb-softfloat-linux-gnu". gcc greater than 3.4.4 won't compile.
But now, I don't know how to actually *use* the cross compile environment.
After reading [4] I tried this:
CFLAGS="-march=armv5t -Os" CHOST="armeb-softfloat-linux-gnu" \
CXXFLAGS="-march=armv5t -Os" emerge -B sys-libs/glibc
But got this error:
checking size of long double... configure: error: cannot compute sizeof
(long double), 77
config.log:
configure:7128: checking size of long double
configure:7447: armeb-softfloat-linux-gnu-gcc -o conftest -march=armv5t
- - - -O2 conftest.c >&5
/usr/lib/gcc/armeb-softfloat-linux-gnu/3.4.5/../../../../armeb-softfloat-linux-gnu/bin/ld:
cannot find /usr/armeb-softfloat-linux-gnu/lib/libc.so.6 inside
/usr/armeb-softfloat-linux-gnu/binutils-bin/2.16.1/../../../armeb-softfloat-linux-gnu
collect2: ld returned 1 exit status
configure:7450: $? = 1
configure: program exited with status 1
But this file exists:
# ls /usr/armeb-softfloat-linux-gnu/lib/libc.so.6
/usr/armeb-softfloat-linux-gnu/lib/libc.so.6
The bottomline is: I don't get it working. I don't even understand this
stuff. I'm lacking documentation and don't know what to google for.
And I'd be lucky about any hints how to get LDAP Authorization
working/glibc installed on my slug.
TIA
Jan
[1] http://www.nslu2-linux.org
[2] http://www.nslu2-linux.org/wiki/GentooSlug/HomePage
[3] http://sourceware.org/ml/crossgcc/2004-06/msg00170.html
[4] http://www.sable.mcgill.ca/~dbelan2/crossdev/cross-compiling-sablevm.txt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEJqhyvuM9o4Jvd/8RAjrCAJoDKBvyzTwtZF14FBABbzpiqyANRACdE8+d
iA9alZ0reoSyI4CY/YmFWXQ=
=p1LF
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-embedded] [gentoo-user-de] nss on arm - trying to use glibc
2006-03-26 14:42 [gentoo-embedded] [gentoo-user-de] nss on arm - trying to use glibc Jan Girlich
@ 2006-03-28 18:00 ` Mike Frysinger
2006-03-29 1:57 ` Jan Girlich
0 siblings, 1 reply; 3+ messages in thread
From: Mike Frysinger @ 2006-03-28 18:00 UTC (permalink / raw
To: gentoo-embedded; +Cc: Jan Girlich
On Sunday 26 March 2006 09:42, Jan Girlich wrote:
> My first try was just to emerge glibc after setting up my slug following
> this howto [2]. This ended with the same error like described in this
> thread which has no solution so far. [3]
>
> stage3-arm-20040510.tar.bz2
> stage3-armv4l-2005.1.tar.bz2
this are for little endian arm machines so unless you are byteswapping booting
your slug into little endian format, that aint gonna work
> Then I tried to setup cross-compiling with crossdev "crossdev -g 3.4.4
> armeb-softfloat-linux-gnu". gcc greater than 3.4.4 won't compile.
> But now, I don't know how to actually *use* the cross compile environment.
> After reading [4] I tried this:
glibc-2.3.6 or glibc-2.4 are your best bet ... glibc-2.3.5 for sure wont work
ive never tested softfloat glibc, just softfloat uclibc
> /usr/lib/gcc/armeb-softfloat-linux-gnu/3.4.5/../../../../armeb-softfloat-li
>nux-gnu/bin/ld: cannot find /usr/armeb-softfloat-linux-gnu/lib/libc.so.6
> inside
> /usr/armeb-softfloat-linux-gnu/binutils-bin/2.16.1/../../../armeb-softfloat
>-linux-gnu collect2: ld returned 1 exit status
known bug in glibc ebuild i havent committed the fix for yet ... ive been sick
so i havent had much time to test it out before committing
if you want to hack around it for now, go into /usr/armeb-softfloat-linux-gnu/
and run this:
ln -s . armeb-softfloat-linux-gnu
-mike
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-embedded] [gentoo-user-de] nss on arm - trying to use glibc
2006-03-28 18:00 ` Mike Frysinger
@ 2006-03-29 1:57 ` Jan Girlich
0 siblings, 0 replies; 3+ messages in thread
From: Jan Girlich @ 2006-03-29 1:57 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Mike Frysinger said:
> On Sunday 26 March 2006 09:42, Jan Girlich wrote:
>>
>> stage3-arm-20040510.tar.bz2
>> stage3-armv4l-2005.1.tar.bz2
>
> this are for little endian arm machines so unless you are byteswapping
> booting
> your slug into little endian format, that aint gonna work
I thought of something like this but I didn't know how to determine which
endian mode is used. Whatever, I tried to find some informations about
this issue and found this [1]:
"The primary reason for all this byteswapping is the bootloader is
expecting the kernel and initrd in BE format; but if thebootloader is
already in LE mode, we may be able to eliminate some of the byteswapping
steps."
Actually I would try another bootloader but I'm afraid of trashing my slug
and I don't know how I'm supposed to install gentoo this way.
I would really appreciate if someone could give me some good
link/documentation about big endian/little endian (I know what this this
in theory but not about the consequences and how to deal with this in real
life).
> glibc-2.3.6 or glibc-2.4 are your best bet ... glibc-2.3.5 for sure wont
> work
[...]
[ld error]
> if you want to hack around it for now, go into
> /usr/armeb-softfloat-linux-gnu/
> and run this:
> ln -s . armeb-softfloat-linux-gnu
In addition I noticed these three lines and tried to compile the glibc again.
* CBUILD: i686-pc-linux-gnu
* CHOST: i686-pc-linux-gnu
* CTARGET: armeb-softfloat-linux-gnu
This time I used this command:
CFLAGS="-march=armv5t -Os" CTARGET="armeb-softfloat-linux-gnu" \
CXXFLAGS="-march=armv5t -Os" ACCEPT_KEYWORDS="~arm" emerge --nodeps \
=sys-libs/glibc-2.3.6-r3 -B
(note the CTARGET instead of CHOST)
And it works. Now I copied the tarball on my slug and emerged it. Then I
changed CHOST to armeb-softfloat-linux-gnu and tried to install nss_ldap.
But with the usual errors like this one:
ldap-nss.h:643: error: `NSS_STATUS' declared as function returning a function
I'll try some things and report again.
But thanks a lot so far!
Jan
[1] http://ibot.rikers.org/%23nslu2-linux/20050721.html.gz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFEKelpvuM9o4Jvd/8RAketAJ9PatyyHvV2gF5UiI/aqBJp/A8cTwCdGFt8
+GlUvF6k0nAJ2tufXDBhPww=
=Sbux
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-29 1:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-26 14:42 [gentoo-embedded] [gentoo-user-de] nss on arm - trying to use glibc Jan Girlich
2006-03-28 18:00 ` Mike Frysinger
2006-03-29 1:57 ` Jan Girlich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox