Mailinglist Archive: opensuse-programming-de (33 mails)

< Previous Next >
Re: [opensuse-programming-de] 11.1: linux/config.h und asm/semaphore.h nicht auffindbar
  • From: Ekkard Gerlach <suse@xxxxxxx>
  • Date: Tue, 29 Jun 2010 00:00:05 +0200
  • Message-id: <20100628220005.GC8940@xxxxxxxxxxxxxx>
Hallo David,

* David Haller schrieb:

Hallo,

Am Mon, 28 Jun 2010, Ekkard Gerlach schrieb:
* David Haller schrieb:
Hm. Mach mal ein

make -C /usr/src/linux-2.6.27.45-0.1 mrproper

[..]
rex4:/lib/modules/2.6.27.45-0.1-default/build # make cloneconfig
make -C /usr/src/linux-2.6.27.45-0.1
O=/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/. cloneconfig
GEN /usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/Makefile
HOSTCC scripts/kconfig/zconf.tab.o
gcc: /usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c: No such file
or directory
gcc: no input files

Hm. Keine Ahnung, warum. Aber, du hast 2 Möglichkeiten:

a)
cp /usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c_shipped \
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c

rex4:~ # cp /usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c_shipped
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c
rex4:~ # cd /lib/modules/2.6.27.45-0.1-default/build
rex4:/lib/modules/2.6.27.45-0.1-default/build # make cloneconfig
make -C /usr/src/linux-2.6.27.45-0.1
O=/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/. cloneconfig
GEN /usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/Makefile
HOSTCC scripts/kconfig/zconf.tab.o
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:166:24: error:
zconf.hash.c: No such file or directory
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c: In function
‘zconfparse’:
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:1660: error:
‘kconf_id_strings’ undeclared (first use in this function)
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:1660: error: (Each
undeclared identifier is reported only once
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:1660: error: for each
function it appears in.)
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:1768: warning:
implicit declaration of function ‘kconf_id_lookup’
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:1768: warning:
initialization makes pointer from integer without a cast
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c: In function
‘zconf_endtoken’:
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:2305: error:
‘kconf_id_strings’ undeclared (first use in this function)
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:2484:23: error:
lex.zconf.c: No such file or directory
In file included from
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.tab.c:2486:
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/confdata.c: In function
‘conf_get_default_confname’:
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/confdata.c:73: error: ‘PATH_MAX’
undeclared (first use in this function)
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/confdata.c:73: warning: unused
variable ‘fullname’
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/confdata.c: In function
‘conf_split_config’:
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/confdata.c:636: error: ‘errno’
undeclared (first use in this function)
/usr/src/linux-2.6.27.45-0.1/scripts/kconfig/confdata.c:636: error: ‘ENOENT’
undeclared (first use in this function)
make[3]: *** [scripts/kconfig/zconf.tab.o] Error 1
make[2]: *** [cloneconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2


b) wenn du bison und flex installiert hast:
make LKC_GENPARSER=1 cloneconfig

Ah, ich seh grad, da ist wohl ein Fipptehler (und das bei 2.6.33!)
in scripts/Makefile.lib:

====
cmd_shipped = cat $< > $@

$(obj)/%:: $(src)/%_shipped
$(call cmd,shipped)
==== ^ das sollte wohl ein _ sein...

Hier bei mir in /usr/src/linux-2.6.27.45-0.1/scripts/Makefile.lib
ebenso, habs mal ausgebessert gegen "_"


rex4:/lib/modules/2.6.27.45-0.1-default/build # make mrproper
make -C /usr/src/linux-2.6.27.45-0.1
O=/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/. mrproper
CLEAN scripts/basic

CLEAN scripts/kconfig

CLEAN include/config

CLEAN .config .config.old include/linux/autoconf.h


rex4:/lib/modules/2.6.27.45-0.1-default/build # make cloneconfig
make -C /usr/src/linux-2.6.27.45-0.1
O=/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/. cloneconfig
HOSTCC scripts/basic/fixdep

HOSTCC scripts/basic/docproc

HOSTCC scripts/basic/hash

GEN /usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/Makefile
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
cat /usr/src/linux-2.6.27.45-0.1/scripts/kconfig/lex.zconf.c_shipped >
scripts/kconfig/lex.zconf.c
cat /usr/src/linux-2.6.27.45-0.1/scripts/kconfig/zconf.hash.c_shipped >
scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
Cloning configuration file /proc/config.gz

rex4:/lib/modules/2.6.27.45-0.1-default/build # make modules_prepare
make -C /usr/src/linux-2.6.27.45-0.1
O=/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/. modules_prepare
GEN /usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/Makefile
scripts/kconfig/conf -s arch/x86/Kconfig
Using /usr/src/linux-2.6.27.45-0.1 as source for kernel
GEN /usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/Makefile
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/linux/utsrelease.h
UPD include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CC kernel/bounds.s
GEN include/linux/bounds.h
CC arch/x86/kernel/asm-offsets.s
GEN include/asm/asm-offsets.h
CALL /usr/src/linux-2.6.27.45-0.1/scripts/checksyscalls.sh
HOSTCC scripts/genksyms/genksyms.o
cat /usr/src/linux-2.6.27.45-0.1/scripts/genksyms/lex.c_shipped >
scripts/genksyms/lex.c
cat /usr/src/linux-2.6.27.45-0.1/scripts/genksyms/parse.h_shipped >
scripts/genksyms/parse.h
cat /usr/src/linux-2.6.27.45-0.1/scripts/genksyms/keywords.c_shipped >
scripts/genksyms/keywords.c
HOSTCC scripts/genksyms/lex.o
cat /usr/src/linux-2.6.27.45-0.1/scripts/genksyms/parse.c_shipped >
scripts/genksyms/parse.c
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
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
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
HOSTCC scripts/conmakehash
HOSTCC scripts/bin2c

Teilerfolg!

gerlach@rex4:~/tmp/ov511-2.31> make
Building OVCam drivers for 2.6 kernel.
make -C /lib/modules/2.6.27.45-0.1-default/build
SUBDIRS=/home/gerlach/tmp/ov511-2.31 modules
make[1]: Entering directory `/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default'

make -C /usr/src/linux-2.6.27.45-0.1
O=/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/. modules

WARNING: Symbol version dump
/usr/src/linux-2.6.27.45-0.1-obj/x86_64/default/Module.symvers
is missing; modules will have no dependencies and modversions.


CC [M] /home/gerlach/tmp/ov511-2.31/ov511_core.o
/home/gerlach/tmp/ov511-2.31/ov511_core.c:29:26: error: linux/config.h: Datei
oder Verzeichnis nicht gefunden
/home/gerlach/tmp/ov511-2.31/ov511_core.c:40:27: error: asm/semaphore.h: Datei
oder Verzeichnis nicht gefunden
/home/gerlach/tmp/ov511-2.31/ov511_core.c:164: error: expected ‘)’ before
string constant
/home/gerlach/tmp/ov511-2.31/ov511_core.c:166: error: expected ‘)’ before
string constant
[...]

Immer noch werden linux/config.h und asm/semaphore.h nicht gefunden.

rex4:/lib/modules/2.6.27.45-0.1-default/build # ls include/linux/ -l
total 124
-rw-r--r-- 1 root root 109223 Jun 28 23:53 autoconf.h
-rw-r--r-- 1 root root 224 Jun 28 23:53 bounds.h
-rw-r--r-- 1 root root 44 Jun 28 23:53 utsrelease.h
-rw-r--r-- 1 root root 97 Jun 28 23:53 version.h

rex4:/lib/modules/2.6.27.45-0.1-default/build # ls include/asm/ -l
total 8
-rw-r--r-- 1 root root 4107 Jun 28 23:53 asm-offsets.h


?!?!
Ekkard
--
To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming-de+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups