<snip> ansi.c: In function `PrintStart': ansi.c:1528: `D_PO' undeclared (first use in this function) ansi.c:1528: (Each undeclared identifier is reported only once ansi.c:1528: for each function it appears in.) ansi.c: In function `PrintFlush': ansi.c:1587: `D_PO' undeclared (first use in this function) ansi.c:1589: `D_PF' undeclared (first use in this function) ansi.c: In function `WBell': ansi.c:2781: `D_BL' undeclared (first use in this function) ansi.c:2782: `D_VB' undeclared (first use in this function) ansi.c: In function `WReverseVideo': ansi.c:2810: `D_VB' undeclared (first use in this function) make: *** [ansi.o] Error 1 make: *** Waiting for unfinished jobs.... screen.c: In function `serv_select_fn': screen.c:2745: `D_VB' undeclared (first use in this function) screen.c:2745: (Each undeclared identifier is reported only once screen.c:2745: for each function it appears in.) make: *** [screen.o] Error 1 !!! ERROR: app-misc/screen-3.9.13-r3 failed. !!! Function src_compile, Line -219, Exitcode 2 !!! Failed to compile <snip> system infomation: -------------------- gcc-3.2.1 kernel 2.4.19-gentoo-r10 make.conf ----------- CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}" CHOST='i686-pc-linux-gnu' CFLAGS='-march=pentium4 -O3 -pipe' CXXFLAGS='-march=pentium4 -O3 -pipe' GENTOO_MIRRORS="ftp://mdk.linux.org.tw/pub/gentoo"
*** Bug 12741 has been marked as a duplicate of this bug. ***
me too: I get the same compilation errors. system infomation: -------------------- gcc-3.2.1 glibc-2.3.1-r2 kernel 2.4.19-gentoo-r10 make.conf ----------- CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon -O3 -pipe -fomit-frame-pointer -funroll-loops" and just "-pipe" CXXFLAGS="${CFLAGS}"
Sorry for the spam. I did some more checking, and screen-3.9.11-r3 won't emerge (with the same errors) even though I currently have it installed. The things that have changed include gcc 3.2->3.2.1 and the glibc upgrade, although that's by no means complete.
I believe I've fixed this problem now. Please resync and give it a try. You can reopen this bug if it's still broken for you. Aron
*** Bug 12354 has been marked as a duplicate of this bug. ***
OKAY.. BIG NEWS.. it merges now! j2@freenode found the problem.. it was LC_ALL setting problem.. LC_ALL was "" in my machine.. setting it to "POSIX" fixed the problem.. screen merge just fine. setting to pt_PT (my locale, i'm portuguese) didn't fix, and emerge screen still failed... however.. this semed to be a problem with portage itselft and with the way it handles gcc, make and palls.. since.. LC_ALL="pt_PT" ./configure && make works fine according to j2@freenode. big thanks to j2@freenode here.. since he fixed the problem for me! ;-) also.. I will not close this bug until some gentoo developer confirms if there is some bug with handling locales, and also, screen should build just fine with LC_ALL="pt_PT" under portage. Miguel Filipe (aka m3thos)
It just merged in my system. I just "emerge sync;emerge -u world" and app-misc/screen-3.9.13-r3 merged. BTW, my LC_ALL value is "zh_TW.Big5" I think this bug might be resolved. Thanks men! You're doing a good job!! :-)
> LC_ALL="pt_PT" ./configure && make works fine according to j2@freenode Miguel and j2, this line doesn't demonstrate what you might think. The environment setting only applies to the configure command, not to the make. The problematic file "term.h" is created during the make process. Hopefully the header file fixup in the ebuild solves the problem equally, though. Aron
I've just fixed this problem again. Turns out that the awk solution caused problems at run-time. Hopefully this new solution (which really comes from j2) will work better. Aron