some bugs

Gert van Valkenhoef <gertvv-8LkvcxCLB6JmR6Xm/[email protected]>
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
Hello,

I am trying to build a haiku boot floppy from CVS (on a debian unstable
box) so far I haven't been succesful, but I've come across a few errors:

src/kernel/core/port.c(1211):
ssize_t
_user_read_port_etc(port_id port, int32 *userCode, void *userBuffer,

headers/private/kernel/port.h(34):
status_t _user_read_port_etc(port_id port,

Leading GCC to report conflicting types.

Also:

C++ ../../objects/x86.R1/kernel/core/cache/block_cache.o
core/cache/block_cache.cpp: In function `status_t
   write_cached_block(block_cache*, cached_block*, bool)':
core/cache/block_cache.cpp:440: error: default argument given for
parameter 3
   of `status_t write_cached_block(block_cache*, cached_block*, bool)'
core/cache/block_cache.cpp:129: error: after previous specification in `
   status_t write_cached_block(block_cache*, cached_block*, bool)'

Which is ofcourse fixed by changing
src/kernel/core/cache/block_cache.c(439) to not include the default
value for the final parameter (according to the C++ standard it is
actually not correct to supply default values with the implementation of
a function - because it needs to be in the declaration)

And:
Cc ../../objects/x86.R1/kernel/core/arch/x86/arch_dbg_console.o
core/arch/x86/arch_dbg_console.c: In function
`arch_dbg_con_init_settings':
core/arch/x86/arch_dbg_console.c:193: error: `sBochsOutput' undeclared
(first use in this function)
core/arch/x86/arch_dbg_console.c:193: error: (Each undeclared identifier
is reported only once
core/arch/x86/arch_dbg_console.c:193: error: for each function it
appears in.)

Which is fixed by changing
src/kernel/core/arch/x86/arch_dbg_console.c(192) from:
#ifdef BOCHS_DEBUG_HACK
to (as it is in the rest of the file):
#if BOCHS_DEBUG_HACK

Sincerely,

-- 
Gert van Valkenhoef <gertvv-8LkvcxCLB6JmR6Xm/[email protected]>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.