It seems there is a problem emerging recent version of fte editor using linux26-headers (Problem inside linux26-headers reported on diffrent bugreport) It fails also when the slang support is enabled. Reproducible: Always Steps to Reproduce: 1. USE="+slang" emerge fte 2. 3. Actual Results: First time it fails on con_linux.cpp file because this missing linux26-headers declarations (Take a look at 75249 report) with following errormessage: g++ -fno-rtti -fno-exceptions -DUSE_XMB -DUSE_LOCALE - DDEFAULT_INTERNAL_CONFIG -Wall -Wpointer-arith -Wconversion -Wwrite-strings - Wmissing-prototypes -Wmissing-declarations -Winline -DUNIX -DLINUX -I/usr/ include/slang -c con_linux.cpp cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ ObjC but not for C++ In file included from /usr/include/linux/wait.h:12, from /usr/include/linux/keyboard.h:4, from con_linux.cpp:51: /usr/include/linux/list.h: In function `void __list_add_rcu(list_head*, list_head*, list_head*)': /usr/include/linux/list.h:97: error: `__memory_barrier' undeclared (first use this function) /usr/include/linux/list.h:97: error: (Each undeclared identifier is reported only once for each function it appears in.) /usr/include/linux/list.h: In function `void hlist_add_head_rcu(hlist_node*, hlist_head*)': /usr/include/linux/list.h:597: error: `__memory_barrier' undeclared (first use this function) In file included from /usr/include/linux/thread_info.h:20, from /usr/include/linux/spinlock.h:12, from /usr/include/linux/wait.h:15, from /usr/include/linux/keyboard.h:4, from con_linux.cpp:51: /usr/include/linux/bitops.h: In function `int get_bitmask_order(unsigned int)': /usr/include/linux/bitops.h:81: error: `fls' undeclared (first use this function) In file included from /usr/include/linux/keyboard.h:4, from con_linux.cpp:51: /usr/include/linux/wait.h: In function `void init_waitqueue_head(wait_queue_head_t*)': /usr/include/linux/wait.h:58: error: expected primary-expression before ')' token /usr/include/linux/wait.h:58: error: expected `;' before '{' token con_linux.cpp: In function `char ConGetDrawChar(int)': con_linux.cpp:1200: warning: array subscript has type `char' make[2]: *** [con_linux.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/fte-20020324-r2/work/fte-20020324/ src' make[1]: *** [unix] Error 2 make[1]: Leaving directory `/var/tmp/portage/fte-20020324-r2/work/fte-20020324/ src' make: *** [all] Error 2 If +slang is set it fails on con_slang.cpp file with following error message g++ -fno-rtti -fno-exceptions -DUSE_XMB -DUSE_LOCALE - DDEFAULT_INTERNAL_CONFIG -Wall -Wpointer-arith -Wconversion -Wwrite-strings - Wmissing-prototypes -Wmissing-declarations -Winline -DUNIX -DLINUX -I/usr/ include/slang -c con_slang.cpp cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++ cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ ObjC but not for C++ con_slang.cpp: In function `int ConInit(int, int)': con_slang.cpp:249: error: cannot convert `short unsigned int*' to `SLsmg_Char_Type*' for argument `1' to `unsigned int SLsmg_read_raw(SLsmg_Char_Type*, unsigned int)' con_slang.cpp: In function `int ConPutBoxRaw(int, int, int, int, short unsigned int*)': con_slang.cpp:371: error: cannot convert `short unsigned int*' to `SLsmg_Char_Type*' for argument `1' to `unsigned int SLsmg_write_raw(SLsmg_Char_Type*, unsigned int)' con_slang.cpp: In function `int ConGetBox(int, int, int, int, TCell*)': con_slang.cpp:389: error: cannot convert `TCell*' to `SLsmg_Char_Type*' for argument `1' to `unsigned int SLsmg_read_raw(SLsmg_Char_Type*, unsigned int)' con_slang.cpp: In function `int ConGetBoxRaw(int, int, int, int, short unsigned int*)': con_slang.cpp:412: error: cannot convert `short unsigned int*' to `SLsmg_Char_Type*' for argument `1' to `unsigned int SLsmg_read_raw(SLsmg_Char_Type*, unsigned int)' make[2]: *** [con_slang.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/fte-20020324-r2/work/fte-20020324/ src' make[1]: *** [unix] Error 2 make[1]: Leaving directory `/var/tmp/portage/fte-20020324-r2/work/fte-20020324/ src' make: *** [all] Error 2 sys-libs/slang 1.4.9-r1 sys-kernel/linux26-headers 2.6.8.1-r1
I was able to reproduce it, tough this seems to be a bit above of my knowledge to fix it.
Same for version app-editors/fte-20050108-r2 Compiling to 'defcfg.cnf' Done. perl mkdefcfg.pl <defcfg.cnf >defcfg.h .............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................In file included from /usr/include/linux/keyboard.h:4, from con_linux.cpp:55: /usr/include/linux/wait.h: In function `void init_waitqueue_head(wait_queue_head_t*)': /usr/include/linux/wait.h:58: error: expected primary-expression before ')' token /usr/include/linux/wait.h:58: error: expected `;' before '{' token con_linux.cpp: In function `char ConGetDrawChar(int)': con_linux.cpp:1204: warning: array subscript has type `char' make[2]: *** [con_linux.o] Error 1 make[2]: *** Waiting for unfinished jobs.... .................................................................................................................................... make[2]: Leaving directory `/var/tmp/portage/fte-20050108-r2/work/fte/src' make[1]: *** [unix] Error 2 make[1]: Leaving directory `/var/tmp/portage/fte-20050108-r2/work/fte/src' make: *** [all] Error 2 This package has no maintainer. Seems it will just stick here in the ppc-bugzilla-pipe until somebody picks it up...
Created attachment 58609 [details, diff] useless wait.h inclusion fix please, try attached patch for latest fte ebuild
patch above works for me at ~x86 and ~amd64
Works on ppc as well.
I've marked the ebuild stable for ppc as it fixes the problem, reassigning to you voxus. Thanks!
stable on x86 and amd64 waiting for sparc now
ping?
the newest fte is utterly b0rked for sparc in curses mode - all the colors are screwed up.
Same for PPC
Doing -sparc keywords, it's too broken and has been sitting here long enough.