Автор Тема: kompilirane na kernel2.4.18  (Прочетена 4264 пъти)

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« -: Jan 30, 2004, 12:47 »
rabotia na RedHat 8.0 s kernel 2.4.18
pribavil sam edin patch kam source koda na kernela - bez problemi

no kato zapochna da prekompiliram kernala mi dava slednite greshki:
pri make menuconfig

rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts/lxdialog all
make[1]: Entering directory `/usr/src/linux-2.4.18-14/scripts/lxdialog'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DLOCALE -DCURSES_LOC="<curses.h>" -c -o checklist.o checklist.c
In file included from checklist.c:24:
dialog.h:22:23: sys/types.h: No such file or directory
dialog.h:23:19: fcntl.h: No such file or directory
dialog.h:24:20: unistd.h: No such file or directory
dialog.h:25:19: ctype.h: No such file or directory
dialog.h:26:20: stdlib.h: No such file or directory
dialog.h:27:20: string.h: No such file or directory
dialog.h:29:20: curses.h: No such file or directory
In file included from checklist.c:24:
dialog.h:127: parse error before "use_colors"
dialog.h:127: warning: type defaults to `int' in declaration of `use_colors'
dialog.h:127: warning: data definition has no type or storage class
dialog.h:128: parse error before "use_shadow"
dialog.h:128: warning: type defaults to `int' in declaration of `use_shadow'
dialog.h:128: warning: data definition has no type or storage class
dialog.h:130: parse error before "attributes"
dialog.h:130: warning: type defaults to `int' in declaration of `attributes'
dialog.h:130: warning: data definition has no type or storage class
dialog.h:143: parse error before '*' token
dialog.h:143: warning: function declaration isn't a prototype
dialog.h:146: parse error before '*' token
.......
make[1]: *** [checklist.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.18-14/scripts/lxdialog'
make: *** [menuconfig] Error 2

--------------------------------------------------------
pri make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
scripts/mkdep.c:33:19: ctype.h: No such file or directory
scripts/mkdep.c:34:19: fcntl.h: No such file or directory
In file included from /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/syslimits.h:7,
from /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/limits.h:11,
from scripts/mkdep.c:35:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include/limits.h:132:75: limits.h: No such file or directory
scripts/mkdep.c:36:19: stdio.h: No such file or directory
scripts/mkdep.c:37:20: stdlib.h: No such file or directory
scripts/mkdep.c:38:20: string.h: No such file or directory
scripts/mkdep.c:39:20: unistd.h: No such file or directory
scripts/mkdep.c:41:23: sys/fcntl.h: No such file or directory
scripts/mkdep.c:42:22: sys/mman.h: No such file or directory
scripts/mkdep.c:43:22: sys/stat.h: No such file or directory
scripts/mkdep.c:44:23: sys/types.h: No such file or directory
.........
scripts/mkdep.c:51: storage size of `cwd' isn't known
make: *** [scripts/mkdep] Error 1

--------------------------------
e-mi, tva e.... dava mi geshki mama mu!
are ako niakoi e specialist da pomogne
mersi mnogo
Активен

  • Гост
kompilirane na kernel2.4.18
« Отговор #1 -: Jan 30, 2004, 13:43 »
Не съм специaлист ,НО виждам следните проблеми
1.1. Проблемите очевидно са свързани с отсъствието на основни header файлове
1.2. Виж дали наистина имаш хедърите .. и ако е така ... виж в Makefile-a къде са дефинирани. Ако пътя до тях ги няма можеш да го добавиш с -I например
gcc -<blah blah> -I/path/to/missing/headers
1.3 gcc 3.2 s който идва rh 8 е бъгав! consider upgrade!!
Активен

growchie

  • Напреднали
  • *****
  • Публикации: 623
    • Профил
kompilirane na kernel2.4.18
« Отговор #2 -: Jan 30, 2004, 14:17 »
az imah podobni problemi s RH 9
ako polzvash source coda deto idva s redhata prosto zabravi da patchnesh kadyrno...
napravo si drypni poslednija sorce ili pone clean source ot kernel.org
kakvoto imam opit s prekompilirane na kerneli ot redhat se problemi e bilo
tija patchvat na svoj red taka che super sbozjavat kernela ako reshish i ti neshto da mu baesh. inache pone pri mene ne sym imal problemi s kompiliraneto na kernel pod 8
ako ti e vajen kernela (pravish server) zemi i si drypni naj novija 2.4 stot imashe security updates i ima smisyl da minesh na neshto po-visoko
Активен

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« Отговор #3 -: Jan 30, 2004, 14:18 »
izteglih i palnia source code na kernel2.6.1
i tam pochti sashtite raboti mi dava

gcc to mi e 3.2 kak moga samo nego da upgrade-na?

a tezi headeri kade da gi tarsia?
Активен

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« Отговор #4 -: Jan 30, 2004, 14:29 »
malko po-kasno dneska shte vi napisha kakvo mi dava
kato se opitam da kompiliram palnia k2.6.1 ot redhat8
Активен

growchie

  • Напреднали
  • *****
  • Публикации: 623
    • Профил
kompilirane na kernel2.4.18
« Отговор #5 -: Jan 30, 2004, 14:49 »
mi to za update na gcc-to maj e malko kysnichko.. to veche redhat trjabva da ne podyrjat redhat 8. neznam ako probash da slojesh gcc ot 9 ili ot fedora kakvi bozi shte stanat. ti tova 2.6.1 pachvash  li go i nego ili e clean
Активен

growchie

  • Напреднали
  • *****
  • Публикации: 623
    • Профил
kompilirane na kernel2.4.18
« Отговор #6 -: Jan 30, 2004, 14:54 »
abe ti ncurses imash li instalirani i po tochno ncurses devel?'<img'>?
napomnjam che za konfigurirane ti trjabva ili make config (tekstov) ili maje menuconfig (ncurses) ili make xconfig (x11-devel) maj tam. predi v 2.4 trabvashe da napravish make dep i chak togava make bzImage.
v 2.6 do kolkoto pomnja namashie nujda ot make deo
Активен

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« Отговор #7 -: Jan 30, 2004, 15:12 »
kernel-a 2.6.1 e chist ne sam go pravil nishto

za make dep - emi probvah i s nego ma pak se sardi
probval sam s make xconfig , menuconfig se taia
ncurses ? kvo e tva?
na staroto 2.4 imam .config file
Активен

melwin

  • Напреднали
  • *****
  • Публикации: 222
    • Профил
kompilirane na kernel2.4.18
« Отговор #8 -: Jan 30, 2004, 16:13 »
инсталирай си следния rpm
libc6-devel
Активен

The second is the basic unit of time. It is the length of time taken for 9192631770 periods of vibration of the caesium-133 atom to occur.

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« Отговор #9 -: Jan 30, 2004, 16:15 »
pri kompilirane na kernel 2.6.1 mi dava

make menuconfig


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

emi -tva e natatak niama smisal da prodaljavam s kompilaciata

blagodaria na vsichki za pomoshta
Активен

growchie

  • Напреднали
  • *****
  • Публикации: 623
    • Профил
kompilirane na kernel2.4.18
« Отговор #10 -: Jan 30, 2004, 16:24 »
ja probaj s make config
Активен

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« Отговор #11 -: Jan 30, 2004, 16:25 »
kade da nameria tozi libc6-devel
v rpmfind.net ima samo libc-5 rpm-ta
Активен

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« Отговор #12 -: Jan 30, 2004, 16:35 »
[root@HD1 linux-2.6.1]# make config
  HOSTCC  scripts/fixdep
scripts/fixdep.c:97:23: sys/types.h: No such file or directory
scripts/fixdep.c:98:22: sys/stat.h: No such file or directory
scripts/fixdep.c:99:22: sys/mman.h: No such file or directory
scripts/fixdep.c:100:20: unistd.h: No such file or directory
scripts/fixdep.c:101:19: fcntl.h: No such file or directory
scripts/fixdep.c:102:20: string.h: No such file or directory
scripts/fixdep.c:103:20: stdlib.h: No such file or directory
scripts/fixdep.c:104:19: stdio.h: No such file or directory
In file included from /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i386-redhat-linux/3.2/include/limits.h:11,
                 from scripts/fixdep.c:105:
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include/limits.h:132:75: limits.h: No such file or directory
scripts/fixdep.c:106:19: ctype.h: No such file or directory
scripts/fixdep.c:107:24: netinet/in.h: No such file or directory
scripts/fixdep.c: In function `usage':
scripts/fixdep.c:121: warning: implicit declaration of function `fprintf'
scripts/fixdep.c:121: `stderr' undeclared (first use in this function)
scripts/fixdep.c:121: (Each undeclared identifier is reported only once
scripts/fixdep.c:121: for each function it appears in.)
scripts/fixdep.c:122: warning: implicit declaration of function `exit'
scripts/fixdep.c: In function `print_cmdline':
scripts/fixdep.c:127: warning: implicit declaration of function `printf'
scripts/fixdep.c: At top level:
scripts/fixdep.c:130: `NULL' undeclared here (not in a function)
scripts/fixdep.c: In function `grow_config':
scripts/fixdep.c:143: warning: implicit declaration of function `realloc'
scripts/fixdep.c:143: warning: assignment makes pointer from integer without a cast
scripts/fixdep.c:144: `NULL' undeclared (first use in this function)
scripts/fixdep.c:145: warning: implicit declaration of function `perror'
scripts/fixdep.c: In function `is_defined_config':
scripts/fixdep.c:161: warning: implicit declaration of function `memcmp'
scripts/fixdep.c: In function `define_config':
scripts/fixdep.c:174: warning: implicit declaration of function `memcpy'
scripts/fixdep.c: In function `use_config':
scripts/fixdep.c:193: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:207: warning: implicit declaration of function `tolower'
scripts/fixdep.c:193: warning: unused variable `s'
scripts/fixdep.c: At top level:
scripts/fixdep.c:212: parse error before "size_t"
scripts/fixdep.c:213: warning: function declaration isn't a prototype
scripts/fixdep.c: In function `parse_config_file':
scripts/fixdep.c:214: `map' undeclared (first use in this function)
scripts/fixdep.c:214: `len' undeclared (first use in this function)
scripts/fixdep.c:220: warning: implicit declaration of function `ntohl'
scripts/fixdep.c:231: warning: implicit declaration of function `isalnum'
scripts/fixdep.c: In function `strrcmp':
scripts/fixdep.c:244: warning: implicit declaration of function `strlen'
scripts/fixdep.c: In function `do_config_file':
scripts/fixdep.c:255: storage size of `st' isn't known
scripts/fixdep.c:259: warning: implicit declaration of function `open'
scripts/fixdep.c:259: `O_RDONLY' undeclared (first use in this function)
scripts/fixdep.c:261: `stderr' undeclared (first use in this function)
scripts/fixdep.c:265: warning: implicit declaration of function `fstat'
scripts/fixdep.c:267: warning: implicit declaration of function `close'
scripts/fixdep.c:270: warning: implicit declaration of function `mmap'
scripts/fixdep.c:270: `NULL' undeclared (first use in this function)
scripts/fixdep.c:270: `PROT_READ' undeclared (first use in this function)
scripts/fixdep.c:270: `MAP_PRIVATE' undeclared (first use in this function)
scripts/fixdep.c:270: warning: assignment makes pointer from integer without a cast
scripts/fixdep.c:279: warning: implicit declaration of function `munmap'
scripts/fixdep.c:255: warning: unused variable `st'
scripts/fixdep.c: At top level:
scripts/fixdep.c:284: parse error before "size_t"
scripts/fixdep.c:285: warning: function declaration isn't a prototype
scripts/fixdep.c: In function `parse_dep_file':
scripts/fixdep.c:286: `map' undeclared (first use in this function)
scripts/fixdep.c:287: `len' undeclared (first use in this function)
scripts/fixdep.c:289: `PATH_MAX' undeclared (first use in this function)
scripts/fixdep.c:291: warning: implicit declaration of function `strchr'
scripts/fixdep.c:293: `stderr' undeclared (first use in this function)
scripts/fixdep.c:289: warning: unused variable `s'
scripts/fixdep.c: In function `print_deps':
scripts/fixdep.c:325: storage size of `st' isn't known
scripts/fixdep.c:329: `O_RDONLY' undeclared (first use in this function)
scripts/fixdep.c:331: `stderr' undeclared (first use in this function)
scripts/fixdep.c:341: `NULL' undeclared (first use in this function)
scripts/fixdep.c:341: `PROT_READ' undeclared (first use in this function)
scripts/fixdep.c:341: `MAP_PRIVATE' undeclared (first use in this function)
scripts/fixdep.c:341: warning: assignment makes pointer from integer without a cast
scripts/fixdep.c:325: warning: unused variable `st'
scripts/fixdep.c: In function `traps':
scripts/fixdep.c:360: `stderr' undeclared (first use in this function)
make[1]: *** [scripts/fixdep] Error 1
make: *** [scripts/fixdep] Error 2
----------------------
mi e tva e
Активен

growchie

  • Напреднали
  • *****
  • Публикации: 623
    • Профил
kompilirane na kernel2.4.18
« Отговор #13 -: Jan 30, 2004, 16:40 »
na vtoroto instalatsionno cd trjabva da e
po printsip tam sa povecheto devel paketi
a koja e instaliranata versija moje da proverish s rpm -q imeto na paketa
Активен

frinko

  • Напреднали
  • *****
  • Публикации: 70
    • Профил
kompilirane na kernel2.4.18
« Отговор #14 -: Jan 30, 2004, 16:49 »
ami niama takav paket na vtoroto CD
Активен

Подобни теми
Заглавие Започната от Отговора Прегледи Последна публикация
Kompilirane Na Iadroto
Настройка на хардуер
GlobalMind 7 1727 Последна публикация Jan 27, 2004, 21:50
от alabal
kompilirane na kernela
Настройка на програми
to4o1 4 1502 Последна публикация Jun 08, 2004, 16:30
от nix
Kak sa si sloza kernel2.6.1 na mandrake9.1
Настройка на програми
PsYhLo 0 904 Последна публикация May 30, 2004, 13:41
от PsYhLo
kernel2.6.7 & adduser
Настройка на хардуер
Hel1Fire 1 1112 Последна публикация Jul 26, 2004, 10:16
от Acidtrance
Problem pri kompilirane ?
Настройка на програми
aksel 6 1227 Последна публикация Dec 30, 2004, 12:28
от philip