config.h was removed in 2.6.19
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
drbd8 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Compiling drbd8 with a custom kernel
Linux version 2.6.20.
ii drbd8-module-source 8.0-pre3-1 RAID 1 over tcp/ip for Linux module source
It complains that linux/config.h doesn't exist, I think that was removed in 2.6.19
To get arround it now, on advice of google, I created /usr/src/
#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 <linux/autoconf.h>
#endif
Buildlog follows
dpatch deapply-all
rm -rf patch-stamp patch-stampT debian/patched
dh_clean
/usr/bin/make -C drbd clean
make[1]: Entering directory `/usr/src/
rm -rf .tmp_versions
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
make[1]: Leaving directory `/usr/src/
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/
dpatch deapply-all
rm -rf patch-stamp patch-stampT debian/patched
dh_clean
/usr/bin/make -C drbd clean
make[2]: Entering directory `/usr/src/
rm -rf .tmp_versions
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
make[2]: Leaving directory `/usr/src/
/usr/bin/gcc-4.1
for templ in /usr/src/
bd/debian/
cp $templ `echo $templ | sed -e 's/_KVERS_
done
for templ in `ls debian/
test -e ${templ%
sed -e 's/##KVERS#
9-10.00.Custom/g ; s/#KDREV#
done
dh_testdir
dh_testroot
dh_clean -k
/usr/bin/make -C drbd KERNEL_
-headers-
make[2]: Entering directory `/usr/src/
Calling toplevel makefile of kernel source tree, which I believe is in
KDIR=
/usr/bin/make -C /usr/src/
make[3]: Entering directory `/usr/src/
CC [M] /usr/src/
CC [M] /usr/src/
CC [M] /usr/src/
In file included from /usr/src/
/usr/src/
/usr/src/
CC [M] /usr/src/
/usr/src/
In file included from /usr/src/
/usr/src/
/usr/src/
/usr/src/
make[4]: *** [/usr/src/
make[3]: *** [_module_
make[3]: Leaving directory `/usr/src/
make[2]: *** [kbuild] Error 2
make[2]: Leaving directory `/usr/src/
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/
make: *** [kdist_build] Error 2
Changed in drbd8: | |
status: | In Progress → Fix Released |
linux.h appears in drbd/drbd/ drbd_fs. c drbd/drbd/ drbd_main. c drbd/drbd/ drbd_proc. c drbd/drbd/ drbd_receiver. c drbd/drbd/ drbd_req. c drbd/drbd/ drbd_worker. c
modules/
modules/
modules/
modules/
modules/
modules/
However once that hurdle is passed, the next one appears modules/ drbd/drbd/ drbd_main. c:52:35: error: linux/devfs_ fs_kernel. h: No such file or directory
/usr/src/
Which has also been removed (since 2.6.17), it only appears in modules/ drbd/drbd/ drbd_main. c so I removed the line.
Next issue destroy( drbd_ee_ cache))
printk( KERN_ERR DEVICE_NAME
": kmem_cache_ destroy( drbd_ee_ cache) FAILED\n"); modules/ drbd/drbd/ drbd_main. c:2023: error: void value not ignored as it ought to be
if (drbd_ee_cache && kmem_cache_
Results in
/usr/src/
Also mentions that kmem_cache_t is deprecated
gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5 )wait.. . 6.20.3- custom- 070319 KSRC=/usr/ src/linux- headers- 2.6.20. 3-custom- 070319 KDREV=2. 6.20.3- customThis is free software; see the source for copying conditions. There is NO
Copyright (C) 2006 Free Software Foundation, Inc. build KVERS=2.
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i486-pc-linux-gnu
dpatch deapply-all modules/ drbd/drbd' modules/ drbd/drbd' modules/ drbd' modules/ drbd/drbd' modules/ drbd/drbd' modules/ drbd/debian/ drbd8-module- _KVERS_ .postinst /usr/src/ modules/ drbd/debian/ drbd8-module- _KVERS_ .postinst. backup /usr/src/modules/dr drbd8-module- _KVERS_ .postinst. modules. in; do \ /2.6.20. 3-custom- 070319/ g'` ; \ *.modules. in` ; do \ .modules. in}.backup || cp ${templ% .modules. in} ${templ% .modules. in}.backup 2>/dev/null || true; \ #/2.6.20. 3-custom- 070319/ g ;s/#KVERS# /2.6.20. 3-custom- 070319/ g ; s/_KVERS_ /2.6.20. 3-custom- 070319/ g ; s/##KDREV# #/2.6.20. 3-custom- 07031 /2.6.20. 3-custom- 070319- 10.00.Custom/ g ; s/_KDREV_ /2.6.20. 3-custom- 070319- 10.00.Custom/ g ' < $templ > ${templ% .modules. in}; \ SOURCES= /usr/src/ linux-headers- 2.6.20. 3-custom- 070319 MODVERSIONS=detect KERNEL= linux-2. 6.20.3- custom- 070319 KDIR=/usr/src/linux
rm -rf patch-stamp patch-stampT debian/patched
dh_clean
/usr/bin/make -C drbd clean
make[1]: Entering directory `/usr/src/
rm -rf .tmp_versions
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
make[1]: Leaving directory `/usr/src/
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/
dpatch deapply-all
rm -rf patch-stamp patch-stampT debian/patched
dh_clean
/usr/bin/make -C drbd clean
make[2]: Entering directory `/usr/src/
rm -rf .tmp_versions
rm -f *.[oas] *.ko .*.cmd .*.d .*.tmp *.mod.c .*.flags .depend .kernel*
make[2]: Leaving directory `/usr/src/
/usr/bin/gcc-4.1
for templ in /usr/src/
bd/debian/
cp $templ `echo $templ | sed -e 's/_KVERS_
done
for templ in `ls debian/
test -e ${templ%
sed -e 's/##KVERS#
9-10.00.Custom/g ; s/#KDREV#
done
dh_testdir
dh_testroot
dh_clean -k
/usr/bin/make -C drbd KERNEL_
-headers-...