Coda File System

Re: Coda on GNU/Linux on PowerPC

From: Jan Harkes <>
Date: Tue, 18 Nov 2003 15:28:33 -0500
On Mon, Nov 17, 2003 at 11:38:27AM -0500, Richard M Kreuter wrote:
> In order to compile Coda on GNU/Linux on PowerPC, in
> lib-src/rwcdb/rwcdb_pack.h, it's necessary to use bswap_32 (from
> byteswap.h in glibc), as there's no bswap32 available.  Otherwise the
> last release builds (albeit with warnings), and the client and various
> tools seem to work on this platform.  I'm not a sufficiently competent
> C programmer to do this, but wanted to report the bug and fix.

Hmm, can't they even standardize on the naming of these things?
Googling, someone else might have it figured out already.

Ahh, it looks like Alan Barrett already did some of the footwork here
for squid.

 * Some systems define bswap_16() and bswap_32() in <byteswap.h>
 * Some systems define bswap16() and bswap32() in <sys/bswap.h>.  
 * Some systems define htobe16()/be16toh() and friends in <sys/endian.h>.

Arghhh, autoconf to the rescue.

Received on 2003-11-18 15:31:34