./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc -O3 -march=athlon-xp -funroll-loops -pipe ) works... yes checking whether the C compiler (gcc -O3 -march=athlon-xp -funroll-loops -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /bin/install -c checking whether ln -s works... yes updating cache ./config.cache creating ./config.status creating Makefile creating config.h i686-pc-linux-gnu-gcc -E -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -M test.c whiptail.c dialogboxes.c newt.c button.c form.c checkbox.c entry.c label.c listbox.c scrollbar.c textbox.c scale.c grid.c windows.c buttonbar.c checkboxtree.c > .depend i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o test.o test.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -DVERSION=\"0.50.35\" -c -o newt.o newt.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o button.o button.c newt.c: In function `newtOpenWindow': newt.c:415: warning: passing arg 1 of `SLsmg_read_raw' from incompatible pointer type newt.c: In function `newtPopWindow': newt.c:486: warning: passing arg 1 of `SLsmg_write_raw' from incompatible pointer type i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o form.o form.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o checkbox.o checkbox.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o entry.o entry.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o label.o label.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o listbox.o listbox.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o scrollbar.o scrollbar.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o textbox.o textbox.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o scale.o scale.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o grid.o grid.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o windows.o windows.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o buttonbar.o buttonbar.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o checkboxtree.o checkboxtree.c i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o whiptail.o whiptail.c checkboxtree.c: In function `newtCheckboxTreeSetCurrent': checkboxtree.c:757: warning: unused variable `itemsAfter' checkboxtree.c: In function `newtCheckboxTreeAddArray': checkboxtree.c:170: warning: 'item' might be used uninitialized in this function i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o dialogboxes.o dialogboxes.c dialogboxes.c: In function `inputBox': dialogboxes.c:137: warning: assignment discards qualifiers from pointer target type dialogboxes.c: In function `listBox': dialogboxes.c:237: warning: assignment discards qualifiers from pointer target type dialogboxes.c: In function `checkList': dialogboxes.c:342: warning: assignment discards qualifiers from pointer target type dialogboxes.c:357: warning: assignment discards qualifiers from pointer target type checkboxtree.c: In function `ctDraw': checkboxtree.c:443: warning: 'currRow' might be used uninitialized in this function mkdir -p shared i686-pc-linux-gnu-gcc -fPIC -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -DVERSION=\"0.50.35\" -c -o shared/newt.o newt.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/button.o button.c newt.c: In function `newtOpenWindow': newt.c:415: warning: passing arg 1 of `SLsmg_read_raw' from incompatible pointer type newt.c: In function `newtPopWindow': newt.c:486: warning: passing arg 1 of `SLsmg_write_raw' from incompatible pointer type i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/form.o form.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/checkbox.o checkbox.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/entry.o entry.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/label.o label.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/listbox.o listbox.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/scrollbar.o scrollbar.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/textbox.o textbox.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/scale.o scale.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/grid.o grid.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/windows.o windows.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/buttonbar.o buttonbar.c i686-pc-linux-gnu-gcc -fPIC -c -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -o shared/checkboxtree.o checkboxtree.c checkboxtree.c: In function `newtCheckboxTreeSetCurrent': checkboxtree.c:757: warning: unused variable `itemsAfter' i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o testgrid.o testgrid.c checkboxtree.c: In function `newtCheckboxTreeAddArray': checkboxtree.c:170: warning: 'item' might be used uninitialized in this function i686-pc-linux-gnu-gcc -O3 -march=athlon-xp -funroll-loops -pipe -Wall -I/usr/include/slang -c -o testtree.o testtree.c testtree.c: In function `main': testtree.c:111: warning: assignment from incompatible pointer type testtree.c:121: warning: assignment from incompatible pointer type checkboxtree.c: In function `ctDraw': checkboxtree.c:443: warning: 'currRow' might be used uninitialized in this function ar rv libnewt.a newt.o ar: creating libnewt.a a - newt.o ar rv libnewt.a button.o a - button.o ar rv libnewt.a form.o a - form.o ar rv libnewt.a checkbox.o a - checkbox.o ar rv libnewt.a entry.o a - entry.o ar rv libnewt.a label.o a - label.o ar rv libnewt.a listbox.o a - listbox.o ar rv libnewt.a scrollbar.o a - scrollbar.o ar rv libnewt.a textbox.o a - textbox.o ar rv libnewt.a scale.o a - scale.o ar rv libnewt.a grid.o a - grid.o ar rv libnewt.a windows.o ar rv libnewt.a buttonbar.o a - buttonbar.o ar rv libnewt.a checkboxtree.o a - windows.o i686-pc-linux-gnu-gcc -shared -o libnewt.so.0.50.35 -Wl,-soname,libnewt.so.0.50 shared/newt.o shared/button.o shared/form.o shared/checkbox.o shared/entry.o shared/label.o shared/listbox.o shared/scrollbar.o shared/textbox.o shared/scale.o shared/grid.o shared/windows.o shared/buttonbar.o shared/checkboxtree.o -lslang -lm -lc a - checkboxtree.o i686-pc-linux-gnu-gcc -g -o test test.o libnewt.a -lslang -lm -static i686-pc-linux-gnu-gcc -g -o testgrid testgrid.o libnewt.a -lslang -lm libnewt.a(windows.o)(.text+0x14d): In function `newtvwindow': : undefined reference to `newtButtonBar' libnewt.a(windows.o)(.text+0x359): In function `newtvwindow': : undefined reference to `newtButtonBar' libnewt.a(windows.o)(.text+0x3b2): In function `newtvwindow': : undefined reference to `newtButtonBar' collect2: ld returned 1 exit status make: *** [testgrid] Error 1 make: *** Waiting for unfinished jobs.... libnewt.a(windows.o)(.text+0x14d): In function `newtvwindow': : undefined reference to `newtButtonBar' libnewt.a(windows.o)(.text+0x359): In function `newtvwindow': : undefined reference to `newtButtonBar' libnewt.a(windows.o)(.text+0x3b2): In function `newtvwindow': : undefined reference to `newtButtonBar' collect2: ld returned 1 exit status make: *** [test] Error 1 !!! ERROR: dev-libs/newt-0.50.35-r4 failed. !!! Function src_compile, Line 38, Exitcode 2 !!! make failure !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge newt 2. 3. Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9 i686) ============================================================== === System uname: 2.6.9 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.6.7 Python: dev-lang/python-2.1.3-r1,dev-lang/python-2.3.4 [2.3.4 (#1, Nov 29 2004, 11:42: 00)] dev-lang/python: 2.1.3-r1, 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r1 virtual/os-headers: 2.4.22, 2.4.19-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/ 3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /usr/share/texmf/ dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/ texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://mirrors.tds.net/gentoo http://adelie. polymtl.ca/ http://gentoo.netnitco.net" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="X aac aalib acpi acpi4linux adns aim alsa apache2 apm arts async avantgo avi berkdb bitmap- fonts bonobo cdr cgi chroot client crypt cups curldba divx4linux dnd dv dvd emacs encode esd exif f77 fam flac foomaticdb fortran freetype gd gdbm gif gimp gimpprint gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml icq idea imagemagick imap imlib ipv6 jabber java javascript jikes jp2 jpeg junit kde ldap libg++ libwww mad maildir mbox md5sum mikmodmldonkeypango mozdomi mozp3p mpeg mpeg4 msn mysql nas ncurses nls nntp nvidia odbc oggvorbis ooo-kde opengl operanom2 opie oscar oss pam pcre pda pdflib perl php png ppds prelude python qt quicktime readline samba sasl scanner sdl session silc slang speedo spell ssl stroke svga tcltk tcpd tetex tidy tiff tokenizer transcode truetype type1 unicode usb v4l v4l2 vim-with-x wxwindows x86 xine xml xml2 xmlrpc xmms xprint xv xvid yahoo zlib linguas_en linguas_ru"
looking at your output, does it work if you do MAKEOPTS=j1 ?
MAKEOPTS=-j1 emerge newt fixes the problem for me.
MAKEOPTS=-j1 seems to do it. :)