[Bug 298871] New: linux/config.h missing from linux-kernel-headers
https://bugzilla.novell.com/show_bug.cgi?id=298871 Summary: linux/config.h missing from linux-kernel-headers Product: openSUSE 10.3 Version: Alpha 7 Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Development AssignedTo: olh@novell.com ReportedBy: dmueller@novell.com QAContact: qa@suse.de CC: pbaudis@novell.com Found By: --- its hard to compile anything without linux/config.h -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=298871#c1
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=298871#c2
Olaf Hering
https://bugzilla.novell.com/show_bug.cgi?id=298871#c3
--- Comment #3 from Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=298871#c4
Rainer Klier
https://bugzilla.novell.com/show_bug.cgi?id=298871#c5
--- Comment #5 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=298871#c6
--- Comment #6 from Rainer Klier
Kernel drivers have no business to care about /usr/include/{linux,asm*}, they
but some code of some drivers needs linux/config.h or some of the other include-files to build their driver.
need to include real kernel headers. Either the drivers are buggy in this regard or there is a bug in the kernel package. BTW, this linux/config.h removal happenned only in 10.3.
yes, that's why this bug here is created with the Product-property "openSUSE 10.3". like said above, i know at least the 2 drivers above that can't be made any more. of course, i know, this is NOT a bug in the kernel. this is NOT a bug from opensuse10.3. BUT like bug #252510 from java (which is in fact the fault from sun, and not suse/novell) this problem prevents and impairs users from using opensuse10.3. I am dependent on fritz-isdn driver, coz i have to connect to our server at our customer. and i am dependent on cisco-vpn-driver, for the same reason. i know, i should go to avm-berlin for fritz-isdn driver and cisco for vpn-driver, but here happens the same, like with sun with bug #252510, they do nothing! check http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373 they know about his bug since 08-MAR-2007 and it is fixed since today! it took them 7 month to fix it...... so in many cases we (novell/suse as the distributor of opensuse and us the users/customers) are on our own! sometimes it will be better to try to find a solution on our own. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=298871#c7
Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=298871#c8
--- Comment #8 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=298871#c9
--- Comment #9 from Rainer Klier
Rainer,
The problem here is: not the linux-kernel-headers has to be used for developping kernel-modules, so the file you are looking for is not meant to be there.
What you most likely need to install is the kernel-source package; there your driver should find what it needs.
i have that already installed. without it i couldn't have installed latest nvidia-driver..... ;-)
the headers for module compilation will then be found under /src/src/linux/[...]
that's what Petr tried to explain: the driver does not have to care about headers at /usr/include, but should look for some in /usr/src/linux
ok, this is what i am talking about. maybe a misunderstanding. here is the output of failing ciso-build: /vpn_install Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved. By installing this product you agree that you have read the license.txt file (The VPN Client license) and will comply with its terms. Directory where binaries will be installed [/usr/local/bin] Automatically start the VPN service at boot time [yes] In order to build the VPN kernel module, you must have the kernel headers for the version of the kernel you are running. Directory containing linux kernel source code [/lib/modules/2.6.22.9-143-default/build] * Binaries will be installed in "/usr/local/bin". * Modules will be installed in "/lib/modules/2.6.22.9-143-default/CiscoVPN". * The VPN service will be started AUTOMATICALLY at boot time. * Kernel source from "/lib/modules/2.6.22.9-143-default/build" will be used to build the module. Is the above correct [y] Shutting down /opt/cisco-vpnclient/bin/vpnclient: Done Stopped: /etc/init.d/vpnclient_init (VPN init script) Making module make -C /lib/modules/2.6.22.9-143-default/build SUBDIRS=/usr/src/packages/SOURCES/vpnclient-4.8.0-orig modules make[1]: Entering directory `/usr/src/linux-2.6.22.9-143-obj/x86_64/default' make -C ../../../linux-2.6.22.9-143 O=../linux-2.6.22.9-143-obj/x86_64/default modules CC [M] /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.o /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:12:26: error: linux/config.h: No such file or directory In file included from /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/Cniapi.h:15, from /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:27: /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/GenDefs.h:110:2: warning: #warning 64 bit /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c: In function ‘CniInjectReceive’: /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:297: error: implicit declaration of function ‘skb_set_timestamp’ /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:331: error: ‘struct sk_buff’ has no member named ‘nh’ /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:332: error: ‘struct sk_buff’ has no member named ‘mac’ /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c: In function ‘CniInjectSend’: /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:454: error: ‘struct sk_buff’ has no member named ‘mac’ /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:455: error: ‘struct sk_buff’ has no member named ‘nh’ /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘h’ /usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.c:458: error: ‘struct sk_buff’ has no member named ‘nh’ make[4]: *** [/usr/src/packages/SOURCES/vpnclient-4.8.0-orig/linuxcniapi.o] Error 1 make[3]: *** [_module_/usr/src/packages/SOURCES/vpnclient-4.8.0-orig] Error 2 make[2]: *** [modules] Error 2 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.22.9-143-obj/x86_64/default' make: *** [default] Error 2 Failed to make module "cisco_ipsec.ko". there is already a patch for this under http://tuxx-home.at/projects/cisco-vpnclient/vpnclient-linux-2.6.22.diff which works. and there is already an new version of cisco-vpn, which should work, but it also doesn't compile: http://tuxx-home.at/vpn/Linux/vpnclient-linux-x86_64-4.8.01.0640-k9.tar.gz but for fritz-isdn-card i don't know a solution. here is the output of failing compile: rpmbuild --rebuild fcusb2-0.1-0.src.rpm Installing fcusb2-0.1-0.src.rpm Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.35199 + umask 022 + cd /usr/src/packages/BUILD + cd /usr/src/packages/BUILD + rm -rf fritz + /usr/bin/gzip -dc /usr/src/packages/SOURCES/fcusb2-suse93-64bit-3.11-07.tar.gz + tar -xvvf - drwxr-xr-x root/root 0 2006-01-05 00:00 fritz/ -rw-r--r-- root/root 12 2006-01-05 00:00 fritz/ID drwxr-xr-x root/root 0 2006-01-05 00:00 fritz/lib/ -rw-r--r-- root/root 827035 2006-01-05 00:00 fritz/lib/fcusb2-lib.o drwxr-xr-x root/root 0 2006-01-05 00:00 fritz/src/ -rw-r--r-- root/root 841 2006-01-05 00:00 fritz/src/Makefile -rw-r--r-- root/root 21435 2006-01-05 00:00 fritz/src/lib.c -rw-r--r-- root/root 2744 2006-01-05 00:00 fritz/src/lib.h -rw-r--r-- root/root 7081 2006-01-05 00:00 fritz/src/queue.c -rw-r--r-- root/root 2869 2006-01-05 00:00 fritz/src/queue.h -rw-r--r-- root/root 1597 2006-01-05 00:00 fritz/src/libstub.h -rw-r--r-- root/root 1549 2006-01-05 00:00 fritz/src/attr.h -rw-r--r-- root/root 2760 2006-01-05 00:00 fritz/src/defs.h -rw-r--r-- root/root 42511 2006-01-05 00:00 fritz/src/driver.c -rw-r--r-- root/root 5289 2006-01-05 00:00 fritz/src/driver.h -rw-r--r-- root/root 21756 2006-01-05 00:00 fritz/src/tools.c -rw-r--r-- root/root 6209 2006-01-05 00:00 fritz/src/tools.h -rw-r--r-- root/root 18326 2006-01-05 00:00 fritz/src/tables.c -rw-r--r-- root/root 3715 2006-01-05 00:00 fritz/src/tables.h -rw-r--r-- root/root 10191 2006-01-05 00:00 fritz/src/main.c -rw-r--r-- root/root 1167 2006-01-05 00:00 fritz/src/main.h -rw-r--r-- root/root 1516 2006-01-05 00:00 fritz/src/lock.h -rw-r--r-- root/root 7175 2006-01-05 00:00 fritz/src/libdefs.h -rw-r--r-- root/root 436 2006-01-05 00:00 fritz/Makefile -rw-r--r-- root/root 1180 2006-01-05 00:00 fritz/install.pre -rw-r--r-- root/root 3522 2006-01-05 00:00 fritz/compile-help-german.txt -rw-r--r-- root/root 57 2006-01-05 00:00 fritz/install.system -rw-r--r-- root/root 15390 2006-01-05 00:00 fritz/fus2base.frm -rw-r--r-- root/root 880809 2006-01-05 00:00 fritz/fcusb21.ko -rw-r--r-- root/root 745 2006-01-05 00:00 fritz/install.card -rw-r--r-- root/root 1668 2006-01-05 00:00 fritz/install.main -rw-r--r-- root/root 1826 2006-01-05 00:00 fritz/install.post -rw-r--r-- root/root 7329 2006-01-05 00:00 fritz/Logo_CAPI4Linux.jpg -rw-r--r-- root/root 6922 2006-01-05 00:00 fritz/ISDN.CDB.txt.add -rw-r--r-- root/root 7978 2006-01-05 00:00 fritz/CAPI20_Errormessages.txt -rw-r--r-- root/root 3366 2006-01-05 00:00 fritz/compile-help-english.txt -rw-r--r-- root/root 3446 2006-01-05 00:00 fritz/license.txt -rwxr-xr-x root/root 25061 2006-01-05 00:00 fritz/install_passive-d.html -rwxr-xr-x root/root 23797 2006-01-05 00:00 fritz/install_passive-e.html -rw-r--r-- root/root 19680 2006-01-05 00:00 fritz/fus3base.frm -rwxr--r-- root/root 5681 2006-01-05 00:00 fritz/install -rw-r--r-- root/root 1265 2006-01-05 00:00 fritz/install.checks + STATUS=0 + '[' 0 -ne 0 ']' + cd fritz ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chown -Rhf root . ++ /usr/bin/id -u + '[' 0 = 0 ']' + /bin/chgrp -Rhf root . + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (fritz-usb.diff):' Patch #1 (fritz-usb.diff): + patch -p1 -s ++ find . -name '*lib.o' + OBJ=./lib/fcusb2-lib.o + for i in '$OBJ' + mv ./lib/fcusb2-lib.o ./lib/fcusb2-lib.o.old + objcopy -L memcmp -L memcpy -L memmove -L memset -L strcat -L strcmp -L strcpy -L strlen -L strncmp -L strncpy ./lib/fcusb2-lib.o.old /lib/fcusb2-lib.o + set -- CAPI20_Errormessages.txt ID ISDN.CDB.txt.add Logo_CAPI4Linux.jpg Makefile compile-help-english.txt compile-help-german.txt fcusb21.ko fus2base.frm fus3base.frm install install.card install.checks install.main install.post install.pre install.system install_passive-d.html install_passive-e.html lib license.txt src + mkdir source + mv CAPI20_Errormessages.txt ID ISDN.CDB.txt.add Logo_CAPI4Linux.jpg Makefile compile-help-english.txt compile-help-german.txt fcusb21.ko fus2base.frm fus3base.frm install install.card install.checks install.main install.post install.pre install.system install_passive-d.html install_passive-e.html lib license.txt src source/ + mkdir obj + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.58299 + umask 022 + cd /usr/src/packages/BUILD + /bin/rm -rf /var/tmp/fcusb2-0.1-build ++ dirname /var/tmp/fcusb2-0.1-build + /bin/mkdir -p /var/tmp + /bin/mkdir /var/tmp/fcusb2-0.1-build + cd fritz + export 'EXTRA_CFLAGS=-DVERSION=\"0.1\"' + EXTRA_CFLAGS='-DVERSION=\"0.1\"' + for flavor in debug default xen + rm -rf obj/debug + cp -r source obj/debug + make -C /usr/src/linux-obj/x86_64/debug modules M=/usr/src/packages/BUILD/fritz/obj/debug/src LIBDIR=/usr/src/packages/BUILD/fritz/obj/debug/lib make: Entering directory `/usr/src/linux-2.6.22.9-143-obj/x86_64/debug' make -C ../../../linux-2.6.22.9-143 O=../linux-2.6.22.9-143-obj/x86_64/debug modules CC [M] /usr/src/packages/BUILD/fritz/obj/debug/src/main.o In file included from /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:35: /usr/src/packages/BUILD/fritz/obj/debug/src/driver.h:26:26: error: linux/config.h: No such file or directory /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:86: error: unknown field ‘driver’ specified in initializer /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:86: warning: braces around scalar initializer /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:86: warning: (near initialization for ‘usb_driver.name’) /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:88: error: field name not in record or union initializer /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:88: error: (near initialization for ‘usb_driver.name’) /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:88: warning: initialization from incompatible pointer type /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:89: error: field name not in record or union initializer /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:89: error: (near initialization for ‘usb_driver.name’) /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:89: warning: excess elements in scalar initializer /usr/src/packages/BUILD/fritz/obj/debug/src/main.c:89: warning: (near initialization for ‘usb_driver.name’) make[3]: *** [/usr/src/packages/BUILD/fritz/obj/debug/src/main.o] Error 1 make[2]: *** [_module_/usr/src/packages/BUILD/fritz/obj/debug/src] Error 2 make[1]: *** [modules] Error 2 make: *** [modules] Error 2 make: Leaving directory `/usr/src/linux-2.6.22.9-143-obj/x86_64/debug' error: Bad exit status from /var/tmp/rpm-tmp.58299 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.58299 (%build) all these packages fail because of non existent "linux/config.h" like the Summary of this bug is titled. and i think there are some more out there...... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=298871#c10
--- Comment #10 from Dominique Leuenberger
#ifndef _LINUX_CONFIG_H #define _LINUX_CONFIG_H /* This file is no longer in use and kept only for backward compatibility. * autoconf.h is now included via -imacros on the commandline */ #include
#endif
If it fails, you can also try with an empty file ( touch /usr/src/linux/include/linux/config.h ) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=298871#c11
--- Comment #11 from Petr Baudis
https://bugzilla.novell.com/show_bug.cgi?id=298871#c12
--- Comment #12 from Rainer Klier
https://bugzilla.novell.com/show_bug.cgi?id=298871#c13
--- Comment #13 from Rainer Klier
Thanks, Dominique.
At any rate, this bug is about linux/config.h in userspace-visible headers. The modules fail to compile because of linux/config.h missing from internal kernel headers, which is a different "bug" in completely different package.
ok, so we should open a new bug? and move the contents to the new one? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=298871#c14
Olaf Hering
participants (1)
-
bugzilla_noreply@novell.com