<div dir="ltr">Hi<div><br></div><div><div class="gmail-tw-nfl gmail-tw-ta-container" id="gmail-tw-target-text-container" style="padding-top:20px;color:rgb(33,33,33);font-size:0px"><pre class="gmail-tw-data-text gmail-tw-ta gmail-tw-text-medium" id="gmail-tw-target-text" dir="ltr" style="unicode-bidi:isolate;background-color:transparent;border:none;padding:0px 0.14em 0px 0px;margin-top:0px;margin-bottom:0px;font-family:inherit;overflow:hidden;width:276px;white-space:pre-wrap;word-wrap:break-word;height:36px;font-size:29px;line-height:36px"><span lang="en">Any ideas?</span></pre><div><span lang="en"><br></span></div><pre class="gmail-tw-data-text gmail-tw-ta gmail-tw-text-medium" lang="en" style="background-color:transparent;border:none;padding:0px 0.14em 0px 0px;margin-top:0px;margin-bottom:0px;font-family:inherit;overflow:hidden;text-align:initial;width:276px;white-space:pre-wrap;word-wrap:break-word;font-size:29px;line-height:36px"></pre></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-21 9:50 GMT+03:00 Dmitrij Nemirskij <span dir="ltr"><<a href="mailto:dmitrij.v.nemirskij@gmail.com" target="_blank">dmitrij.v.nemirskij@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">How to make kernel module for xenserver 7.2, I need help<br><div><br></div><div>download ddk for xenserver 7.2</div><div>download drbd drbd-9.0.8-1</div><div>cd drbd-9.0.8-1</div><div>make kmp-rpm</div><div><br></div><div><div><font face="monospace, monospace">+ make -C obj/default all KDIR=/usr/src/kernels/4.4.0+<wbr>10.x86_64</font></div><div><font face="monospace, monospace">make[1]: Entering directory `/root/rpmbuild/BUILD/drbd-9.<wbr>0.8-1/obj/default'</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> Calling toplevel makefile of kernel source tree, which I believe is in</font></div><div><font face="monospace, monospace"> KDIR=/usr/src/kernels/4.4.0+<wbr>10.x86_64</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> SORRY, kernel makefile not found. You need to tell me a correct KDIR!</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">make[1]: *** [greeting] Error 1</font></div><div><font face="monospace, monospace">make[1]: Leaving directory `/root/rpmbuild/BUILD/drbd-9.<wbr>0.8-1/obj/default'</font></div><div><font face="monospace, monospace">error: Bad exit status from /var/tmp/rpm-tmp.aP4Z71 (%build)</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"> Bad exit status from /var/tmp/rpm-tmp.aP4Z71 (%build)</font></div><div><font face="monospace, monospace">make: *** [kmp-rpm] Error 1</font></div></div><div><br></div>Where did the prefix <span style="font-family:monospace,monospace">.x86_64 </span>come from?<div><br></div><div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# uname -r</font></div><div><font face="monospace, monospace">4.4.0+10</font></div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# ls /boot/</font></div><div><font face="monospace, monospace">config-4.4.0+10 grub2 initrd-4.4.0+10.img System.map-4.4.0+10 vmlinuz-4.4.0+10</font></div><div><font face="monospace, monospace">grub initramfs-0-rescue-<wbr>3a47b1aa9e2c42b19ffd091ac6a945<wbr>c3.img initrd-4.4-xen.img vmlinuz-0-rescue-<wbr>3a47b1aa9e2c42b19ffd091ac6a945<wbr>c3 vmlinuz-4.4-xen</font></div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# 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-<wbr>3a47b1aa9e2c42b19ffd091ac6a945<wbr>c3.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-<wbr>3a47b1aa9e2c42b19ffd091ac6a945<wbr>c3</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><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# ls -l /usr/lib</font></div><div><font face="monospace, monospace">lib/ lib64/ libexec/</font></div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]# ls -l /usr/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 May 9 14:49 4.4.0+10</font></div><div><font face="monospace, monospace">[root@localhost drbd-9.0.8-1]#</font></div></div><div><br></div></div>
<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>
<br></blockquote></div><br></div>