[Box Backup-dev] Header warning on RedHat ES 4

Martin Ebourne boxbackup-dev@fluffy.co.uk
Sun, 19 Feb 2006 16:27:03 +0000


On Sun, 2006-02-19 at 17:03 +0100, Stefan Norlin wrote:
> /usr/include/asm/byteorder.h:6:2: warning: #warning using private
> kernel header; include <endian.h> instead!
>  
> However, it compiles ok and all tests pass.
>  
> If I try to replace asm/byteorder.h with endian.h I get these errors:
>  
> ../../lib/common/Archive.h: In member function `void
> Archive::Write(int64_t)':
> ../../lib/common/Archive.h:93: error: `__cpu_to_be64' undeclared
> (first use this function)

This is a known issue. It only applies to i386 linux and is arguably a
bug in the linux headers. Exactly the same header works fine on x86_64
and ppc linux.

This has also been covered in the archives. :)

Cheers,

Martin.