<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 'tar cvzf drbd0.7.tar.gz /usr/src/modules/drbd/'
</p>
<p>After that 'm-a a-i drbd0.7-module-source' works as expected.</p>
<p>I'm not very familiar with the module-assist command, I'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 <<a href="mailto:albertoi7@gmail.com">albertoi7@gmail.com</a>>:</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&p=2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://forum.ubuntu-fr.org/viewtopic.php?id=82636&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 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'<br><br> Calling toplevel makefile of kernel source tree, which I believe is in<br> KDIR=/usr/src/linux-headers-2.6.17-10-generic
<br><br>mv: missing destination file operand after `drbd_buildtag.c{.new,}'<br>Try `mv --help' for more information.<br>make[3]: *** [drbd_buildtag.c] Error 1<br>make[3]: Leaving directory `/usr/src/modules/drbd/drbd'
<br>make[2]: *** [binary-modules] Error 2<br>make[2]: Leaving directory `/usr/src/modules/drbd'<br>make[1]: *** [kdist_build] Error 2<br>make[1]: Leaving directory `/usr/src/modules/drbd'<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 <<a href="mailto:albertoi7@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">albertoi7@gmail.com
</a>>:</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. 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 <
<a href="mailto:albertoi7@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">albertoi7@gmail.com</a>>:</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'<br>make[1]: Leaving directory `/home/???/Desktop/drbd-8.0.0/drbd'<br>make[1]: Entering directory `/home/???/Desktop/drbd-8.0.0/user'<br>cp ../drbd/drbd_buildtag.c drbd_buildtag.c<br>gcc -g -O2 -c -W -Wall -I../drbd -c -o drbd_buildtag.o drbd_buildtag.c
<br>drbd_buildtag.c:1: error: expected identifier or '(' before '-' token<br>make[1]: *** [drbd_buildtag.o] Error 1<br>make[1]: Leaving directory `/home/???/Desktop/drbd-8.0.0/user'<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