joyrider
Active Member
Hey,
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 :
CODE
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ./src/stdlib/SDL_iconv.c:31:
/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 :
CODE
#ifndef __ASM_STUB_ERRNO_H
#define __ASM_STUB_ERRNO_H
# if defined __x86_64__
# include <asm-x86_64/errno.h>
# elif defined __i386__
# include <asm-i386/errno.h>
# else
# warning This machine appears to be neither x86_64 nor i386.
# endif
#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 ?
thanks
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 :
CODE
In file included from /usr/include/linux/errno.h:4,
from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ./src/stdlib/SDL_iconv.c:31:
/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 :
CODE
#ifndef __ASM_STUB_ERRNO_H
#define __ASM_STUB_ERRNO_H
# if defined __x86_64__
# include <asm-x86_64/errno.h>
# elif defined __i386__
# include <asm-i386/errno.h>
# else
# warning This machine appears to be neither x86_64 nor i386.
# endif
#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 ?
thanks