Gentoo Archives: gentoo-embedded

From: Abdolmohaimen Siddig <abdo.a2008@×××××.com>
To: gentoo-embedded@l.g.o
Subject: [gentoo-embedded] shared library
Date: Wed, 11 Feb 2009 09:11:34
Message-Id: 68f7c0560902110111r3cfca727i8bc244a11ec56a6c@mail.gmail.com
1 Hi
2 it seems that certain library are not implemented in the Uclibc because I've
3 built a uclibc build environment and certain services like dhcp need
4 libraries like libnss_dns and this library can not be loaded because it
5 doesn't exist so can any body tell me what to do ? the steps that I've done
6 are listed bellow:
7
8 1- mkdir -p /root/uclibc/build
9 2- cd /root/uclibc/build
10 3- tar -jxvfp /path/to/stage3....tar.bz2 // ( uclibc stage3 )
11 4- cp -L /etc/resolv.conf /root/uclibc/build/etc
12 5- mkdir -p usr/portage
13 6- mount --bind /usr/portage /root/uclibc/build/usr/portage
14 7- mount –bind /dev /root/uclibc/build/dev
15 8- mount -t proc proc /root/uclibc/build/proc
16 9- chroot /root/uclibc/build /bin/bash
17 10- env-update && source /etc/profile
18 11- in the make.conf I added the following variables
19
20 FEATURES="ccache buildpkg"
21 USE="minimal"
22 PKGDIR="${PORTDIR}/packages/uclibc"
23 UCLIBC_CPU="PENTIUMII
24 ln -snf /usr/portage/profiles/uclibc/x86 /etc/make.profile
25
26 12- emerge -av ccache
27 13- emerge -uavDN world
28 14- emerge -C mktemp
29 15- cp /etc/skel/.bash_profile /etc/skel/.bashrc /root
30
31 The above steps were done for preparing the uclibc build environment knowing
32 that the stage I have used was uclibc stage3
33 then I have unmasked some packages that will be used in building my system (
34 tinygentoo) that will be installed in a compact flash
35 the steps then are as follows:
36 1- mkdir /tinygentoo
37 2- ROOT=/tinygentoo USE=symlink emerge -avk =sys-apps/baselayout-2.0.0
38 uclibc busybox
39
40 then i did all the required symbolic links to busybox and all preparations
41 including the proc and /etc/fstab and then compiled the kernel and made the
42 initramfs , the system in the compact flash work successfully and then I
43 have added many packages like iptables, python and twisted web server and
44 all have worked successfully. the problem arises when i installed dhcp, it
45 can not work neither in the build environment nor in the tinygentoo knowing
46 that my USE flag when I merged uclibc was ( USE="minimal -build -debug
47 -hardened (-iconv) -ipv6 (-nls) -pregen -saveconfig -uclibc-compat
48 -userlocales -wordexp )
49
50
51 Thanks very much for reading and replying
52
53
54 --
55 Abdolmohaimen Alsiddig Ahmed
56 Nile Center for Technology Researches
57 +249924205886

Replies

Subject Author
Re: [gentoo-embedded] shared library Mike Frysinger <vapier@g.o>