<br><br><div class="gmail_quote">On Sun, Apr 3, 2011 at 5:10 AM, David Paleino <span dir="ltr"><<a href="mailto:dapal@debian.org">dapal@debian.org</a>></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>
> Dear mentors,<br>
><br>
> I am looking for a sponsor for my package "0ad".<br>
><br>
> * Package name : 0ad<br>
</div>> [..]<br>
<div class="im">><br>
> My motivation for maintaining this package is: Even though 0 A.D. is still<br>
> in Alpha, it is still playable (and also very fun if you like RTS games). I<br>
> would like to package and maintain 0 A.D. so that fellow Debian users can<br>
> also enjoy this game as well.<br>
<br>
</div>I haven't checked the package, but given I'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's buried<br>
by tons of other successful compilations, but here it is:<br>
<br>
g++ -g -O2 -MMD -D "LIB_STATIC_LINK" -D "INSTALLED_BINDIR=/usr/games" -D<br>
"INSTALLED_DATADIR=/usr/share/games/0ad" -D "INSTALLED_LIBDIR=/usr/lib/games/0ad" -D "NDEBUG" -D "CONFIG_FINAL=1" -D "USING_PCH" -I "/usr/X11R6/include/X11" -I "/usr/X11R6/include" -I "/usr/include/X11" -I "../../../source/pch/simulation2" -I "../../../source/" -I "../../../libraries/spidermonkey-tip/include-unix/release" -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 'bool<br>
CNetServerWorker::SetupConnection()':<br>
../../../source/network/NetServer.cpp:118:52: error: too few arguments to<br>
function 'ENetHost* enet_host_create(const ENetAddress*, size_t, size_t,<br>
enet_uint32, enet_uint32)'<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'd say).<br>
<br>
Kindly,<br>
David<br>
<font color="#888888"><br>
--<br>
. ''`. Debian developer | <a href="http://wiki.debian.org/DavidPaleino" target="_blank">http://wiki.debian.org/DavidPaleino</a><br>
: :' : Linuxer #334216 --|-- <a href="http://www.hanskalabs.net/" target="_blank">http://www.hanskalabs.net/</a><br>
`. `'` 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'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>