Bug 10920 - broken linux/cdrom.h and/or underlying headers combination
Summary: broken linux/cdrom.h and/or underlying headers combination
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: glibc-kernheaders (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-24 18:18 MSK by Alexey Morozov
Modified: 2007-11-22 12:57 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Morozov 2007-02-24 18:18:02 MSK
При выполнении стандартного теста AC_CHECK_HEADERS(linux/cdrom.h) происходит 
ошибка, и в config.log обнаруживаются следующие строки:

In file included from /usr/include/asm/byteorder.h:58,
                 from /usr/include/linux/cdrom.h:14,
                 from conftest.c:97:
/usr/include/linux/byteorder/little_endian.h:43: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_le64p'
/usr/include/linux/byteorder/little_endian.h:47: error: expected ';', ',' 
or ')' before '*' token
/usr/include/linux/byteorder/little_endian.h:67: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '__cpu_to_be64p'
/usr/include/linux/byteorder/little_endian.h:71: error: expected ';', ',' 
or ')' before '*' token
Comment 1 Alexey Morozov 2007-02-25 03:19:27 MSK
Замечу, что указанная проблема наблюдается в glibc-kernheaders-2.6.17-alt5. В 
то же время, в находящейся в Сизифе linux-libc-headers [в этом месте] - все в 
порядке.
Comment 2 Dmitry V. Levin 2007-04-21 04:19:23 MSD
На i586 из 698 файлов linux/*.h 353 не проходят простую проверку:

$ cd /usr/include; for f in linux/*.h; do
    printf '#include <%s>\n' "$f" |
        gcc -xc -c -o/dev/null - 2>/dev/null || echo "$f"
done |wc -l
353

Однако linux/cdrom.h эту проверку проходит.
Comment 3 Slava Semushin 2007-09-28 13:45:16 MSD
(In reply to comment #2)
> На i586 из 698 файлов linux/*.h 353 не проходят простую проверку:
[...]

http://lists.altlinux.org/pipermail/devel/2007-August/062283.html

Хотелось бы узнать, приведённая по ссылке ошибка относится к этому багу или же
имеет другие корни и нужно вешать отдельный баг?
Comment 4 Kirill A. Shutemov 2007-11-22 12:57:53 MSK
В glibc-kernheaders-2.6.18 пофикшено.