songohan
18-05-2004, 18:12
Ciao ragazzi.
Allora sto postando anche in un altro forum ma per ora non se ne viene a capo.
Praticamente ho una MDK 9.2 con kernel 2.4.22mdk ma vorrei passare al 2.6.6
Tuttavia il kernel 2.6.6 richiede una versione aggiornata delle utilities per i moduli, le famose module-init-tools
Beh ho scaricato l'ultima versione - la 3.0 - da www.kernel.org ma in fase di compilazione Make esce con errore presumo del linker, e sempre allo stesso punto.
Ecco nel dettaglio l'output:
[root@localhost Programmi-CodiceSorgente]# cd module-init-tools-3.0
[root@localhost module-init-tools-3.0]# ./configure --prefix=/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
configure: Adding gcc options: -g -O2 -Wunused -Wall
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
[root@localhost module-init-tools-3.0]#
quindi
[root@localhost module-init-tools-3.0]# make
gcc -g -O2 -Wunused -Wall -o insmod.static -static insmod.o
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [insmod.static] Error 1
[root@localhost module-init-tools-3.0]#
Non ne riesco a venire a capo.
Anche perchè:
[root@localhost module-init-tools-3.0]# whereis ld
ld: /usr/bin/ld /usr/share/man/man1/ld.1.bz2
[root@localhost module-init-tools-3.0]#
Chiedo quindi il vostro aiuto.
Grazie!
Allora sto postando anche in un altro forum ma per ora non se ne viene a capo.
Praticamente ho una MDK 9.2 con kernel 2.4.22mdk ma vorrei passare al 2.6.6
Tuttavia il kernel 2.6.6 richiede una versione aggiornata delle utilities per i moduli, le famose module-init-tools
Beh ho scaricato l'ultima versione - la 3.0 - da www.kernel.org ma in fase di compilazione Make esce con errore presumo del linker, e sempre allo stesso punto.
Ecco nel dettaglio l'output:
[root@localhost Programmi-CodiceSorgente]# cd module-init-tools-3.0
[root@localhost module-init-tools-3.0]# ./configure --prefix=/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
configure: Adding gcc options: -g -O2 -Wunused -Wall
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
[root@localhost module-init-tools-3.0]#
quindi
[root@localhost module-init-tools-3.0]# make
gcc -g -O2 -Wunused -Wall -o insmod.static -static insmod.o
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** [insmod.static] Error 1
[root@localhost module-init-tools-3.0]#
Non ne riesco a venire a capo.
Anche perchè:
[root@localhost module-init-tools-3.0]# whereis ld
ld: /usr/bin/ld /usr/share/man/man1/ld.1.bz2
[root@localhost module-init-tools-3.0]#
Chiedo quindi il vostro aiuto.
Grazie!