[openbeos] Problem while building haiku on linux (solved with a dirty hack)

  • From: "Stefano D'Angelo" <zanga.mail@xxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Fri, 4 May 2007 20:31:23 +0200

Hi all,
I finally installed a 32-bit linux distro (gNewSense 1.1) and built
Haiku from SVN on it.
While doing that, I got a problem with src/tools/fs_shell/vfs.cpp.
Here's some jam output:

C++ generated/objects/linux/x86/release/tools/fs_shell/vfs.o
src/tools/fs_shell/vfs.cpp: In function 'fssh_off_t
FSShell::file_seek(FSShell::file_descriptor*, fssh_off_t, int)':
src/tools/fs_shell/vfs.cpp:2792: error: 'LONGLONG_MAX' was not
declared in this scope
src/tools/fs_shell/vfs.cpp: In function 'fssh_off_t
FSShell::attr_seek(FSShell::file_descriptor*, fssh_off_t, int)':
src/tools/fs_shell/vfs.cpp:3720: error: 'LONGLONG_MAX' was not
declared in this scope

cc -c "src/tools/fs_shell/vfs.cpp" -O -Wall -Wno-ctor-dtor-privacy
-Woverloaded-virtual -Wpointer-arith -Wcast-align -Wsign-compare
-DHAIKU_HOST_PLATFORM_LINUX -iquote src/tools/fs_shell -iquote
generated/objects/common/tools/fs_shell -iquote
generated/objects/linux/x86/common/tools/fs_shell -iquote
generated/objects/haiku/x86/common/tools/fs_shell -I headers/build -I
headers/build/os -I headers/build/os/kernel -I
headers/build/os/storage -I headers/build/os/support -I
headers/private/fs_shell -I headers/private/shared -I
headers/build/host/linux -o
"generated/objects/linux/x86/release/tools/fs_shell/vfs.o" ;

...failed C++ generated/objects/linux/x86/release/tools/fs_shell/vfs.o ...
...skipped <build>fs_shell.a for lack of <build>fs_shell.a(vfs.o)...
...skipped <build>bfs_shell for lack of <build>fs_shell.a...
...skipped <HaikuImage>haiku.image-init-vars for lack of <build>bfs_shell...

I was too tired to actually track down this issue seriously, so I just
substitued LLONG_MAX with LONG_LONG_MAX (with the extra underscore)
and that worked for me.
The only thing I noticed is that it seems like headers/posix/limits.h
didn't get included, but my /usr/include/limits.h (from the internal
gcc limits.h) did instead. I tell you this since I don't know if it's
supposed to work this way.

Anyway I'd like to implement some interpolation algorithms (linear,
not-a-knot cubic splines, whittaker-shannon sinc convolution) for the
haiku audio mixer this weekend. Do you accept patches?


Other related posts: