Summary: | gdk error, compiled for big endian, machine is little endian | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | slavko glamocanin <slavko> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED NEEDINFO | ||
Severity: | major | CC: | gnome |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
xorg 7.1 - modified file
the Xarch diff file |
Description
slavko glamocanin
2006-10-30 04:03:09 UTC
Created attachment 100784 [details]
xorg 7.1 - modified file
What changes did you make to Xarch.h? A diff would be a bit more useful. (In reply to comment #2) > What changes did you make to Xarch.h? A diff would be a bit more useful. > i removed some architecture stuff not related to mine (which is amd64). i think that this problem is handled with poor style and somehow some other arch gets precedence over amd64 for endiannes. its really hard to see anything in this coding /ifdef/ style, but ok, i guess its the easiest to handle it this way. i will also add the diff you requested. (In reply to comment #2) > What changes did you make to Xarch.h? A diff would be a bit more useful. > i removed some architecture stuff not related to mine (which is amd64). i think that this problem is handled with poor style and somehow some other arch gets precedence over amd64 for endiannes. its really hard to see anything in this coding /ifdef/ style, but ok, i guess its the easiest to handle it this way. i will also add the diff you requested. im not sure but the problem might be here: > #if defined(__QNXNTO__) > #if defined(i386) || defined(__i386__) || defined(__x86__) > #define BYTE_ORDER LITTLE_ENDIAN > #else > #define BYTE_ORDER BIG_ENDIAN > #endif > #endif as i see it, the 386/x86 checks are for the x86 arch (x86_64 is obviously missing), but i dont think QNXNTO is defined. Created attachment 101287 [details, diff]
the Xarch diff file
this works if you have and x86 linux machine but surely breaks some archs. well it works for me:)
I have an AMD64 install and I don't see this issue. Perhaps there was something wacky with your configuration when you compiled gtk+ for the first time? Can you use the default Xarch.h and see if you can reproduce this? Please reopen when you respond to the above comment. |