endian.h missing?

Attila Nagy acetyl_salicyl at yahoo.com
Thu Jan 25 07:46:59 PST 2007

Hi all!

It's me again, progressing slowly... :)
I (still :) ) try to compile X. I have no luck with
7.1, as pcidata/scanpci segfaults no matter how I try
to compile.
I managed to compile 7.0 and 7.2RC3 however (from the
tarballs), but _only_ without Mesa. That way it
compiled OK, I could test, and use it - but without
openGL of course.
With Mesa (It's Mesa 6.5 if that counts) I get an
error saying that it can't find endian.h. Sure,
because I do it on Solaris, and with Studio 11, and as
far as I know, endian.h is some kind of
But why does it search for this include? (Why does it
think that my system has this file?)
Or better: how can I circumvent this issue?

Anybody with an idea?


(The last command and the error from the log:

cc -DHAVE_CONFIG_H -I. -I. -I../../include
-I../../include -I../../include -I../../include
-I../../include -I../../include -I../../include
-I../../include -I../../hw/xfree86/os-support
-I../../hw/xfree86/common -I../../hw/xfree86/dri
-I../../mi -I/usr/local/include -I/X72RC3/include
-I/root/ujx/Mesa-6.5/include -DHAVE_DIX_CONFIG_H
-I/X72RC3/include -D_REENTRANT
-I/root/ujx/Mesa-6.5/src/mesa/main -DXFree86Server
-I../../include -I../../include -I../../Xext
-I../../composite -I../../damageext -I../../xfixes
-I../../Xi -I../../mi -I../../miext/shadow
-I../../miext/damage -I../../render -I../../randr
-I../../fb -I/usr/local/include -I/X72RC3/include -c
indirect_dispatch_swap.c  -KPIC -DPIC -o
"indirect_dispatch_swap.c", line 39: cannot find
include file: <sys/endian.h>
"indirect_dispatch_swap.c", line 71: warning: implicit
function declaration: bswap32
"indirect_dispatch_swap.c", line 79: warning: implicit
function declaration: bswap16
"indirect_dispatch_swap.c", line 95: warning: implicit
function declaration: bswap64
cc: acomp failed for indirect_dispatch_swap.c
*** Error code 1
make: Fatal error: Command failed for target
Current working directory
*** Error code 1

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.

More information about the xorg mailing list