You are not logged in.

#1 2009-08-30 01:33:48

B4RR13N705
Member
Registered: 2009-06-08
Posts: 87

Sumversion Error with 2.6.18

Hi, im trying to compile kernel 2.6.18.
This is what i did:

make mrproper
make menuconfig
make clean
make dep
make modules

But make modules give me this error:

[jk@arch4linux src]$ make modules
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: En la función 'traps':
scripts/basic/fixdep.c:371: aviso: la dereferencia de punteros 'type-punned' romperá las reglas de alias estricto
scripts/basic/fixdep.c:373: aviso: la dereferencia de punteros 'type-punned' romperá las reglas de alias estricto
  HOSTCC  scripts/basic/docproc
  CC      arch/i386/kernel/asm-offsets.s
  GEN     include/asm-i386/asm-offsets.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
scripts/mod/sumversion.c: En la función 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' no se declaró aquí (primer uso en esta función)
scripts/mod/sumversion.c:384: error: (Cada identificador no declarado solamente se reporta una vez
scripts/mod/sumversion.c:384: error: para cada funcion en la que aparece.)
scripts/mod/sumversion.c:384: aviso: variable 'filelist' sin usar
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

Whats sumversion? i didnt find it at make menuconfig....


OS -----> Arch Linux     DE -----> KDE4
CPU ---> 2.66GHz         RAM ---> 512 MB
SWAP -> 2 G                / -------> 10 G
/home -> 50 G             /boot ---> 64 MB

Offline

#2 2009-08-30 01:59:19

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: Sumversion Error with 2.6.18

A Google search came up with a report on Gentoo's bugtracker. Jump to comment #5 for a highly probable solution.

Offline

#3 2009-08-30 01:59:34

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Sumversion Error with 2.6.18

Hello B4RR13N705!

For some of us it's hard to help if the post isn't english, mainly the error output. Can you change the locale settings and give the english error output ?

Offline

#4 2009-08-30 02:24:10

B4RR13N705
Member
Registered: 2009-06-08
Posts: 87

Re: Sumversion Error with 2.6.18

djszapi wrote:

Hello B4RR13N705!

For some of us it's hard to help if the post isn't english, mainly the error output. Can you change the locale settings and give the english error output ?

[jk@arch4linux src]$ make modules
scripts/kconfig/conf -s arch/i386/Kconfig
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  HOSTCC  scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

OS -----> Arch Linux     DE -----> KDE4
CPU ---> 2.66GHz         RAM ---> 512 MB
SWAP -> 2 G                / -------> 10 G
/home -> 50 G             /boot ---> 64 MB

Offline

#5 2009-08-30 10:35:12

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Sumversion Error with 2.6.18

"scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in this function)"

It's a typical include problem generally, you can add #include <linux/limits.h> to the desired file, sumversion.c.

Offline

Board footer

Powered by FluxBB