LINUX.ORG.RU

asm/checksum.h - траблы


0

0

система Debian
пишу максимально простенький програмка:
#include <asm/checksum.h>
int main()
{
	return 0;
}

компилю:
gcc file.c

вываливает:
In file included from /usr/include/asm/uaccess.h:8,
                 from /usr/include/asm-i486/checksum.h:6,
                 from /usr/include/asm/checksum.h:8,
                 from test.c:1:
/usr/include/asm-i486/uaccess.h: In function 'verify_area':
/usr/include/asm-i486/uaccess.h:106: error: invalid type argument of '->'
/usr/include/asm-i486/uaccess.h: In function '__copy_to_user_inatomic':
/usr/include/asm-i486/uaccess.h:446: error: 'u8' undeclared (first use in this function)
/usr/include/asm-i486/uaccess.h:446: error: (Each undeclared identifier is reported only once
/usr/include/asm-i486/uaccess.h:446: error: for each function it appears in.)
/usr/include/asm-i486/uaccess.h:446: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:446: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:446: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:446: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:449: error: 'u16' undeclared (first use in this function)
/usr/include/asm-i486/uaccess.h:449: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:449: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:449: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:449: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:452: error: 'u32' undeclared (first use in this function)
/usr/include/asm-i486/uaccess.h:452: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:452: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:452: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:452: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h: In function '__copy_from_user_inatomic':
/usr/include/asm-i486/uaccess.h:491: error: 'u8' undeclared (first use in this function)
/usr/include/asm-i486/uaccess.h:491: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:491: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:491: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:491: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:494: error: 'u16' undeclared (first use in this function)
/usr/include/asm-i486/uaccess.h:494: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:494: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:494: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:494: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:497: error: 'u32' undeclared (first use in this function)
/usr/include/asm-i486/uaccess.h:497: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:497: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:497: error: syntax error before ')' token
/usr/include/asm-i486/uaccess.h:497: error: syntax error before ')' token
In file included from /usr/include/asm/checksum.h:8,
                 from test.c:1:
/usr/include/asm-i486/checksum.h: At top level:
/usr/include/asm-i486/checksum.h:20: error: syntax error before 'unsigned'
/usr/include/asm-i486/checksum.h:30: error: syntax error before 'unsigned'
/usr/include/asm-i486/checksum.h: In function 'csum_and_copy_to_user':
/usr/include/asm-i486/checksum.h:185: error: invalid type argument of '->'

куда податься?! :-/

Re: asm/checksum.h - траблы

в сторону установки правильных kernel-headers, а то выглядит, будто используются хэдеры от текущего ядра, а не от ядра, с которым glibc была собрана

phoenix ★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.