i586-pc-linux-gnu-gcc -O2 -march=pentium-mmx -pipe -o m4 m4.o builtin.o debug.o eval.o format.o freeze.o input.o macro.o output.o path.o symtab.o stackovf.o ../lib/libm4.a m4.o: In function `m4_error_at_line': m4.c:(.text+0x2e): undefined reference to `verror_at_line' m4.o: In function `m4_error': m4.c:(.text+0x70): undefined reference to `verror_at_line' m4.o: In function `usage': m4.c:(.text+0xb2): undefined reference to `close_stream' m4.o: In function `main': m4.c:(.text+0x315): undefined reference to `xmalloc' m4.c:(.text+0x66c): undefined reference to `close_stream' m4.c:(.text+0x748): undefined reference to `close_stream' builtin.o: In function `m4_maketemp': builtin.c:(.text+0x1a62): undefined reference to `mkstemp_safer' builtin.o: In function `m4_m4exit': builtin.c:(.text+0x1d61): undefined reference to `close_stream' builtin.o: In function `define_user_macro': builtin.c:(.text+0x2e7e): undefined reference to `xstrdup' builtin.o: In function `builtin_init': builtin.c:(.text+0x3020): undefined reference to `xmalloc' debug.o: In function `debug_set_file': debug.c:(.text+0x7ab): undefined reference to `close_stream' debug.c:(.text+0x88b): undefined reference to `close_stream' debug.o: In function `debug_set_output': debug.c:(.text+0x8ec): undefined reference to `fopen_safer' debug.c:(.text+0x90a): undefined reference to `set_cloexec_flag' debug.o: In function `debug_init': debug.c:(.text+0xa19): undefined reference to `xmalloc' format.o: In function `format': format.c:(.text+0x130): undefined reference to `xasprintf' format.c:(.text+0x36f): undefined reference to `xasprintf' format.c:(.text+0x425): undefined reference to `xasprintf' freeze.o: In function `reload_frozen_state': freeze.c:(.text+0x98): undefined reference to `xmalloc' freeze.c:(.text+0xa7): undefined reference to `xmalloc' freeze.c:(.text+0x4b3): undefined reference to `xmalloc' freeze.c:(.text+0x533): undefined reference to `xmalloc' freeze.o: In function `produce_frozen_state': freeze.c:(.text+0x603): undefined reference to `fopen_safer' freeze.c:(.text+0x845): undefined reference to `close_stream' input.o: In function `set_word_regexp': input.c:(.text+0xc65): undefined reference to `xmalloc' input.o: In function `set_comment': input.c:(.text+0xcb1): undefined reference to `xstrdup' input.c:(.text+0xcd3): undefined reference to `xstrdup' input.o: In function `set_quotes': input.c:(.text+0xd41): undefined reference to `xstrdup' input.c:(.text+0xd63): undefined reference to `xstrdup' input.o: In function `input_init': input.c:(.text+0xdc2): undefined reference to `xmalloc' input.c:(.text+0xdda): undefined reference to `xmalloc' input.c:(.text+0xde6): undefined reference to `xmalloc' input.c:(.text+0xdff): undefined reference to `xmalloc' input.c:(.text+0xe10): undefined reference to `xmalloc' input.c:(.text+0xec5): undefined reference to `xstrdup' input.c:(.text+0xee3): undefined reference to `xstrdup' input.c:(.text+0xf01): undefined reference to `xstrdup' input.c:(.text+0xf1f): undefined reference to `xstrdup' input.o: In function `pop_wrapup': input.c:(.text+0xfc6): undefined reference to `xmalloc' input.c:(.text+0xfd7): undefined reference to `xmalloc' macro.o: In function `expand_token': macro.c:(.text+0x130): undefined reference to `xmalloc' macro.c:(.text+0x14a): undefined reference to `xmalloc' macro.c:(.text+0x336): undefined reference to `xmalloc' macro.o:macro.c:(.text+0x350): more undefined references to `xmalloc' follow output.o: In function `make_diversion': output.c:(.text+0xb5): undefined reference to `xrealloc' output.o: In function `make_room_for': output.c:(.text+0x18b): undefined reference to `tmpfile_safer' output.c:(.text+0x1b0): undefined reference to `set_cloexec_flag' output.c:(.text+0x29f): undefined reference to `xrealloc' output.o: In function `output_init': output.c:(.text+0xc39): undefined reference to `xmalloc' path.o: In function `add_include_directory': path.c:(.text+0x4c): undefined reference to `xmalloc' path.c:(.text+0x67): undefined reference to `xstrdup' path.o: In function `path_search': path.c:(.text+0xea): undefined reference to `fopen_safer' path.c:(.text+0x106): undefined reference to `set_cloexec_flag' path.c:(.text+0x11d): undefined reference to `xstrdup' path.c:(.text+0x19c): undefined reference to `xmalloc' path.c:(.text+0x1f8): undefined reference to `fopen_safer' path.c:(.text+0x253): undefined reference to `set_cloexec_flag' symtab.o: In function `symtab_init': symtab.c:(.text+0x60): undefined reference to `xmalloc' symtab.o: In function `lookup_symbol': symtab.c:(.text+0x225): undefined reference to `xmalloc' symtab.c:(.text+0x23c): undefined reference to `xstrdup' symtab.c:(.text+0x2a4): undefined reference to `xmalloc' symtab.c:(.text+0x2c8): undefined reference to `xstrdup' symtab.c:(.text+0x327): undefined reference to `xmalloc' symtab.c:(.text+0x33e): undefined reference to `xstrdup' stackovf.o: In function `setup_stackovf_trap': stackovf.c:(.text+0xd5): undefined reference to `xmalloc' collect2: ld returned 1 exit status make[2]: *** [m4] Error 1 make[2]: Leaving directory `/var/tmp/portage/m4-1.4.7/work/m4-1.4.7/src'
emerge --info: Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i586) ================================================================= System uname: 2.6.17-gentoo-r8 i586 Pentium MMX Gentoo Base System version 1.12.6 Last Sync: Fri, 01 Dec 2006 15:00:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: [Not Present] dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r4 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-O2 -march=pentium-mmx -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium-mmx -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer nodoc parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 acl berkdb bitmap-fonts cli cracklib crypt cups dlloader dri elibc_glibc fortran gdbm gpm hardened iconv input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ ncurses nptl nptlonly pam pcre perl pic ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts udev unicode userland_GNU vhosts video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xorg zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
most likely your locale ... post `emerge m4 >& log` as an attachment in the future, make sure you note that you're using the EE locale in all your bug reports
Please note the last line in my previous post (emerge --info). To my knowledge no locales are set. This is the output of locale: LANG= LC_CTYPE="POSIX" LC_NUMERIC="POSIX" LC_TIME="POSIX" LC_COLLATE="POSIX" LC_MONETARY="POSIX" LC_MESSAGES="POSIX" LC_PAPER="POSIX" LC_NAME="POSIX" LC_ADDRESS="POSIX" LC_TELEPHONE="POSIX" LC_MEASUREMENT="POSIX" LC_IDENTIFICATION="POSIX" LC_ALL=
This is strange. I tried to recompile a lot of packages. Nothing helped. But after a reboot everything compiled just fine. Anyway previously there was at least one other package also complaining about undefined references (udev when linking the udev binary) and emerging timezone-data-2006n also ended up with some kind of sandbox violation. Now everything emerges just fine.
ok ... well if you can get that error again, please post the config.log at least
Hasn't occured since, and no more m4-1.4.7 in portage either. Closing.