Jump to content
Eternal Lands Official Forums
Sign in to follow this  
wexy

Troubles with CVS version

Recommended Posts

Since the version from the website is not working for me:

[wexy@fragger Eternal Lands]$ ./el-130.x86.linux.static
./el-130.x86.linux.static: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

 

I have libstdc++.so.6, and also I did a fresh `yum update' (Fedora Core 5) today.

 

I have tried compiling the cvs version with this makefile.

.PHONY: clean release docs

# tune these for your setup & compile options
OPTIONS=-DLINUX -DELC -DPNG_SCREENSHOT -DAFK_FIX -DNEW_WEATHER -DNOTEPAD -DUSE_FRAMEBUFFER -DNEW_FRUSTUM -DBUG_FIX_3D_OBJECTS_MIN_MAX -DNEW_TEX -DOPTIONS_I18N -DATI_9200_FIX -DNEW_ACTOR_ANIMATION -DAUTO_UPDATE -DCOUNTERS -DFONTS_FIX

#-DX86_64
#-DTIMER_CHECK
#-DWRITE_XML
#-DNOTEPAD		# enable in-game notepad
#-DCUSTOM_LOOK	# allows you to customize your look. (EXPERIMENTAL)
#-DUID		# use unique ID sent from server for custom looks. (INCOMPLETE)
#-DANTI_ALIAS	# allows to enable/disable anti-aliasing in el.ini
#-DMEMORY_DEBUG	# gather information about memory allocation and freeing
#-DPNG_SCREENSHOT	# make screenshots in W3C's PNG format in game
#-DATI_9200_FIX	# flickering fix for ATI 92xx
#-DNEW_WEATHER	# new weather effects
#-DOPTIONS_I18N	# make option labels & descriptions translatable
#-DUSE_FRAMEBUFFER	# use framebuffer for reflection
#-DNEW_TEX		# use new texture coordinates for enhanced actors
#-DNEW_FRUSTUM	# use new frustum culling (AABB trees)
#-DBUG_FIX_3D_OBJECTS_MIN_MAX # Just a smal work around for the new frustum with the buggy 3d objects. This is not nessecary if you have correct 3d objects.
#-DDRAW_BBOX	# draws the bounding boxes for 2d and 3d objects
#-DUSE_LISPSM	# uses light space optimized shadow maps (EXPERIMENTAL)
#-DAUTO_UPDATE	# enable minor automatic file updating
#-DAFK_FIX	# fixes afk messages to count only PM's, and store and count local messages if the option is selected
#-DFONTS_FIX		# dynamically loads all fonts with the filename in the format font*.bmp, and makes them accessable in the options

PLATFORM=-march=athlon-tbird
XDIR=-L/usr/X11R6/lib
CWARN=-Wall
#-Wdeclaration-after-statement -Wall -Werror
CXXWARN=-Wall
#-Wall -Werror

# basic compiling and linking - rarely changed
CFLAGS=$(PLATFORM) $(CWARN) -O -ggdb -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags)
_CFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags)
CXXFLAGS=$(PLATFORM) $(CXXWARN) -O -ggdb -pipe $(OPTIONS)
_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS)

LDFLAGS=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lopenal $(XDIR) -lGL -lGLU -lvorbis -lvorbisfile -lcal3d -lm -lpng -lalut
_LDFLAGS=$(XDIR) -lGL -lpthread -lz
STATICLIBS=libs/libSDL_net.a libs/libSDL.a libs/libopenal.a libs/libvorbisfile.a libs/libvorbis.a libs/libogg.a libs/libxml2.a libs/libcal3d.a libs/libpng.a libs/libasound.a libs/libalut.a

# the objects we need
COBJS=2d_objects.o 3d_objects.o	\
actor_scripts.o actors.o alphamap.o asc.o \
books.o buddy.o bags.o bbox_tree.o \
cache.o cal.o chat.o colors.o console.o consolewin.o counters.o cursors.o	\
dialogues.o draw_scene.o	\
elconfig.o elmemory.o elwindows.o encyclopedia.o errors.o events.o	\
framebuffer.o filter.o font.o frustum.o	\
gamewin.o gl_init.o hud.o help.o highlight.o	\
ignore.o init.o interface.o items.o	\
keys.o knowledge.o lights.o lispsm.o list.o loginwin.o loading_win.o	\
main.o manufacture.o map_io.o mapwin.o	\
md2loader.o md5.o misc.o multiplayer.o	\
new_actors.o new_character.o normals.o notepad.o	\
openingwin.o	\
particles.o paste.o pathfinder.o pm_log.o	\
questlog.o queue.o reflection.o	rules.o skills.o \
sector.o session.o shader.o shadows.o sort.o sound.o spells.o stats.o storage.o symbol_table.o tabs.o	\
terrain.o text.o textures.o tile_map.o timers.o translate.o trade.o	\
update.o weather.o widgets.o \
books/fontdef.o books/parser.o books/symbols.o books/typesetter.o

CXXOBJS=cal3d_wrapper.o

OBJS=$(COBJS) $(CXXOBJS)

EXE=el.x86.linux.bin

CC=gcc
CXX=g++
LINK=gcc

# the compile targets
$(EXE): $(OBJS)
$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)

$(COBJS): %.o : %.c
$(CC) $(CFLAGS) -c -o $@ $<

$(CXXOBJS): %.o : %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<

release:
$(MAKE) -f Makefile.linux 'CFLAGS=$(_CFLAGS)' 'CXXFLAGS=$(_CXXFLAGS)'

static:
$(MAKE) -f Makefile.linux 'CFLAGS=$(_CFLAGS)' 'LDFLAGS=$(_LDFLAGS)' 'OBJS=$(OBJS) $(STATICLIBS) -lstdc++ -lGL -lGLU'

clean:
rm -f $(OBJS) $(EXE) .depend

docs:	
cd docs && doxygen Doxyfile

.depend: *.h books/*.h
$(CC) $(CFLAGS) -MM $(patsubst %.o, %.c, $(COBJS)) >.depend
$(CXX) $(CXXFLAGS) -MM $(patsubst %.o, %.cpp, $(CXXOBJS)) >>.depend

-include .depend

 

And it worked, but when I start the game I see this in console:

[wexy@fragger Eternal Lands]$ ./el-cvs.x86.linux.bin
I/O warning : failed to load external entity "human_female.xml"
I/O warning : failed to load external entity "human_male.xml"
I/O warning : failed to load external entity "elf_female.xml"
I/O warning : failed to load external entity "elf_male.xml"
I/O warning : failed to load external entity "dwarf_female.xml"
I/O warning : failed to load external entity "dwarf_male.xml"
I/O warning : failed to load external entity "wraith.xml"
I/O warning : failed to load external entity "cyclops.xml"
I/O warning : failed to load external entity "beaver.xml"
I/O warning : failed to load external entity "rat.xml"
I/O warning : failed to load external entity "goblin_male_2.xml"
I/O warning : failed to load external entity "goblin_female_1.xml"
I/O warning : failed to load external entity "deer.xml"
I/O warning : failed to load external entity "bear_1.xml"
I/O warning : failed to load external entity "wolf.xml"
I/O warning : failed to load external entity "white_rabbit.xml"
I/O warning : failed to load external entity "brown_rabbit.xml"
I/O warning : failed to load external entity "boar.xml"
I/O warning : failed to load external entity "bear_2.xml"
I/O warning : failed to load external entity "snake_1.xml"
I/O warning : failed to load external entity "snake_2.xml"
I/O warning : failed to load external entity "snake_3.xml"
I/O warning : failed to load external entity "fox.xml"
I/O warning : failed to load external entity "puma.xml"
I/O warning : failed to load external entity "ogre_male_1.xml"
I/O warning : failed to load external entity "goblin_male_1.xml"
I/O warning : failed to load external entity "orc_male_1.xml"
I/O warning : failed to load external entity "orc_female_1.xml"
I/O warning : failed to load external entity "skeleton.xml"
I/O warning : failed to load external entity "gargoyle_1.xml"
I/O warning : failed to load external entity "gargoyle_2.xml"
I/O warning : failed to load external entity "gargoyle_3.xml"
I/O warning : failed to load external entity "troll.xml"
I/O warning : failed to load external entity "chimeran_mountain_wolf.xml"
I/O warning : failed to load external entity "gnome_female.xml"
I/O warning : failed to load external entity "gnome_male.xml"
I/O warning : failed to load external entity "orchan_female.xml"
I/O warning : failed to load external entity "orchan_male.xml"
I/O warning : failed to load external entity "draegoni_female.xml"
I/O warning : failed to load external entity "draegoni_male.xml"
I/O warning : failed to load external entity "skunk_1.xml"
I/O warning : failed to load external entity "racoon_1.xml"
I/O warning : failed to load external entity "unicorn_1.xml"
I/O warning : failed to load external entity "chimeran_desert_wolf.xml"
I/O warning : failed to load external entity "chimeran_forest_wolf.xml"
I/O warning : failed to load external entity "chimeran_arctic_wolf.xml"
I/O warning : failed to load external entity "bear_3.xml"
I/O warning : failed to load external entity "bear_4.xml"
I/O warning : failed to load external entity "panther.xml"
I/O warning : failed to load external entity "leopard.xml"
I/O warning : failed to load external entity "leopard_snow.xml"
I/O warning : failed to load external entity "feran.xml"
I/O warning : failed to load external entity "tiger.xml"
I/O warning : failed to load external entity "tiger_white.xml"
I/O warning : failed to load external entity "orc_female_1_armed.xml"
I/O warning : failed to load external entity "orc_male_1_armed.xml"
I/O warning : failed to load external entity "skeleton_armed.xml"
I/O warning : failed to load external entity "phantom_warrior.xml"
I/O warning : failed to load external entity "imp.xml"
I/O warning : failed to load external entity "brownie.xml"
I/O warning : failed to load external entity "spider_big1.xml"
I/O warning : failed to load external entity "spider_big2.xml"
I/O warning : failed to load external entity "spider_big3.xml"
I/O warning : failed to load external entity "spider_big4.xml"
I/O warning : failed to load external entity "spider_small1.xml"
I/O warning : failed to load external entity "spider_small2.xml"
I/O warning : failed to load external entity "spider_small3.xml"
I/O warning : failed to load external entity "spider_small4.xml"
I/O warning : failed to load external entity "wood_sprite.xml"
I/O warning : failed to load external entity "leprechaun.xml"
I/O warning : failed to load external entity "giant_1.xml"
I/O warning : failed to load external entity "hobgoblin.xml"
I/O warning : failed to load external entity "yeti.xml"

 

Also I can't see me or any other char/creature in game (I see everything else tho) and in some cases for example if I come close to VOTD storage the game crashes with SEG FAULT.

 

I thought it's a cal3d problem but it appears it's not the case.

 

Erm... help plx?

Edited by wexy

Share this post


Link to post
Share on other sites
error while loading shared libraries: libstdc++.so.5: cannot open shared object file:

I have libstdc++.so.6

won't work without the same one. CVS is a better option anyway
-DNEW_WEATHER
not really ready, though shouldn't be broken
And it worked, but when I start the game I see this in console:

I/O warning : failed to load external entity "human_female.xml"

actor defs aren't being loaded. try copying the ones from CVS/actor_defs to your data_dir/actor_defs, see if that will fix it
I thought it's a cal3d problem but it appears it's not the case.
why is cal3d not suspect?

Share this post


Link to post
Share on other sites
actor defs aren't being loaded. try copying the ones from CVS/actor_defs to your data_dir/actor_defs, see if that will fix it

Doesn't help, same errors can't see any creatures/chars.

 

why is cal3d not suspect?

I've been searching on the internet and people are getting the same error like "failed to load external entity" and it has something to do with loading xml files, I think actor defs aren't getting loaded so EL/Cal3D has no idea how to show cratures/chars.

 

Like I said I have updated everything required to the latest version.

Share this post


Link to post
Share on other sites

any compile/link errors? other problems with apps that use that build of libxml2 (may be hard to tell if it was recently updated, but nothing else compiled since)? any possible permission or I/O problems?

Share this post


Link to post
Share on other sites

Just some warnings but no errors and no problems with other apps... What I did is just reinstall the system I already had, and run the update. Everything else works fine.

 

Btw. I tried compiling the cvs client before this reinstall/update and still had the same problem, I was kinda hopeing it will work now but nope :(

 

Things are now worse since the official client doesn't work too so I can't play at all...

Share this post


Link to post
Share on other sites

I managed to trace the problem to file actor_scripts.c, function read_actor_defs ();.

 

When execution gets inside that function I get those errors in the console.

 

These are the calls to functions and output (I basicly put printf("name of the function"); inside each function and this is the output):

 

init_actor_defs ();
read_actor_defs ();
I/O warning : failed to load external entity "human_female.xml"
I/O warning : failed to load external entity "human_male.xml"
I/O warning : failed to load external entity "elf_female.xml"
I/O warning : failed to load external entity "elf_male.xml"
I/O warning : failed to load external entity "dwarf_female.xml"
I/O warning : failed to load external entity "dwarf_male.xml"
I/O warning : failed to load external entity "wraith.xml"
I/O warning : failed to load external entity "cyclops.xml"
I/O warning : failed to load external entity "beaver.xml"
I/O warning : failed to load external entity "rat.xml"
I/O warning : failed to load external entity "goblin_male_2.xml"
I/O warning : failed to load external entity "goblin_female_1.xml"
I/O warning : failed to load external entity "deer.xml"
I/O warning : failed to load external entity "bear_1.xml"
I/O warning : failed to load external entity "wolf.xml"
I/O warning : failed to load external entity "white_rabbit.xml"
I/O warning : failed to load external entity "brown_rabbit.xml"
I/O warning : failed to load external entity "boar.xml"
I/O warning : failed to load external entity "bear_2.xml"
I/O warning : failed to load external entity "snake_1.xml"
I/O warning : failed to load external entity "snake_2.xml"
I/O warning : failed to load external entity "snake_3.xml"
I/O warning : failed to load external entity "fox.xml"
I/O warning : failed to load external entity "puma.xml"
I/O warning : failed to load external entity "ogre_male_1.xml"
I/O warning : failed to load external entity "goblin_male_1.xml"
I/O warning : failed to load external entity "orc_male_1.xml"
I/O warning : failed to load external entity "orc_female_1.xml"
I/O warning : failed to load external entity "skeleton.xml"
I/O warning : failed to load external entity "gargoyle_1.xml"
I/O warning : failed to load external entity "gargoyle_2.xml"
I/O warning : failed to load external entity "gargoyle_3.xml"
I/O warning : failed to load external entity "troll.xml"
I/O warning : failed to load external entity "chimeran_mountain_wolf.xml"
I/O warning : failed to load external entity "gnome_female.xml"
I/O warning : failed to load external entity "gnome_male.xml"
I/O warning : failed to load external entity "orchan_female.xml"
I/O warning : failed to load external entity "orchan_male.xml"
I/O warning : failed to load external entity "draegoni_female.xml"
I/O warning : failed to load external entity "draegoni_male.xml"
I/O warning : failed to load external entity "skunk_1.xml"
I/O warning : failed to load external entity "racoon_1.xml"
I/O warning : failed to load external entity "unicorn_1.xml"
I/O warning : failed to load external entity "chimeran_desert_wolf.xml"
I/O warning : failed to load external entity "chimeran_forest_wolf.xml"
I/O warning : failed to load external entity "chimeran_arctic_wolf.xml"
I/O warning : failed to load external entity "bear_3.xml"
I/O warning : failed to load external entity "bear_4.xml"
I/O warning : failed to load external entity "panther.xml"
I/O warning : failed to load external entity "leopard.xml"
I/O warning : failed to load external entity "leopard_snow.xml"
I/O warning : failed to load external entity "feran.xml"
I/O warning : failed to load external entity "tiger.xml"
I/O warning : failed to load external entity "tiger_white.xml"
I/O warning : failed to load external entity "orc_female_1_armed.xml"
I/O warning : failed to load external entity "orc_male_1_armed.xml"
I/O warning : failed to load external entity "skeleton_armed.xml"
I/O warning : failed to load external entity "phantom_warrior.xml"
I/O warning : failed to load external entity "imp.xml"
I/O warning : failed to load external entity "brownie.xml"
I/O warning : failed to load external entity "spider_big1.xml"
I/O warning : failed to load external entity "spider_big2.xml"
I/O warning : failed to load external entity "spider_big3.xml"
I/O warning : failed to load external entity "spider_big4.xml"
I/O warning : failed to load external entity "spider_small1.xml"
I/O warning : failed to load external entity "spider_small2.xml"
I/O warning : failed to load external entity "spider_small3.xml"
I/O warning : failed to load external entity "spider_small4.xml"
I/O warning : failed to load external entity "wood_sprite.xml"
I/O warning : failed to load external entity "leprechaun.xml"
I/O warning : failed to load external entity "giant_1.xml"
I/O warning : failed to load external entity "hobgoblin.xml"
I/O warning : failed to load external entity "yeti.xml"
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();
parse_actor_defs ();

I'll try to figure out what to do next but plx helpz :(

Edited by wexy

Share this post


Link to post
Share on other sites

FIXED!

 

The solution was to comment out #data_dir in el.ini, also I think there is a bug in processing data_dir when and only when loading actor_defs because if I change data_dir to a directory without EL stuff bunch of other stuff fails too like books.xml and knowledge.xml, so basicly it works for everything else beside actor definitions :/

Share this post


Link to post
Share on other sites

FIXED!

 

The solution was to comment out #data_dir in el.ini, also I think there is a bug in processing data_dir when and only when loading actor_defs because if I change data_dir to a directory without EL stuff bunch of other stuff fails too like books.xml and knowledge.xml, so basicly it works for everything else beside actor definitions :/

Comment out as in remove the '#'? The EL configuration files (keys.ini, el.ini etc) work opposite to the majority of applications that use the # method. In EL's case, # activates the option, no hash means it is ignored.

Share this post


Link to post
Share on other sites
Comment out as in remove the '#'? The EL configuration files (keys.ini, el.ini etc) work opposite to the majority of applications that use the # method. In EL's case, # activates the option, no hash means it is ignored.
As long as it works, don't fix it.

Share this post


Link to post
Share on other sites
Comment out as in remove the '#'? The EL configuration files (keys.ini, el.ini etc) work opposite to the majority of applications that use the # method. In EL's case, # activates the option, no hash means it is ignored.
As long as it works, don't fix it.

:) Indeed, i'm just intrigued as to what Wexy meant.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×