This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Compiling busybox
- From: Shaun Jackman <sjackman at gmail dot com>
- To: newlib at sources dot redhat dot com
- Date: Tue, 5 Apr 2005 11:18:20 -0700
- Subject: Compiling busybox
- Reply-to: Shaun Jackman <sjackman at gmail dot com>
Hello,
I recently compiled busybox for i386-linux using newlib 1.12.0 (CVS
2004-12-02). I ran into a few minor issues I'll list in one mail here:
sys/lock.h includes machine/weakalias.h but the latter is not installed.
symlink(2) is not defined in sys/unistd.h.
sys/signal.h does not define sighandler_t.
linking busybox gives...
/usr/bin/ld: warning: type and size of dynamic symbol
`_ctype_@@VERS_1.10' are not defined
My biggest trouble was with functions that weren't defined due to
being wrapped in a #ifndef _POSIX_SOURCE. Otherwise, it was relatively
painless! busybox now compiles quite cleanly with newlib for Linux. My
next step is to make busybox compile cleanly using newlib for arm-elf.
Cheers,
Shaun
$ gcc -nostartfiles /usr/lib/newlib/crt0.o -Wl,-warn-common -o busybox
-Wl,--start-group applets/applets.a archival/archival.a
archival/libunarchive/libunarchive.a coreutils/coreutils.a
console-tools/console-tools.a debianutils/debianutils.a
editors/editors.a findutils/findutils.a init/init.a
miscutils/miscutils.a modutils/modutils.a networking/networking.a
networking/libiproute/libiproute.a networking/udhcp/udhcp.a
procps/procps.a loginutils/loginutils.a shell/shell.a
sysklogd/sysklogd.a util-linux/util-linux.a libpwdgrp/libpwdgrp.a
coreutils/libcoreutils/libcoreutils.a libbb/libbb.a -L/usr/lib/newlib
-Wl,--end-group
/usr/bin/ld: warning: type and size of dynamic symbol
`_ctype_@@VERS_1.10' are not defined