Запомняне

» Здравейте
[ Вход :: Регистриране ]
 » Начало » Li Форуми » Help & Support » Kernels & Drivers » кернел 2.6.22
Тема: кернел 2.6.22, проблем
Мнение #1 Skip to the next post in this topic.
Написано на: Юли 22 2007, 17:46
kalin

Avatar




Група: Li fans
Мнения: 29
Регистриран: Април 2006

Оценка: няма

Offline
изтеглих сорса на ядро 2.6.22
разархивирах го ,но вижте какво ми дава make menuconfig:
Код: 
/usr/local/src/linux-2.6.22# make menuconfig
 HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:107:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:108:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:109:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:110:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:111:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:112:20: string.h: No such file or directory
scripts/basic/fixdep.c:113:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:114:19: stdio.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
                from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
                from scripts/basic/fixdep.c:115:
/usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122:75: limits.h: No such file or directory
scripts/basic/fixdep.c:116:19: ctype.h: No such file or directory
scripts/basic/fixdep.c:117:23: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function `usage':
scripts/basic/fixdep.c:131: warning: implicit declaration of function `fprintf'
scripts/basic/fixdep.c:131: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:131: error: for each function it appears in.)
scripts/basic/fixdep.c:132: warning: implicit declaration of function `exit'
scripts/basic/fixdep.c: In function `print_cmdline':
scripts/basic/fixdep.c:140: warning: implicit declaration of function `printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:143: error: `NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:156: warning: implicit declaration of function `realloc'
scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:157: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:158: warning: implicit declaration of function `perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:174: warning: implicit declaration of function `memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:187: warning: implicit declaration of function `memcpy'
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:206: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:220: warning: implicit declaration of function `tolower'
scripts/basic/fixdep.c:206: warning: unused variable `s'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:225: error: syntax error before "size_t"
scripts/basic/fixdep.c:226: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:227: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:227: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c:233: warning: implicit declaration of function `ntohl'
scripts/basic/fixdep.c:244: warning: implicit declaration of function `isalnum'
scripts/basic/fixdep.c: In function `strrcmp':
scripts/basic/fixdep.c:261: warning: implicit declaration of function `strlen'
scripts/basic/fixdep.c: In function `do_config_file':
scripts/basic/fixdep.c:272: error: storage size of `st' isn't known
scripts/basic/fixdep.c:276: warning: implicit declaration of function `open'
scripts/basic/fixdep.c:276: error: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:278: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:282: warning: implicit declaration of function `fstat'
scripts/basic/fixdep.c:284: warning: implicit declaration of function `close'
scripts/basic/fixdep.c:287: warning: implicit declaration of function `mmap'
scripts/basic/fixdep.c:287: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:287: error: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:287: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:287: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:296: warning: implicit declaration of function `munmap'
scripts/basic/fixdep.c:272: warning: unused variable `st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:301: error: syntax error before "size_t"
scripts/basic/fixdep.c:302: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:303: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:304: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c:306: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:308: warning: implicit declaration of function `strchr'
scripts/basic/fixdep.c:310: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:306: warning: unused variable `s'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:343: error: storage size of `st' isn't known
scripts/basic/fixdep.c:347: error: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:349: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:359: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:359: error: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:359: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:359: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:343: warning: unused variable `st'
scripts/basic/fixdep.c: In function `traps':
scripts/basic/fixdep.c:378: error: `stderr' undeclared (first use in this function)
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

някой има ли някакви идеи къде може да е проблема
Контакти:  kalin
WEB  
Мнение #2 Skip to the next post in this topic.
Skip to the previous post in this topic. Написано на: Юли 22 2007, 18:53
mcwolf

No avatar chosen




Група: Li gurus
Мнения: 1489
Регистриран: Април 2005

Оценка: 5

Offline
Цитат:

scripts/basic/fixdep.c:107:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:108:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:109:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:110:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:111:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:112:20: string.h: No such file or directory
scripts/basic/fixdep.c:113:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:114:19: stdio.h: No such file or directory


това е списък с липсващи заглавни файлове - по точно стандартните заглавни файлове на библиотеките на С
трябва да инсталираш dev файловете на libc

в дистрибуциите базирани на дебиан това е libc6-dev - но дори и да инсталираш този пакет още ще ти липсват основни неща за извършване на компилация - например компилатор :)

пак за дебиан базираните дистрибуции е създаден мета пакет който ще инсталира всички основни компоненти необходими за компилиране на програма - името му е build-essential
Контакти:  mcwolf

  • AOL  AOL:
  • ICQ  ICQ:
  • MSN  MSN:
  • YIM  Yahoo IM:
WEB  
Мнение #3
Skip to the previous post in this topic. Написано на: Юли 22 2007, 21:15
kalin

Avatar




Група: Li fans
Мнения: 29
Регистриран: Април 2006

Оценка: няма

Offline
освен libc6-dev, качих и libncurses5-dev и всичко е ок. благодаря
Контакти:  kalin
WEB  
Общо 2 отговор(а) от Юли 22 2007, 17:46 до сега
 » Начало » Li Форуми » Help & Support » Kernels & Drivers » кернел 2.6.22

© 2014 Linux Index Project
Powered by iF 1.0.0 © 2006 ikonForums