[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiling busybox-1.00-pre3



Hi!

Just trying to compile busybox-1.00-pre3 again. This time I'm getting
farther because I figured out that I need to add
-I/usr/local/cris/lib/gcc-lib/cris/2.96/linux/include to the compiler
options. But then I'm getting some linking errors that I can not resolve.
Is this a problem in the glibc from cris-dist or does anybody have any
hints what to do next?

Here the minimal config I use (for now):
busybox-1.00-pre3> sed -ne "/^[^# ]/p" .config
HAVE_DOT_CONFIG=y
CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
CONFIG_FEATURE_VERBOSE_USAGE=y
CONFIG_FEATURE_INSTALLER=y
CONFIG_FEATURE_DEVPTS=y
USING_CROSS_COMPILER=y
CROSS_COMPILER_PREFIX="/usr/local/cris/cris-"
EXTRA_CFLAGS_OPTIONS="-I/usr/local/cris/lib/gcc-lib/cris/2.96/linux/include"
PREFIX="./_install"
CONFIG_TEST=y
CONFIG_FEATURE_SH_IS_ASH=y
CONFIG_ASH=y
CONFIG_ASH_JOB_CONTROL=y
CONFIG_ASH_ALIAS=y
CONFIG_ASH_MATH_SUPPORT=y
CONFIG_ASH_MAIL=y
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
CONFIG_FEATURE_COMMAND_EDITING=y
CONFIG_FEATURE_COMMAND_TAB_COMPLETION=y
CONFIG_FEATURE_COMMAND_HISTORY=15
CONFIG_FEATURE_SH_FANCY_PROMPT=y
CONFIG_FEATURE_SH_EXTRA_QUIET=y


The problematic command is the following one, where the problem starts:
/usr/local/cris/cris-gcc -s -Wl,-warn-common -o busybox ./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
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(environ.o): warning: definition of `environ' overriding common
/usr/local/cris/lib/gcc-lib/cris/2.96/crt0.o: warning: common is here
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(sysclose.o): In function `close':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/sysclose.c:14: warning: _close is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(sysexecve.o): In function `execve':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/sysexecve.c:16: warning: _execve is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(sysfork.o): In function `fork':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/sysfork.c:17: warning: _fork is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(fstatr.o): In function `fstat_r':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/reent/fstatr.c:62: warning: _fstat is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(signalr.o): In function `getpid_r':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/reent/signalr.c:96: warning: _getpid is not implemented and will always fail
./coreutils/coreutils.a(test.o): In function `primary':
test.o(.text+0x3a6): warning: isatty is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(signalr.o): In function `kill_r':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/reent/signalr.c:60: warning: _kill is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(syslink.o): In function `link':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/syslink.c:15: warning: _link is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(lseekr.o): In function `lseek_r':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/reent/lseekr.c:59: warning: _lseek is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(sysopen.o): In function `open':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/sysopen.c:26: warning: _open is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(sysread.o): In function `read':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/sysread.c:17: warning: _read is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(systimes.o): In function `times':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/systimes.c:15: warning: _times is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(syswrite.o): In function `write':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/syswrite.c:17: warning: _write is not implemented and will always fail
/usr/local/cris/lib/gcc-lib/cris/2.96/libc.a(sysfcntl.o): In function `fcntl':
/usr/src/redhat/BUILD/cris-dist-1.25/./gnu-toplev/newlib/libc/syscalls/sysfcntl.c:17: warning: _fcntl is not implemented and will always fail
./applets/applets.a(busybox.o): In function `install_links':
busybox.o(.text+0x16): undefined reference to `symlink'
busybox.o(.text+0x5a): undefined reference to `__errno_location'
./applets/applets.a(busybox.o): In function `busybox_main':
busybox.o(.text+0x1c8): undefined reference to `stderr'
busybox.o(.text+0x1ea): undefined reference to `stderr'
busybox.o(.text+0x222): undefined reference to `stderr'
busybox.o(.text+0x236): undefined reference to `stderr'
.....and tones of such messages more.....

-- 
MfG / Regards
Friedrich Lobenstock