i'm trying to compile the open2x libraries using my ubuntu gusty linux. but i run into a problem almost immediatly this is the error i'm getting :
In file included from /usr/include/linux/errno.h:4,
/usr/include/asm/errno.h:9:4: warning: #warning This machine appears to be neither x86_64 nor i386.
./src/stdlib/SDL_iconv.c: In function 'SDL_iconv':
./src/stdlib/SDL_iconv.c:40: error: 'E2BIG' undeclared (first use in this function)
./src/stdlib/SDL_iconv.c:40: error: (Each undeclared identifier is reported only once
./src/stdlib/SDL_iconv.c:40: error: for each function it appears in.)
./src/stdlib/SDL_iconv.c:42: error: 'EILSEQ' undeclared (first use in this function)
./src/stdlib/SDL_iconv.c:44: error: 'EINVAL' undeclared (first use in this function)
the problem lies with /usr/include/asm/errno.h which would normally include files where E2BIG EILSEQ etc are defined.
/usr/include/asm/errno.h looks like this :
# if defined __x86_64__
# include <asm-x86_64/errno.h>
# elif defined __i386__
# include <asm-i386/errno.h>
# warning This machine appears to be neither x86_64 nor i386.
#endif /* __ASM_STUB_ERRNO_H */
so it doesn't detect i'm running i386 or sumthing ?
could the problem be this :
uname -m returns i686
how would i solve this ?