<br><br><div class="gmail_quote">On Sun, Apr 3, 2011 at 5:10 AM, David Paleino <span dir="ltr">&lt;<a href="mailto:dapal@debian.org">dapal@debian.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Sat, 2 Apr 2011 21:59:59 -0700, Vincent Cheng wrote:<br>
<br>
&gt; Dear mentors,<br>
&gt;<br>
&gt; I am looking for a sponsor for my package &quot;0ad&quot;.<br>
&gt;<br>
&gt; * Package name    : 0ad<br>
</div>&gt; [..]<br>
<div class="im">&gt;<br>
&gt; My motivation for maintaining this package is: Even though 0 A.D. is still<br>
&gt; in Alpha, it is still playable (and also very fun if you like RTS games). I<br>
&gt; would like to package and maintain 0 A.D. so that fellow Debian users can<br>
&gt; also enjoy this game as well.<br>
<br>
</div>I haven&#39;t checked the package, but given I&#39;d like to play it, I tried to build<br>
it, and it FTBFS because of libenet. It seems like it wants libenet0 (1.2.*),<br>
but in Debian we have libenet1a (1.3*).<br>
<br>
The parallel jobs make it a bit difficult to find the error, since it&#39;s buried<br>
by tons of other successful compilations, but here it is:<br>
<br>
g++ -g -O2 -MMD -D &quot;LIB_STATIC_LINK&quot; -D &quot;INSTALLED_BINDIR=/usr/games&quot; -D<br>
&quot;INSTALLED_DATADIR=/usr/share/games/0ad&quot; -D &quot;INSTALLED_LIBDIR=/usr/lib/games/0ad&quot; -D &quot;NDEBUG&quot; -D &quot;CONFIG_FINAL=1&quot; -D &quot;USING_PCH&quot; -I &quot;/usr/X11R6/include/X11&quot; -I &quot;/usr/X11R6/include&quot; -I &quot;/usr/include/X11&quot; -I &quot;../../../source/pch/simulation2&quot; -I &quot;../../../source/&quot; -I &quot;../../../libraries/spidermonkey-tip/include-unix/release&quot; -g -O3 -Wall -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fpch-preprocess -msse -fno-omit-frame-pointer -march=i686 -fvisibility=hidden -MF obj/simulation2_Release/Simulation2.d -MT obj/simulation2_Release/Simulation2.o -o obj/simulation2_Release/Simulation2.o -c -include obj/simulation2_Release/precompiled.h ../../../source/simulation2/Simulation2.cpp<br>

In file included from ../../../source/network/NetServer.cpp:29:0:<br>
../../../source/lib/external_libraries/enet.h:33:2: error: #error The game<br>
currently requires ENet 1.2.x. You are using a newer version, which has an incompatible API and network protocol. Please switch to an older version.<br>
../../../source/network/NetServer.cpp: In member function &#39;bool<br>
CNetServerWorker::SetupConnection()&#39;:<br>
../../../source/network/NetServer.cpp:118:52: error: too few arguments to<br>
function &#39;ENetHost* enet_host_create(const ENetAddress*, size_t, size_t,<br>
enet_uint32, enet_uint32)&#39;<br>
/usr/include/enet/enet.h:498:21: note: declared here<br>
make[3]: *** [obj/network_Release/NetServer.o] Error 1<br>
make[2]: *** [network] Error 2<br>
make[2]: *** Waiting for unfinished jobs....<br>
<br>
I could suggest either maintain a separate libenet0, or try to port 0ad to the<br>
newer libenet (preferred, I&#39;d say).<br>
<br>
Kindly,<br>
David<br>
<font color="#888888"><br>
--<br>
 . &#39;&#39;`.   Debian developer | <a href="http://wiki.debian.org/DavidPaleino" target="_blank">http://wiki.debian.org/DavidPaleino</a><br>
 : :&#39;  : Linuxer #334216 --|-- <a href="http://www.hanskalabs.net/" target="_blank">http://www.hanskalabs.net/</a><br>
 `. `&#39;`  GPG: 1392B174 ----|---- <a href="http://deb.li/dapal" target="_blank">http://deb.li/dapal</a><br>
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174<br>
</font></blockquote></div><br><div>I didn&#39;t come across a FTBFS, but I suppose that was because I built 0 A.D. within a pbuilder configured for Testing (which, at the time, had libenet 1.2 available). Philip, is upstream planning to port 0ad to a newer version of libenet (1.3)?</div>
<div><br></div><div>- Vincent</div>