Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75250 - problems emerging fte editor using linux26-header package and slang support
Summary: problems emerging fte editor using linux26-header package and slang support
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-21 16:01 UTC by Marcin Kurek
Modified: 2006-10-17 15:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
useless wait.h inclusion fix (fte-20050108-r2.patch,401 bytes, patch)
2005-05-10 11:49 UTC, Konstantin Arkhipov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kurek 2004-12-21 16:01:54 UTC
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
Comment 1 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2004-12-23 12:30:16 UTC
I was able to reproduce it, tough this seems to be a bit above of my knowledge to fix it.
Comment 2 Lars Weiler (RETIRED) gentoo-dev 2005-04-02 06:01:23 UTC
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...
Comment 3 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-05-10 11:49:19 UTC
Created attachment 58609 [details, diff]
useless wait.h inclusion fix

please, try attached patch for latest fte ebuild
Comment 4 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-05-10 11:50:28 UTC
patch above works for me at ~x86 and ~amd64
Comment 5 Joe Jezak (RETIRED) gentoo-dev 2005-05-14 13:17:00 UTC
Works on ppc as well.
Comment 6 Joe Jezak (RETIRED) gentoo-dev 2005-06-04 22:16:30 UTC
I've marked the ebuild stable for ppc as it fixes the problem, reassigning to
you voxus.  Thanks!
Comment 7 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-06-23 10:59:54 UTC
stable on x86 and amd64
waiting for sparc now
Comment 8 Konstantin Arkhipov (RETIRED) gentoo-dev 2005-08-03 11:38:42 UTC
ping? 
Comment 9 Gustavo Zacarias (RETIRED) gentoo-dev 2005-08-03 11:41:29 UTC
the newest fte is utterly b0rked for sparc in curses mode - all the colors are
screwed up.
Comment 10 Marcin Kurek 2005-08-09 07:06:20 UTC
Same for PPC
Comment 11 Gustavo Zacarias (RETIRED) gentoo-dev 2006-10-17 15:07:59 UTC
Doing -sparc keywords, it's too broken and has been sitting here long enough.