make 的錯誤訊息 ~ 請大家幫忙

歡迎提問 debian desktop 相關問題,何謂 desktop ? 舉凡您日常生活會用到的部份,如上網 ( www 、 bbs ..) 、程式設計、繪圖...等等。 通常以 X Window 環境底下問題為主。

make 的錯誤訊息 ~ 請大家幫忙

文章joce » 週六 9月 11, 2004 8:07 pm

請問大家我在kernel source的目錄下無法編譯核心,
當我下make menuconfig (config/xconfig)出現以下的信息,
想請問大家這是什麼問題?
是我少了某些套件?
還是我的系統有問題?
請大家幫幫忙,謝謝!!

debian:/usr/src/kernel-source-2.6.7# make menuconfig
HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:97:23: sys/types.h: ?????????
scripts/basic/fixdep.c:98:22: sys/stat.h: ?????????
scripts/basic/fixdep.c:99:22: sys/mman.h: ?????????
scripts/basic/fixdep.c:100:20: unistd.h: ?????????
scripts/basic/fixdep.c:101:19: fcntl.h: ?????????
scripts/basic/fixdep.c:102:20: string.h: ?????????
scripts/basic/fixdep.c:103:20: stdlib.h: ?????????
scripts/basic/fixdep.c:104:19: stdio.h: ?????????
In file included from /usr/lib/gcc-lib/i486-linux/3.3.4/include/syslimits.h:7,
from /usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:11,
from scripts/basic/fixdep.c:105:
/usr/lib/gcc-lib/i486-linux/3.3.4/include/limits.h:122:75: limits.h: ?????????
scripts/basic/fixdep.c:106:19: ctype.h: ?????????
scripts/basic/fixdep.c:107:24: netinet/in.h: ?????????
scripts/basic/fixdep.c: In function `usage':
scripts/basic/fixdep.c:121: warning: implicit declaration of function `fprintf'
scripts/basic/fixdep.c:121: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:121: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:121: error: for each function it appears in.)
scripts/basic/fixdep.c:122: warning: implicit declaration of function `exit'
scripts/basic/fixdep.c: In function `print_cmdline':
scripts/basic/fixdep.c:127: warning: implicit declaration of function `printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:130: error: `NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:143: warning: implicit declaration of function `realloc'
scripts/basic/fixdep.c:143: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:144: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:145: warning: implicit declaration of function `perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:161: warning: implicit declaration of function `memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:174: warning: implicit declaration of function `memcpy'
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:207: warning: implicit declaration of function `tolower'
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:212: error: parse error before "size_t"
scripts/basic/fixdep.c:213: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:214: error: `map' undeclared (first use in this function)scripts/basic/fixdep.c:214: error: `len' undeclared (first use in this function)scripts/basic/fixdep.c:220: warning: implicit declaration of function `ntohl'
scripts/basic/fixdep.c:231: warning: implicit declaration of function `isalnum'
scripts/basic/fixdep.c: In function `strrcmp':
scripts/basic/fixdep.c:244: warning: implicit declaration of function `strlen'
scripts/basic/fixdep.c: In function `do_config_file':
scripts/basic/fixdep.c:255: error: storage size of `st' isn't known
scripts/basic/fixdep.c:259: warning: implicit declaration of function `open'
scripts/basic/fixdep.c:259: error: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:261: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:265: warning: implicit declaration of function `fstat'
scripts/basic/fixdep.c:267: warning: implicit declaration of function `close'
scripts/basic/fixdep.c:270: warning: implicit declaration of function `mmap'
scripts/basic/fixdep.c:270: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:270: error: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:270: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:270: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:279: warning: implicit declaration of function `munmap'
scripts/basic/fixdep.c:255: warning: unused variable `st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:284: error: parse error before "size_t"
scripts/basic/fixdep.c:285: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:286: error: `map' undeclared (first use in this function)scripts/basic/fixdep.c:287: error: `len' undeclared (first use in this function)scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:291: warning: implicit declaration of function `strchr'
scripts/basic/fixdep.c:293: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:325: error: storage size of `st' isn't known
scripts/basic/fixdep.c:329: error: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:331: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:341: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:341: error: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:341: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:341: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:325: warning: unused variable `st'
scripts/basic/fixdep.c: In function `traps':
scripts/basic/fixdep.c:360: error: `stderr' undeclared (first use in this function)
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
頭像
joce
可愛的小學生
可愛的小學生
 
文章: 98
註冊時間: 週二 3月 11, 2003 5:11 am

re:make 的錯誤訊息 ~ 請大家幫忙

文章joce » 週日 9月 12, 2004 5:47 pm

會不會是我提供的資訊不足?

我個人是以為應該是少裝了某些東西吧?........純屬個人臆測 :ooops:
因為系統是剛灌好的sarge系統,
所以系統應該算是乾淨的,
但怕套件不足!!

我是先抓kernel source下來,
#apt-get install kernel-source-2.6.7-1-686
然後解壓縮,進入資料夾下,
#make menuconfig
出現錯誤訊息說沒有make指令,
於是又抓了make,
#apt-get install make
再做一次,
#make menuconfig
又出現錯誤訊息說沒有gcc之類的,
再抓一次gcc,
#apt-get install gcc
然後再做一次,
#make menuconfig
於是就出現了第一篇所述之錯誤訊息了!!
所以小弟以為應該是少了什麼套件吧?
(我也從http://kernel.org/抓source下來,但結果還是一樣)
請大家幫幫忙!
如果訊息不夠,也請大家提出,
小弟盡力補足相關資訊,
謝謝!!
頭像
joce
可愛的小學生
可愛的小學生
 
文章: 98
註冊時間: 週二 3月 11, 2003 5:11 am

re:make 的錯誤訊息 ~ 請大家幫忙

文章d2207197 » 週日 9月 12, 2004 5:51 pm

大概是沒裝 libc6-dev 吧!
頭像
d2207197
鑽研的研究生
鑽研的研究生
 
文章: 1763
註冊時間: 週二 5月 27, 2003 9:57 pm
來自: 火星

re:make 的錯誤訊息 ~ 請大家幫忙

文章cyt » 週日 9月 12, 2004 7:24 pm

Besides, 要使用 make menuconfig 的話, 應該是要裝 libncurses5-dev 的.
cyt
懵懂的國中生
懵懂的國中生
 
文章: 137
註冊時間: 週一 5月 31, 2004 2:20 pm

re:make 的錯誤訊息 ~ 請大家幫忙

文章joce » 週日 9月 12, 2004 8:04 pm

d2207197 寫:大概是沒裝 libc6-dev 吧!


ok啦!!
謝謝!!

不過安裝libc6-dev時也隨著加裝了linux-kernel-headers

所以不太清楚是少了libc6-dev或linux-kernel-headers?

還是兩個都是必須套件?

還是再次的感謝! :finger1:
頭像
joce
可愛的小學生
可愛的小學生
 
文章: 98
註冊時間: 週二 3月 11, 2003 5:11 am

re:make 的錯誤訊息 ~ 請大家幫忙

文章d2207197 » 週日 9月 12, 2004 8:50 pm

其實我是看到這幾行
雖然寫 ?????,我想大概是沒有這些檔案吧
然後用 apt-file 尋找
$ apt-file search sys/types.h
看起來似乎是缺了 libc6-dev
代碼: 選擇全部
scripts/basic/fixdep.c:97:23: sys/types.h: ?????????
scripts/basic/fixdep.c:98:22: sys/stat.h: ?????????
scripts/basic/fixdep.c:99:22: sys/mman.h: ?????????
scripts/basic/fixdep.c:100:20: unistd.h: ?????????
scripts/basic/fixdep.c:101:19: fcntl.h: ?????????
scripts/basic/fixdep.c:102:20: string.h: ?????????
scripts/basic/fixdep.c:103:20: stdlib.h: ?????????
scripts/basic/fixdep.c:104:19: stdio.h: ?????????
頭像
d2207197
鑽研的研究生
鑽研的研究生
 
文章: 1763
註冊時間: 週二 5月 27, 2003 9:57 pm
來自: 火星

re:make 的錯誤訊息 ~ 請大家幫忙

文章phantom » 週日 9月 12, 2004 9:46 pm

參考一下:

Software Package
Minimum Version
Command to Show Version

binutils
2.12
ld -v

e2fsprogs
1.29
tune2fs

gcc (GNU C Compiler)
2.95.3
gcc --version

make (GNU make)
3.78
make --version

module-init-tools
0.9.10
depmod -V

procps
3.1.13
ps --version

util-linux
2.10o
fdformat --version

Software Package Versions Required by the 2.6 Kernel
Linux 非萬能, 沒 Linux 萬萬不能.
root = God
apt-get install ultimate-horsepower
圖檔
頭像
phantom
活潑的高中生
活潑的高中生
 
文章: 306
註冊時間: 週三 8月 18, 2004 10:23 am

re:make 的錯誤訊息 ~ 請大家幫忙

文章joce » 週日 9月 12, 2004 10:08 pm

d2207197 寫:其實我是看到這幾行
雖然寫 ?????,我想大概是沒有這些檔案吧
然後用 apt-file 尋找
$ apt-file search sys/types.h
看起來似乎是缺了 libc6-dev
代碼: 選擇全部
scripts/basic/fixdep.c:97:23: sys/types.h: ?????????
scripts/basic/fixdep.c:98:22: sys/stat.h: ?????????
scripts/basic/fixdep.c:99:22: sys/mman.h: ?????????
scripts/basic/fixdep.c:100:20: unistd.h: ?????????
scripts/basic/fixdep.c:101:19: fcntl.h: ?????????
scripts/basic/fixdep.c:102:20: string.h: ?????????
scripts/basic/fixdep.c:103:20: stdlib.h: ?????????
scripts/basic/fixdep.c:104:19: stdio.h: ?????????


apt-file search ..... 可搜尋相依套件
謝謝,
我又多學一樣了!! ;-)

目前環境大致打造完成了,
只差acpi或apm :(
頭像
joce
可愛的小學生
可愛的小學生
 
文章: 98
註冊時間: 週二 3月 11, 2003 5:11 am


回到 debian desktop

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客