Newsgroup: it.comp.os.linux.sys
Titolo: verifiche sul kernel

In seguito ad una installazione standard di Fedora Core 4, ho
installato i sorgenti del kernel per verificare il supporto a v4l :
[root@luna RPMS]# rpm -Uvh kernel-devel-2.6.11-1.1369_FC4.i586.rpm
hardlink-1.0-1.13.i386.rpm
Dopodichè ho provato a fare un make menuconfig ma ho ottenuto il
seguente errore :
-----------------CUT HERE--------------------
[root@luna 2.6.11-1.1369_FC4-i586]# pwd
/usr/src/kernels/2.6.11-1.1369_FC4-i586
[root@luna 2.6.11-1.1369_FC4-i586]# make menuconfig
  HOSTCC  scripts/lxdialog/checklist.o
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:32:20: error: curses.h: No such file or
directory
In file included from scripts/lxdialog/checklist.c:24:
scripts/lxdialog/dialog.h:130: error: syntax error before
'use_colors'
scripts/lxdialog/dialog.h:130: warning: type defaults to 'int' in
declaration of 'use_colors'
scripts/lxdialog/dialog.h:130: warning: data definition has no type or
storage class
scripts/lxdialog/dialog.h:131: error: syntax error before
'use_shadow'
scripts/lxdialog/dialog.h:131: warning: type defaults to 'int' in
declaration of 'use_shadow'
scripts/lxdialog/dialog.h:131: warning: data definition has no type or
storage class
scripts/lxdialog/dialog.h:133: error: syntax error before
'attributes'
scripts/lxdialog/dialog.h:133: warning: type defaults to 'int' in
declaration of 'attributes'
scripts/lxdialog/dialog.h:133: warning: data definition has no type or
storage class
scripts/lxdialog/dialog.h:146: error: syntax error before '*' token
scripts/lxdialog/dialog.h:146: warning: function declaration isn't a
prototype
scripts/lxdialog/dialog.h:149: error: syntax error before '*' token
scripts/lxdialog/dialog.h:149: warning: function declaration isn't a
prototype
scripts/lxdialog/dialog.h:150: error: syntax error before '*' token
scripts/lxdialog/dialog.h:150: warning: function declaration isn't a
prototype
scripts/lxdialog/dialog.h:151: error: syntax error before '*' token
scripts/lxdialog/dialog.h:152: warning: function declaration isn't a
prototype
scripts/lxdialog/dialog.h:153: error: syntax error before '*' token
scripts/lxdialog/dialog.h:153: warning: function declaration isn't a
prototype
scripts/lxdialog/checklist.c:32: error: syntax error before '*'
token
scripts/lxdialog/checklist.c:34: warning: function declaration isn't
a prototype
scripts/lxdialog/checklist.c: In function 'print_item':
scripts/lxdialog/checklist.c:38: warning: implicit declaration of
function 'wattrset'
scripts/lxdialog/checklist.c:38: error: 'win' undeclared (first use
in this function)
scripts/lxdialog/checklist.c:38: error: (Each undeclared identifier is
reported only once
scripts/lxdialog/checklist.c:38: error: for each function it appears
in.)
scripts/lxdialog/checklist.c:39: warning: implicit declaration of
function 'wmove'
scripts/lxdialog/checklist.c:39: error: 'choice' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:41: warning: implicit declaration of
function 'waddch'
scripts/lxdialog/checklist.c:44: error: 'selected' undeclared
(first use in this function)
scripts/lxdialog/checklist.c:46: warning: implicit declaration of
function 'wprintw'
scripts/lxdialog/checklist.c:46: error: 'status' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:51: warning: implicit declaration of
function 'mvwaddch'
scripts/lxdialog/checklist.c:51: error: 'item' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:53: warning: implicit declaration of
function 'waddstr'
scripts/lxdialog/checklist.c:56: warning: implicit declaration of
function 'wrefresh'
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:64: error: syntax error before '*'
token
scripts/lxdialog/checklist.c:66: warning: function declaration isn't
a prototype
scripts/lxdialog/checklist.c: In function 'print_arrows':
scripts/lxdialog/checklist.c:67: error: 'win' undeclared (first use
in this function)
scripts/lxdialog/checklist.c:67: error: 'y' undeclared (first use
in this function)
scripts/lxdialog/checklist.c:67: error: 'x' undeclared (first use
in this function)
scripts/lxdialog/checklist.c:69: error: 'scroll' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:82: error: 'height' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:85: error: 'item_no' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:85: error: 'choice' undeclared (first
use in this function)
scripts/lxdialog/checklist.c: At top level:
scripts/lxdialog/checklist.c:103: error: syntax error before '*'
token
scripts/lxdialog/checklist.c:104: warning: function declaration isn't
a prototype
scripts/lxdialog/checklist.c: In function 'print_buttons':
scripts/lxdialog/checklist.c:105: error: 'width' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:106: error: 'height' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:108: error: 'dialog' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:108: error: 'selected' undeclared
(first use in this function)
scripts/lxdialog/checklist.c: In function 'dialog_checklist':
scripts/lxdialog/checklist.c:126: error: 'WINDOW' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:126: error: 'dialog' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:126: error: 'list' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:126: warning: left-hand operand of comma
expression has no effect
scripts/lxdialog/checklist.c:126: warning: statement with no effect
scripts/lxdialog/checklist.c:132: warning: implicit declaration of
function 'endwin'
scripts/lxdialog/checklist.c:133: warning: implicit declaration of
function 'fprintf'
scripts/lxdialog/checklist.c:133: warning: incompatible implicit
declaration of built-in function 'fprintf'
scripts/lxdialog/checklist.c:133: error: 'stderr' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:150: error: 'COLS' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:151: error: 'LINES' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:153: error: 'stdscr' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:155: warning: implicit declaration of
function 'newwin'
scripts/lxdialog/checklist.c:156: warning: implicit declaration of
function 'keypad'
scripts/lxdialog/checklist.c:156: error: 'TRUE' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:189: warning: implicit declaration of
function 'subwin'
scripts/lxdialog/checklist.c:221: warning: implicit declaration of
function 'wnoutrefresh'
scripts/lxdialog/checklist.c:223: warning: implicit declaration of
function 'doupdate'
scripts/lxdialog/checklist.c:226: warning: implicit declaration of
function 'wgetch'
scripts/lxdialog/checklist.c:233: error: 'KEY_UP' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:233: error: 'KEY_DOWN' undeclared
(first use in this function)
scripts/lxdialog/checklist.c:243: error: 'FALSE' undeclared (first
use in this function)
scripts/lxdialog/checklist.c:244: warning: implicit declaration of
function 'scrollok'
scripts/lxdialog/checklist.c:245: warning: implicit declaration of
function 'wscrl'
scripts/lxdialog/checklist.c:307: warning: incompatible implicit
declaration of built-in function 'fprintf'
scripts/lxdialog/checklist.c:308: warning: implicit declaration of
function 'delwin'
scripts/lxdialog/checklist.c:312: error: 'KEY_LEFT' undeclared
(first use in this function)
scripts/lxdialog/checklist.c:313: error: 'KEY_RIGHT' undeclared
(first use in this function)
make[2]: *** [scripts/lxdialog/checklist.o] Error 1
make[1]: *** [menuconfig] Error 2
make: *** [menuconfig] Error 2
[root@luna 2.6.11-1.1369_FC4-i586]#
-----------------CUT HERE--------------------
Innanzitutto ho notato che i sorgenti del kernel non sono in
"/usr/src/linux-xxx/" ma sono in "/usr/src/kernels/"
C'è un altro modo per capire se ho il supporto v4l attivato senza
andare a "sfrugugliare" il kernel?
Grazie
Claudio

 andare a "sfrugugliare" il kernel?
Nella directory /boot dovresti avere un file di configurazione con le
opzioni che ha incluso nel corrispondente kernel.
-- 
Per rispondermi, togli il nome del poeta

 ha scritto nel messaggio
news:1136200036.2...@z14g2000cwz.googlegroups.com...
In seguito ad una installazione standard di Fedora Core 4, ho
installato i sorgenti del kernel per verificare il supporto a v4l :
[root@luna RPMS]# rpm -Uvh kernel-devel-2.6.11-1.1369_FC4.i586.rpm
hardlink-1.0-1.13.i386.rpm
Dopodichč ho provato a fare un make menuconfig ma ho ottenuto il
seguente errore :
...cut...
MI riaggancio alla news di Claudio P. perché credo che il problema risieda
proprio nel kernel stesso;
a parte il fatto che ho creato il link da solo, perché come dice giustamente
Claudio P. la directory del kernel si trova nel percorso
/usr/src/kernels/
2.6.11.
.. e contrariamente a quanto avveniva nelle distro
precedenti di Fedora, non crea il link /usr/src/linux;
il problema che ho io č che devo compilare i moduli ax25 (Amateur Radio
support) per metter su un cluster dx (sono un radioamatore), ma andando a
ricompilare il kernel mi esce fuori questo messaggio di errore:
[root@duron600 linux]# make bzImage
  CHK     include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  CHK     include/asm-i386/asm_offsets.h
  HOSTCC  scripts/genksyms/genksyms.o
  HOSTCC  scripts/genksyms/lex.o
  HOSTCC  scripts/genksyms/parse.o
  HOSTLD  scripts/genksyms/genksyms
  CC      scripts/mod/empty.o
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'parse_file':
scripts/mod/sumversion.c:260: warning: pointer targets in passing argument 1
of 'grab_file' differ in signedness
scripts/mod/sumversion.c:277: warning: pointer targets in passing argument 1
of 'parse_string' differ in signedness
scripts/mod/sumversion.c:283: warning: pointer targets in passing argument 1
of 'parse_comment' differ in signedness
scripts/mod/sumversion.c: In function 'parse_source_files':
scripts/mod/sumversion.c:335: warning: pointer targets in initialization
differ in signedness
scripts/mod/sumversion.c:344: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:357: warning: pointer targets in passing argument 1
of 'parse_file' differ in signedness
scripts/mod/sumversion.c: In function 'strip_rcs_crap':
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of '__builtin_strcmp' differ in signedness
scripts/mod/sumversion.c:465: warning: pointer targets in passing argument 1
of 'strncmp' differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:469: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:485: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c:486: warning: pointer targets in passing argument 1
of 'strlen' differ in signedness
scripts/mod/sumversion.c: In function 'maybe_frob_rcs_version':
scripts/mod/sumversion.c:496: warning: pointer targets in passing argument 1
of 'strip_rcs_crap' differ in signedness
  HOSTLD  scripts/mod/modpost
make[1]: *** No rule to make target `init/main.o', needed by
`init/built-in.o'.  Stop.
make: *** [init] Error 2
Premetto: io il problema l'ho risolto usando un'altra distro (Fedora 2),
perň c'č sicuramente un'anomalia nel kernel di fedora 4.

 directory
installa curses-devel , il menu' viene compilato al volo quando lanci il
make.
-- 
"Machine-Independent":
        Non gira su alcuna macchina esistente.