[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: 0ad





On Sun, Apr 3, 2011 at 5:10 AM, David Paleino <dapal@debian.org> wrote:
On Sat, 2 Apr 2011 21:59:59 -0700, Vincent Cheng wrote:

> Dear mentors,
>
> I am looking for a sponsor for my package "0ad".
>
> * Package name    : 0ad
> [..]
>
> My motivation for maintaining this package is: Even though 0 A.D. is still
> in Alpha, it is still playable (and also very fun if you like RTS games). I
> would like to package and maintain 0 A.D. so that fellow Debian users can
> also enjoy this game as well.

I haven't checked the package, but given I'd like to play it, I tried to build
it, and it FTBFS because of libenet. It seems like it wants libenet0 (1.2.*),
but in Debian we have libenet1a (1.3*).

The parallel jobs make it a bit difficult to find the error, since it's buried
by tons of other successful compilations, but here it is:

g++ -g -O2 -MMD -D "LIB_STATIC_LINK" -D "INSTALLED_BINDIR=/usr/games" -D
"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
In file included from ../../../source/network/NetServer.cpp:29:0:
../../../source/lib/external_libraries/enet.h:33:2: error: #error The game
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.
../../../source/network/NetServer.cpp: In member function 'bool
CNetServerWorker::SetupConnection()':
../../../source/network/NetServer.cpp:118:52: error: too few arguments to
function 'ENetHost* enet_host_create(const ENetAddress*, size_t, size_t,
enet_uint32, enet_uint32)'
/usr/include/enet/enet.h:498:21: note: declared here
make[3]: *** [obj/network_Release/NetServer.o] Error 1
make[2]: *** [network] Error 2
make[2]: *** Waiting for unfinished jobs....

I could suggest either maintain a separate libenet0, or try to port 0ad to the
newer libenet (preferred, I'd say).

Kindly,
David

--
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
  `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

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)?

- Vincent

Reply to: