Jump to content


Photo

Can't Build On Gentoo


  • Please log in to reply
3 replies to this topic

#1 asc

asc

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 25 August 2006 - 05:37 PM

Hi when i try to build the ufo2000-svn.ebuild from ufo2000.sf.net the following error appears:
g++ -funsigned-char -Wall -Wno-deprecated-declarations -I src/lua -I src/luasqli te3 -DDEBUGMODE -DUFO_SVNVERSION=\"exported\" -DDATA_DIR=\"/usr/share/games/ufo2 000-svn\" -O2 -march=i686 -pipe -I/usr/include/freetype2 -DHAVE_FREETYPE -DGLYPH _TARGET=GLYPH_TARGET_ALLEGRO -DGK_NO_LEGACY -DHAVE_DUMBOGG -DHAVE_PNG -DLINUX -I /usr/include -o ufo2000 obj/bullet.o obj/cell.o obj/config.o obj/connect.o obj/c rc32.o obj/dirty.o obj/editor.o obj/explo.o obj/font.o obj/icon.o obj/inventory. o obj/item.o obj/keys.o obj/main.o obj/mainmenu.o obj/map.o obj/map_pathfind.o o bj/minimap.o obj/mouse.o obj/multiplay.o obj/music.o obj/packet.o obj/pck.o obj/ persist.o obj/place.o obj/platoon.o obj/position.o obj/random.o obj/scenario.o o bj/server_gui.o obj/server_protocol.o obj/server_transport.o obj/skin.o obj/sold ier.o obj/fpasprite.o obj/gui.o obj/sound.o obj/spk.o obj/stats.o obj/terrapck.o  obj/text.o obj/units.o obj/video.o obj/wind.o obj/geoscape.o obj/zfstream.o obj /script_api.o obj/lapi.o obj/lauxlib.o obj/lbaselib.o obj/lcode.o obj/ldblib.o o bj/ldebug.o obj/ldo.o obj/ldump.o obj/lfunc.o obj/lgc.o obj/liolib.o obj/llex.o obj/lmathlib.o obj/lmem.o obj/loadlib.o obj/lobject.o obj/lopcodes.o obj/lparser .o obj/lstate.o obj/lstring.o obj/lstrlib.o obj/ltable.o obj/ltablib.o obj/ltest s.o obj/ltm.o obj/lundump.o obj/lvm.o obj/lzio.o obj/e_acos.o obj/e_asin.o obj/e _atan2.o obj/e_exp.o obj/e_fmod.o obj/e_log.o obj/e_pow.o obj/e_rem_pio2.o obj/e _remainder.o obj/e_scalb.o obj/e_sqrt.o obj/k_cos.o obj/k_rem_pio2.o obj/k_sin.o  obj/k_tan.o obj/s_atan.o obj/s_ceil.o obj/s_copysign.o obj/s_cos.o obj/s_fabs.o  obj/s_floor.o obj/s_rint.o obj/s_scalbn.o obj/s_sin.o obj/s_tan.o obj/w_acos.o obj/w_asin.o obj/w_atan2.o obj/w_exp.o obj/w_fmod.o obj/w_log.o obj/w_pow.o obj/ w_remainder.o obj/w_sqrt.o obj/md5.o obj/aalg.o obj/aase.o obj/abeos.o obj/abitm ap.o obj/agtk.o obj/agup.o obj/ans.o obj/aphoton.o obj/awin95.o obj/decode.o obj /encode.o obj/io.o obj/jpgalleg.o obj/scale2x.o obj/glyph.o obj/dumbogg.o obj/lo adpng.o obj/regpng.o obj/savepng.o -lexpat -lfreetype -lz -lvorbisfile -lvorbis -logg -laldmb -ldumb -lpng -lz -lNL -pthread -L/usr/lib -Wl,--export-dynamic -la lleg-4.2.0 -lalleg_unsharable
/usr/lib/libaldmb.so: undefined reference to `_sort_out_getc'
collect2: ld returned 1 exit status
make: *** [ufo2000] Error 1
Google told me that libaldmb.so is part of Allegro, "allegro-config --version" prints "4.2.0."

Any Questions/Suggestions?

btw.: great game!

#2 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 25 August 2006 - 09:58 PM

First seems like you have dynamic libraries linking inconsistence (libaldmb.so is part of DUMB library which depends on allegro), that is what causing problems. Try runing revdep-rebuild or reemerge 'aldumb'.

Also I have just updated svn ebuild to keep it more in sync with ufo2000-0.7.1062 ebuild from portage (more correct dependencies, no stack execute compile options). You can redownload it and put into portage overlay.

Hope this helps, good luck.
ufo2000 development team
http://ufo2000.sourceforge.net

#3 asc

asc

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 26 August 2006 - 05:06 AM

Now, after reemerging "aldumb" and downloading the new ebuild it works :) thank you

But it gives me the following errors while starting:
Tileset 'moonbase' initialized, crc32 = EBA287A1
Invalid 'pInv' property for item 'Pistol' - ignored
Invalid 'pInv' property for item 'Pistol Clip' - ignored
Invalid 'pInv' property for item 'Rifle' - ignored
Invalid 'pInv' property for item 'Rifle Clip' - ignored
[...]
Invalid 'pInv' property for item 'Stun Bomb' - ignored
Invalid 'pInv' property for item 'Alien Grenade' - ignored
Invalid 'pHeld' property for item 'Knife' - ignored
libpng warning: Incomplete compressed datastream in iCCP chunk
libpng warning: Profile size field missing from iCCP chunk
libpng warning: Incomplete compressed datastream in iCCP chunk
libpng warning: Profile size field missing from iCCP chunk
Invalid 'pMap' property for item 'Submachine Gun Clip' - ignored
Equipment set 'Modified X-Com Weapons' refers to invalid item 'Pistol Clip' - ignored
Equipment set 'Modified X-Com Weapons (no explosives)' refers to invalid item 'Pistol Clip' - ignored
Equipment set 'Modified X-Com Weapons (no alien weapons)' refers to invalid item 'Pistol Clip' - ignored
Equipment set 'Modified X-Com Weapons (conventional weapons)' refers to invalid item 'Pistol Clip' - ignored
Equipment set 'Modified X-Com Weapons (no smoke/explosives)' refers to invalid item 'Pistol Clip' - ignored
Invalid 'pInv' property for item 'DART PISTOL' - ignored
Invalid 'pInv' property for item 'DART POD' - ignored
[...]
Invalid 'pInv' property for item 'ALIEN GRENADE' - ignored
Equipment set 'Original X-Com Weapon Set' refers to invalid item 'PISTOL CLIP' - ignored

UFO2000 0.7 (revision >=1062)
Compiled with Allegro 4.2.0, Unix on 12:51:43 Aug 26 2006
Moonbase is the only playable level, at least in "hotseat" mode, which seems to be quite strange because "ls /usr/share/games/ufo2000-svn/extensions":
readme.txt						terrain-industrial	 terrain-railyard   weapons-galactic
terrain-airfield				  terrain-modified-city  terrain-warehouse  weapons-modified
terrain-area51-skyranger-factory  terrain-moonbase	   terrain-xbase+	 weapons-original
terrain-downtown				  terrain-polis		  unit-chameleon	 weapons-ufo2000

Edited by asc, 26 August 2006 - 05:40 AM.


#4 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 26 August 2006 - 10:35 AM

You need original X-COM data files to use more terrains and weapon sets. After emerging you got a message about the place where you can put these data files.

If you don't have data files from the original games, you are restricted to only free stuff created for ufo2000 (it includes moonbase map), but at least you can play games :)
ufo2000 development team
http://ufo2000.sourceforge.net