<div class="boardCommentBody">
    

    <div style="font-family: monospace;"><p>I did the following (might not be the most elegant way..)</p>
<p>apt-get install drbd0.7-module-source<br>
m-a a-i drbd0.7-module-source</p>
<p>Now you have the source under /usr/src/modules/drbd. Just editing the two Makefiles /usr/src/modules/drbd/Makefile and /usr/src/modules/drbd/drbd/Makefile does not work, because the m-a unpacks the tar file again.</p>

<p>Thus I edited the two Makefiles and added a SHELL=/bin/bash line somewhere at the top, removed the /usr/src/drbd0.7.tar.gz file, created a new drbd0.7.tar.gz with the changed Makefiles &#39;tar cvzf drbd0.7.tar.gz /usr/src/modules/drbd/&#39;
</p>
<p>After that &#39;m-a a-i drbd0.7-module-source&#39; works as expected.</p>
<p>I&#39;m not very familiar with the module-assist command, I&#39;m sure there is a more elegant way to do this.</p><br>Listo ya pude compilar drbd y cargarlo como modulo<br></div>

    
  </div><br><br><div><span class="gmail_quote">2007/3/2, Alberto Isaac &lt;<a href="mailto:albertoi7@gmail.com">albertoi7@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Desafortunamente no se de frances pero ..<br><br><a href="http://forum.ubuntu-fr.org/viewtopic.php?id=82636&amp;p=2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://forum.ubuntu-fr.org/viewtopic.php?id=82636&amp;p=2
</a><br><br><pre>sudo rm -r /usr/src/modules/drbd<br><br>sudo aptitude install drbd0.7-module-source drbd0.7-utils<br>sudo dpkg --force-depends --purge linux-headers-2.6.17-10 linux-headers-2.6.17-10-generic<br>sudo rm -r /usr/src/linux-
headers-2.6.17-10 /usr/src/linux-headers-2.6.17-10-generic<br><br>sudo aptitude install linux-headers-2.6.17-10 linux-headers-2.6.17-10-generic<br>cd /usr/src<br>sudo tar -xzf drbd0.7.tar.gz<br>cd /usr/src/linux-headers-2.6.17-10-generic
<br>sudo make-kpkg --revision $(cat /usr/src/linux-<br>headers-2.6.17-10/linux-headers.revision) configure<br>sudo make-kpkg --added-modules drbd modules-image<br>cd /usr/src<br>sudo dpkg -i drbd0.7-module-2.6.17-10-generic_0.7.20-1+2.6.17.1-10.34_i386.deb
<br>sudo modprobe drbd<br></pre><br><br><br>siguiendo ese mismo ejemplo llego&nbsp; ami mismo error:<br><br>/usr/bin/make -C drbd KERNEL_SOURCES=/usr/src/linux-headers-2.6.17-10-generic MODVERSIONS=detect KERNEL=linux-2.6.17-10-generic
 KDIR=/usr/src/linux-
headers-2.6.17-10-generic<br>make[3]: Entering directory `/usr/src/modules/drbd/drbd&#39;<br><br>&nbsp;&nbsp;&nbsp; Calling toplevel makefile of kernel source tree, which I believe is in<br>&nbsp;&nbsp;&nbsp; KDIR=/usr/src/linux-headers-2.6.17-10-generic

<br><br>mv: missing destination file operand after `drbd_buildtag.c{.new,}&#39;<br>Try `mv --help&#39; for more information.<br>make[3]: *** [drbd_buildtag.c] Error 1<br>make[3]: Leaving directory `/usr/src/modules/drbd/drbd&#39;
<br>make[2]: *** [binary-modules] Error 2<br>make[2]: Leaving directory `/usr/src/modules/drbd&#39;<br>make[1]: *** [kdist_build] Error 2<br>make[1]: Leaving directory `/usr/src/modules/drbd&#39;<br>Module /usr/src/modules/drbd failed.
<br>Hit return to Continue<br><br><br><br><br><div><span class="gmail_quote">2007/3/2, Alberto Isaac &lt;<a href="mailto:albertoi7@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">albertoi7@gmail.com
</a>&gt;:</span><div><span class="e" id="q_1111489c8574a22a_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
alguien sabe ya e intentado desde el source y siguiendo guias con apt-get o con el module-assistant automatic-install drbd0.7-module-source pero no logro compilalrlo<br>ya hice el cat /proc/version<br><br>y me dice gcc version 
4.1.2 20060928 <br><br>cuando cheko la version de mi gcc:<br>gcc --version<br>gcc (GCC) 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)<br>Copyright (C) 2006 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.&nbsp; There is NO
<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>Espero alguien me pueda orientar o decir que puede ser el error al compilar<br><br><br><div><span class="gmail_quote">2007/3/1, Alberto Isaac &lt;
<a href="mailto:albertoi7@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">albertoi7@gmail.com</a>&gt;:</span><div><span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Llevo mas de 3 hrs tratando de compilar el drbd en ubuntu 
6.10 <br><br>cuando me voy al directorio de modules/drbd<br>y ejecuto el make<br>me sale:<br>make -C drbd drbd_buildtag.c<br>make[1]: Entering directory `/home/???/Desktop/drbd-
8.0.0/drbd&#39;<br>make[1]: Leaving directory `/home/???/Desktop/drbd-8.0.0/drbd&#39;<br>make[1]: Entering directory `/home/???/Desktop/drbd-8.0.0/user&#39;<br>cp ../drbd/drbd_buildtag.c drbd_buildtag.c<br>gcc -g -O2 -c -W -Wall -I../drbd&nbsp;&nbsp; -c -o drbd_buildtag.o drbd_buildtag.c
<br>drbd_buildtag.c:1: error: expected identifier or &#39;(&#39; before &#39;-&#39; token<br>make[1]: *** [drbd_buildtag.o] Error 1<br>make[1]: Leaving directory `/home/???/Desktop/drbd-8.0.0/user&#39;<br>make: *** [tools] Error 2
<br><span><br clear="all">
<br>-- <br>- <a href="http://albertux.fime.uanl.mx" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://albertux.fime.uanl.mx</a><br> Atte: Alberto Isaac Ayala Esquivias
</span></blockquote></span></div></div><div><span><br><br clear="all"><br>-- <br>- <a href="http://albertux.fime.uanl.mx" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://albertux.fime.uanl.mx</a><br> Atte: Alberto Isaac Ayala Esquivias
</span></div></blockquote></span></div></div><div><span class="e" id="q_1111489c8574a22a_3"><br><br clear="all"><br>-- <br>- <a href="http://albertux.fime.uanl.mx" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://albertux.fime.uanl.mx</a><br> Atte: Alberto Isaac Ayala Esquivias
</span></div></blockquote></div><br><br clear="all"><br>-- <br>- <a href="http://albertux.fime.uanl.mx">http://albertux.fime.uanl.mx</a><br> Atte: Alberto Isaac Ayala Esquivias