<div dir="ltr">Hi, Roland <br><br>We use xenserver ddk 7.2 for make kernel module<div><div><font face="monospace, monospace">[root@localhost boot]# uname -r</font></div><div><font face="monospace, monospace">4.4.0+10</font></div><div><font face="monospace, monospace">[root@localhost boot]# uname -a</font></div><div><font face="monospace, monospace">Linux localhost.localdomain 4.4.0+10 #1 SMP Tue May 9 14:19:55 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</font></div><div><font face="monospace, monospace">[root@localhost boot]# ls -l /usr/src/kernels/</font></div><div><font face="monospace, monospace">total 4</font></div><div><font face="monospace, monospace">drwxr-xr-x. 23 root root 4096 Aug 21 10:00 4.4.0+10</font></div><div><font face="monospace, monospace">lrwxrwxrwx 1 root root 8 Aug 21 08:29 4.4.0+10.x86_64 -> 4.4.0+10</font></div><div><font face="monospace, monospace">[root@localhost boot]# ls -l /boot/</font></div><div><font face="monospace, monospace">total 49564</font></div><div><font face="monospace, monospace">-rw-r--r--. 1 root root 107867 May 9 14:20 config-4.4.0+10</font></div><div><font face="monospace, monospace">drwxr-xr-x. 2 root root 4096 May 9 14:47 grub</font></div><div><font face="monospace, monospace">drwx------. 6 root root 4096 May 9 14:50 grub2</font></div><div><font face="monospace, monospace">-rw-r--r--. 1 root root 26321716 May 9 14:48 initramfs-0-rescue-3a47b1aa9e2c42b19ffd091ac6a945c3.img</font></div><div><font face="monospace, monospace">-rw-r--r--. 1 root root 11294256 May 9 14:49 initrd-4.4.0+10.img</font></div><div><font face="monospace, monospace">lrwxrwxrwx. 1 root root 19 May 9 14:49 initrd-4.4-xen.img -> initrd-4.4.0+10.img</font></div><div><font face="monospace, monospace">-rw-r--r--. 1 root root 2996461 May 9 14:20 System.map-4.4.0+10</font></div><div><font face="monospace, monospace">-rwxr-xr-x. 1 root root 5156528 May 9 14:48 vmlinuz-0-rescue-3a47b1aa9e2c42b19ffd091ac6a945c3</font></div><div><font face="monospace, monospace">-rw-r--r--. 1 root root 4772064 May 9 14:20 vmlinuz-4.4.0+10</font></div><div><font face="monospace, monospace">lrwxrwxrwx. 1 root root 16 May 9 14:49 vmlinuz-4.4-xen -> vmlinuz-4.4.0+10</font></div><br>Xenserver and DDK kernel 4.4.0+10 without prefix .x86_64<br><br>Standart make compile with prefix .x86_64</div><div><br></div><div>im fix KDIR original location, create symlink</div><div><br></div><div><div><font face="monospace, monospace">[root@localhost boot]# ls -l /usr/src/kernels/</font></div><div><font face="monospace, monospace">total 4</font></div><div><font face="monospace, monospace">drwxr-xr-x. 23 root root 4096 Aug 21 10:00 4.4.0+10</font></div><div><font face="monospace, monospace">lrwxrwxrwx 1 root root 8 Aug 21 08:29 4.4.0+10.x86_64 -> 4.4.0+10</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><br></div><div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# make kmp-rpm</font></div><div><font face="monospace, monospace">checking for presence of 9\.0\.8-1 in various changelog files</font></div><div><font face="monospace, monospace">drbd-kernel.spec:9.0.8-1%{?dist}</font></div><div><font face="monospace, monospace">ChangeLog:9.0.8-1 (api:genl2/proto:86-112/transport:14)</font></div></div><div>============================================================</div><div>---------------------------------------------------------------------------------------------------------</div><div><div><font face="monospace, monospace">Processing files: kmod-drbd-9.0.8_4.4.0+10-1.el7.centos.x86_64</font></div><div><font face="monospace, monospace">error: File not found: /root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/lib/modules/4.4.0+10.x86_64</font></div><div><font face="monospace, monospace">Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.eUFbc8</font></div><div><font face="monospace, monospace">+ umask 022</font></div><div><font face="monospace, monospace">+ cd /root/rpmbuild/BUILD</font></div><div><font face="monospace, monospace">+ cd drbd-9.0.8-1</font></div><div><font face="monospace, monospace">+ DOCDIR=/root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/usr/share/doc/kmod-drbd-9.0.8_4.4.0+10</font></div><div><font face="monospace, monospace">+ export DOCDIR</font></div><div><font face="monospace, monospace">+ /usr/bin/mkdir -p /root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/usr/share/doc/kmod-drbd-9.0.8_4.4.0+10</font></div><div><font face="monospace, monospace">+ cp -pr COPYING /root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/usr/share/doc/kmod-drbd-9.0.8_4.4.0+10</font></div><div><font face="monospace, monospace">+ cp -pr ChangeLog /root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/usr/share/doc/kmod-drbd-9.0.8_4.4.0+10</font></div><div><font face="monospace, monospace">+ cp -pr obj/k-config-4.4.0+10.x86_64.gz /root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/usr/share/doc/kmod-drbd-9.0.8_4.4.0+10</font></div><div><font face="monospace, monospace">cp: cannot stat 'obj/k-config-4.4.0+10.x86_64.gz': No such file or directory</font></div><div><font face="monospace, monospace">error: Bad exit status from /var/tmp/rpm-tmp.eUFbc8 (%doc)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">RPM build errors:</font></div><div><font face="monospace, monospace"> File not found: /root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/lib/modules/4.4.0+10.x86_64</font></div><div><font face="monospace, monospace"> Bad exit status from /var/tmp/rpm-tmp.eUFbc8 (%doc)</font></div><div><font face="monospace, monospace">make: *** [kmp-rpm] Error 1</font></div></div><div><br></div><div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# ls -l /root/rpmbuild/BUILDROOT/drbd-kernel-9.0.8-1.el7.centos.x86_64/lib/modules/</font></div><div><font face="monospace, monospace">total 4</font></div><div><font face="monospace, monospace">drwxr-xr-x 3 root root 4096 Aug 22 08:01 4.4.0+10</font></div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# ls -l /root/rpmbuild/BUILD/drbd-9.0.8-1/obj/</font></div><div><font face="monospace, monospace">total 64</font></div><div><font face="monospace, monospace">drwxr-xr-x 6 root root 36864 Aug 22 08:01 default</font></div><div><font face="monospace, monospace">lrwxrwxrwx 1 root root 15 Aug 22 08:00 drbd-headers -> ../drbd-headers</font></div><div><font face="monospace, monospace">-rw-r--r-- 1 root root 26784 Aug 22 08:01 k-config-4.4.0+10.gz !!!!!!! </font> without prefix .x86_64</div></div><div><br></div>I need help;(</div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-22 10:27 GMT+03:00 Roland Kammerer <span dir="ltr"><<a href="mailto:roland.kammerer@linbit.com" target="_blank">roland.kammerer@linbit.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Aug 18, 2017 at 05:17:48PM +0300, Dmitrij Nemirskij wrote:<br>
> Hi<br>
><br>
> Source drbd-9.0.8-1<br>
><br>
> + make -C obj/default all KDIR=/usr/src/kernels/4.4.0+<wbr>10.x86_64<br>
> make[1]: Entering directory `/root/rpmbuild/BUILD/drbd-9.<wbr>0.8-1/obj/default'<br>
><br>
> Calling toplevel makefile of kernel source tree, which I believe is in<br>
> KDIR=/usr/src/kernels/4.4.0+<wbr>10.x86_64<br>
><br>
> SORRY, kernel makefile not found. You need to tell me a correct KDIR!<br>
<br>
</span>Looks like you don't have the necessary headers/kernel-devel installed.<br>
<br>
> fix it<br>
<br>
;-). It works for us.<br>
<br>
Regards, rck<br>
______________________________<wbr>_________________<br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a><br>
<a href="http://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">http://lists.linbit.com/<wbr>mailman/listinfo/drbd-user</a><br>
</blockquote></div><br></div>