[BusyBox] busybox.elf2flt undefined reference to `re_syntax_options'

Stuart Hughes stuarth at freescale.com
Thu Jul 21 04:19:02 MDT 2005


I'm using busybox-1.0 and trying to build for m68knommu using a
toolchain based on:
http://www.uclinux.org/pub/uClinux/m68k-elf-tools/gcc-3/ from Bernardo
Innocenti

Most things compile okay, but when it comes to linking, I get a lot of
'undefined references'.

Any idea what might be wrong.

Regards, Stuart



-------------- next part --------------
m68k-uclinux-gcc -B /home/seh/ltib_bsps/ucdimm_dbvz/rootfs/lib// -B /home/seh/ltib_bsps/ucdimm_dbvz/rootfs/usr/lib// -iwithprefix include -m68000 -Wl,-elf2flt -s -Wl,-warn-common -o busybox -Wl,--start-group /home/seh/rpm/BUILD/busybox-1.00/applets/applets.a /home/seh/rpm/BUILD/busybox-1.00/archival/archival.a /home/seh/rpm/BUILD/busybox-1.00/archival/libunarchive/libunarchive.a /home/seh/rpm/BUILD/busybox-1.00/coreutils/coreutils.a /home/seh/rpm/BUILD/busybox-1.00/console-tools/console-tools.a /home/seh/rpm/BUILD/busybox-1.00/debianutils/debianutils.a /home/seh/rpm/BUILD/busybox-1.00/editors/editors.a /home/seh/rpm/BUILD/busybox-1.00/findutils/findutils.a /home/seh/rpm/BUILD/busybox-1.00/init/init.a /home/seh/rpm/BUILD/busybox-1.00/miscutils/miscutils.a /home/seh/rpm/BUILD/busybox-1.00/modutils/modutils.a /home/seh/rpm/BUILD/busybox-1.00/networking/networking.a /home/seh/rpm/BUILD/busybox-1.00/networking/libiproute/libiproute.a /home/seh/rpm/BUILD/busybox-1.00/networking/udhcp/udhcp.a /home/seh/rpm/BUILD/busybox-1.00/procps/procps.a /home/seh/rpm/BUILD/busybox-1.00/loginutils/loginutils.a /home/seh/rpm/BUILD/busybox-1.00/shell/shell.a /home/seh/rpm/BUILD/busybox-1.00/sysklogd/sysklogd.a /home/seh/rpm/BUILD/busybox-1.00/util-linux/util-linux.a /home/seh/rpm/BUILD/busybox-1.00/libpwdgrp/libpwdgrp.a /home/seh/rpm/BUILD/busybox-1.00/coreutils/libcoreutils/libcoreutils.a /home/seh/rpm/BUILD/busybox-1.00/libbb/libbb.a -lcrypt -Wl,--end-group
busybox.elf2flt(.text+0x8cb6): In function `env_main':
: undefined reference to `re_syntax_options'
busybox.elf2flt(.text+0x8cc8): In function `env_main':
: undefined reference to `re_compile_pattern'
busybox.elf2flt(.text+0x8cf8): In function `env_main':
: undefined reference to `re_match'
busybox.elf2flt(.text+0x10114): In function `which_main':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x103d6): In function `which_main':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x10dee): In function `which_main':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x10e08): In function `which_main':
: undefined reference to `regfree'
busybox.elf2flt(.text+0x1171e): In function `which_main':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x117c8): In function `which_main':
: undefined reference to `regfree'
busybox.elf2flt(.text+0x12044): In function `which_main':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x12096): In function `which_main':
: undefined reference to `regfree'
busybox.elf2flt(.text+0x13862): In function `pipe_putc':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x138d4): In function `pipe_putc':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x13ad4): In function `pipe_putc':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x13c74): In function `pipe_putc':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x19770): In function `grep_main':
: undefined reference to `regexec'
busybox.elf2flt(.text+0x19788): In function `grep_main':
: undefined reference to `regfree'
busybox.elf2flt(.text+0x21f3a): In function `telnetd_main':
: undefined reference to `daemon'
busybox.elf2flt(.text+0x2a0cc): In function `udhcpc_main':
: undefined reference to `getopt_long'
busybox.elf2flt(.text+0x2caaa): In function `dumpleases_main':
: undefined reference to `getopt_long'
busybox.elf2flt(.text+0x403c2): In function `sysfs':
: undefined reference to `syscall'
busybox.elf2flt(.text+0x403da): In function `pivot_root':
: undefined reference to `syscall'
busybox.elf2flt(.text+0x408ec): In function `xregcomp':
: undefined reference to `regcomp'
busybox.elf2flt(.text+0x40904): In function `xregcomp':
: undefined reference to `regerror'
busybox.elf2flt(.text+0x40b9a): In function `bb_getopt_ulflags':
: undefined reference to `getopt_long'
collect2: ld returned 1 exit status


More information about the busybox mailing list