Version: 3.1.0 (using KDE 3.3.0, SuSE) Compiler: gcc version 3.3.4 (pre 3.3.5 20040809) OS: Linux (i686) release 2.6.8-24.14-default (0) (Optional) Make sure "Full Compiler Output" is selected in the Messages context menu. (1) Select project/New Project/C/Linux Kernel Module. (2)Enter a name (I used "HelloKernelBug") and press Next three times, and then Finish. At this stage, a blank dialog headed "Information" pops up, which is a lesser bug. (3) Press OK. Another dialog pops up, which I think is also a lesser bug: "This project does not contain any files yet. Populate it with all C/C++/Java files below the project directory?" (4) Press Yes. (5) Press the "Build Project" button. Actual Results: cd '/home/flash/MyDev/hellokernelbug' && gmake -j1 make -C /lib/modules/2.6.8-24.14-default/build SUBDIRS=/home/flash/MyDev/hellokernelbug modules make[1]: Entering directory `/usr/src/linux-2.6.8-24.14-obj/i386/default' make -C ../../../linux-2.6.8-24.14 O=../linux-2.6.8-24.14-obj/i386/default modules make[4]: *** No rule to make target `/home/flash/MyDev/hellokernelbug/hellokernelbug.c', needed by `/home/flash/MyDev/hellokernelbug/hellokernelbug.o'. Stop. make[3]: *** [_module_/home/flash/MyDev/hellokernelbug] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.8-24.14-obj/i386/default' make[2]: *** [modules] Error 2 make[1]: *** [modules] Error 2 gmake: *** [default] Error 2 *** Exited with status: 2 *** Workaround: Changing hellokernelbug-driver.o to hellokernelbug.o in the makefile, and saving hellokernelbug-driver.c as hellokernelbug.c, allowed me to build successfully. A previous incarnation of the worked-around project installed and uninstalled OK via modprobe.
I confirm that the bug is still there in version 3.2.2, and that Flash Sheridan's work-around still works too. Cheers, Michael.
Created attachment 12148 [details] Bug fix for bug 105498 (kernel modules)
The attached patch (against 3.2.2) fixes this bug. It implements what Flash suggested. I did check that it works fine with a Linux 2.6 kernel. However, I could not check that it still works with 2.4, though I see no reasons why it shouldn't. Anyway, doesn't Linux 2.6 prevail? Please apply this patch unless you don't approve of it. Thanks in advance, Michael.
I just tried to apply your patch to the current KDE 3.5 branch for KDevelop and it wouldn't apply cleanly. Is it possible for you to provide an updated patch against current KDE 3.5 SVN?
Recently fixed, see 116196