[BusyBox] Add sfdisk (mke2fs) fails
Bruno GUEGAN
bruno_guegan at yahoo.fr
Mon Oct 18 13:51:58 UTC 2004
Hello,
I want to add sfdisk to busybox binaries. But i have done some tests and it
fails :
0] Versions :
busybox-1.00-snapshot 15_10_04
uclibc-toolchain : 0.9.26-cvs20040816-5.1
util-linux-2.12
kernel-source-2.6.7-1-i386 (compiled)
1] source sfdisk :
apt-get source util-linux (the lastest version 2.12)
2] Modif in busybox build dir :
Modif (add sfdisk) :
util-linux/Config.in
Add this to util-linux/Makefile.in :
$(UTILLINUX_DIR)sfdisk.o: $(srcdir)i386_sys_types.o $(srcdir)partname.o
$(srcdir)/get_blocks.o
Put :
defines.h (in parent dir)
util-linux/common.h
util-linux/get_blocks.h
util-linux/nls.h
util-linux/sfdisk.c
So, when i compile it : OK ! (just 4 warnings) not critical :
/sfdisk.c:1803: warning: declaration of `is_extended' shadows a global
declaration
/sfdisk.c:603: warning: shadowed declaration is here
/sfdisk.c:1847: warning: declaration of `is_extended' shadows a global
declaration
/sfdisk.c:603: warning: shadowed declaration is here
When i compile i do :
cd $busybox_builddir
if ! /usr/bin/yes n | make oldconfig >/dev/null 2>/dev/null || \
! make CC=i386-uclibc-linux-gcc >/dev/null 2>/dev/null ; then
echo "Error: unable to build busybox !"
exit 1
fi
And put in /usr (busybox dir) that :
cp -a /usr/i386-uclibc-linux/lib/ld-uClibc*.so* \
/usr/i386-uclibc-linux/lib/libc.so* \
/usr/i386-uclibc-linux/lib/libuClibc*.so \
$tmpstructure/usr/i386-uclibc-linux/lib
ln -s /usr/i386-uclibc-linux/lib/ld-uClibc*.so* \
/usr/i386-uclibc-linux/lib/libc.so* \
/usr/i386-uclibc-linux/lib/libuClibc*.so \
$tmpstructure/lib
3] PROBLEM :
When i execute sfdisk in the busybox environnement :
$\ sfdisk -s /dev/hdc
sfdisk : s applet not found
Thanks if you can help me !
Bruno GUEGAN
--
Vous êtes libres; choisissez, c'est-à-dire inventez.
Jean Paul Sartre
More information about the busybox
mailing list