Jump to content
Eternal Lands Official Forums
Beaverhunter

Current CVS errors

Recommended Posts

gamewin.c:828: error: 'struct <anonymous>' has no member named 'range_target'
gamewin.c:829: error: 'struct <anonymous>' has no member named 'range_target'

 

 

I get this when compiling with MISSILES & DEBUG. It seems something related to the recent commit by Schmurk.

 

 

 

EDIT: also the "cvs update" doesn't provide elglext.h...am i doing something wrong?

Edited by Fedora

Share this post


Link to post
Share on other sites
EDIT: also the "cvs update" doesn't provide elglext.h...am i doing something wrong?

Hmm, I can't test it myself, but the way I understand bluap's changes to the Makefile it should generate elglext.h with my perl script.

Share this post


Link to post
Share on other sites

I'm getting a very frequent crash since yesterday's changes by xaphier.

el.x86.linux.bin: io/memorybuffer.hpp:61: T eternal_lands::memory_buffer::get_memory(Uint32) const [with T = float*]: Assertion `index < size' failed.
Aborted (core dumped)

Standard build on Debian with MISSILES defined and the missiles data download. Graphics GeForce4 Ti 4200 AGP 8x using 1.0.8776 driver. I'm also getting an error in the log about a failed MD5SUM check on an update. The error about load_vertex_program has been there on one shape of another since the vertext program code was first added; I assume that one is my graphics card. Here's the error file:

[09:23:44] Using the server profile: rmain
[09:23:56] EXTENDED EXCEPTION(5:opengl_error): Error: 'line 190, column 1:  error: too many instructions
' in file 'shaders/anim.vert' in load_vertex_program at actor_init.cpp (line 122)
[09:23:58] * server www.eternal-lands.com filename http://www.eternal-lands.com/updates150/files.lst
[09:23:58] Downloading http://www.eternal-lands.com/updates150/files.lst from www.eternal-lands.com
[09:23:58] Finished downloading http://www.eternal-lands.com/updates150/files.lst
[09:23:59] * server www.eternal-lands.com filename http://www.eternal-lands.com/updates/custom_files.lst
[09:23:59] Downloading http://www.eternal-lands.com/updates/custom_files.lst from www.eternal-lands.com
[09:23:59] Finished downloading http://www.eternal-lands.com/updates/custom_files.lst
[09:24:00] Download needed for meshes/head3_orchanf.cmf
[09:24:00] @@ www.eternal-lands.com http://www.eternal-lands.com/updates/meshes/head3_orchanf.cmf
[09:24:00] Downloading http://www.eternal-lands.com/updates/meshes/head3_orchanf.cmf from www.eternal-lands.com
[09:24:00] Download of http://www.eternal-lands.com/updates/meshes/head3_orchanf.cmf does not match the MD5 sum in the update file!
[09:24:00] Finished downloading http://www.eternal-lands.com/updates/meshes/head3_orchanf.cmf

And here's a full back trace from gdb:

#0  0xb79e9f06 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0xb79eb811 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0xb79e30e0 in __assert_fail () from /lib/libc.so.6
No symbol table info available.
#3  0x0812721d in eternal_lands::memory_buffer::get_memory<float*> (
this=0x10e7a980, index=816) at io/memorybuffer.hpp:61
	__PRETTY_FUNCTION__ = "T eternal_lands::memory_buffer::get_memory(Uint32) const [with T = float*]"
#4  0x08127253 in HardwareMeshData::set_buffer_value (this=0xbfaf6bc0,
index=204, value=0) at actor_init.cpp:42
No locals.
#5  0x08123b8e in set_transformation_buffer (a=0x86b1b98, act=0x10f27690,
index=0, hmd=@0xbfaf6bc0) at actor_init.cpp:751
	translationBoneSpace = (const CalVector &) @0x10dcb6d8: {x = 0, y = 0,
 z = 0}
	rotationMatrix = (const CalMatrix &) @0x10dcb6f4: {dxdx = 0, dydx = 0,
 dzdx = 0, dxdy = 0, dydy = 0, dzdy = 0, dxdz = 0, dydz = 0, dzdz = 0}
	i = 17
	count = 25
	vectorBone = (
const std::vector<CalBone*, std::allocator<CalBone*> > &) @0x109d35d4: {<std::_Vector_base<CalBone*, std::allocator<CalBone*> >> = {
_M_impl = {<std::allocator<CalBone*>> = {<__gnu_cxx::new_allocator<CalBone*>> = {<No data fields>}, <No data fields>}, _M_start = 0x10f83d98,
  _M_finish = 0x10f83e34,
  _M_end_of_storage = 0x10f83e34}}, <No data fields>}
#6  0x08123f2c in model_attach_mesh (act=0x10f27690, mesh_id=0)
at actor_init.cpp:873
	p = {first = 0, second = {mesh_index = 0, size = 51, buffer = {
  itsCounter = 0x112185b0}}}
	im = (IntMap *) 0x1133f6c0
	a = (<anonymous struct> *) 0x86b1b98
	i = 0
	count = 1
	__PRETTY_FUNCTION__ = "void model_attach_mesh(actor*, int)"
#7  0x080646bc in add_actor_from_server (in_data=0x108a86fb "4\030\036",
len=29) at actors.c:1188
	actor_id = 6196
	buffs = 0
	x_pos = 30
---Type <return> to continue, or q <return> to quit---
	y_pos = 77
	z_pos = 0
	z_rot = 135
	max_health = 20
	cur_health = 20
	actor_type = 70
	frame = 7 '\a'
	i = 2
	dead = 0
	kind_of_actor = 51
	f_x_pos = 15
	f_y_pos = 38.5
	f_z_pos = 0
	f_z_rot = 135
	scale = 1
#8  0x080c83b1 in process_message_from_server (in_data=0x108a86f8 "\001\036",
data_length=32) at multiplayer.c:528
	text_buf = "\202Welcome to Isla Prima!\000 Lakeside Village\000es\000ax players: 6000, Logged players: 354, Pending players: 4, Available: 5646\000main website. If you would rather learn by doing, talk to the Tutorial NPC, whic"...
#9  0x080c149f in start_rendering () at main.c:155
	message = (message_t *) 0x10729c38
	event = {type = 24 '\030', active = {type = 24 '\030', gain = 38 '&',
state = 170 '�'}, key = {type = 24 '\030', which = 38 '&',
state = 170 '�', keysym = {scancode = 2 '\002', sym = 3086010412,
  mod = 2814665512, unicode = 8145}}, motion = {type = 24 '\030',
which = 38 '&', state = 170 '�', x = 2, y = 0, xrel = -14292,
yrel = -18448}, button = {type = 24 '\030', which = 38 '&',
button = 170 '�', state = 183 '�', x = 2, y = 0}, jaxis = {
type = 24 '\030', which = 38 '&', axis = 170 '�', value = 2}, jball = {
type = 24 '\030', which = 38 '&', ball = 170 '�', xrel = 2, yrel = 0},
 jhat = {type = 24 '\030', which = 38 '&', hat = 170 '�', value = 183 '�'},
 jbutton = {type = 24 '\030', which = 38 '&', button = 170 '�',
state = 183 '�'}, resize = {type = 24 '\030', w = 2, h = -1208956884},
 expose = {type = 24 '\030'}, quit = {type = 24 '\030'}, user = {
type = 24 '\030', code = 2, data1 = 0xb7f0c82c, data2 = 0xa7c46328},
 syswm = {type = 24 '\030', msg = 0x2}}
	network_thread = (SDL_Thread *) 0x10559298
	message_queue = (queue_t *) 0x1055c298
	done = 0
	network_thread_data = {0x1055c298, 0x8389c38}
#10 0x080c18d3 in main (argc=2, argv=0xbfaf9334) at main.c:307
---Type <return> to continue, or q <return> to quit---
No locals.

Share this post


Link to post
Share on other sites

I removed my old elc directory, and did the following to get the new code:

cvs -d:pserver:anonymous@cvs.elc.berlios.de:/cvsroot/elc login
cvs -z3 -d:pserver:anonymous@cvs.elc.berlios.de:/cvsroot/elc co elc

 

"make -f Makefile.linux" gives this:

 

g++ -march=i686 -Wall  -O0 -ggdb -pipe -DLINUX -DELC  -DAFK_FIX  -DALPHA_ACTORS  -DATI_9200_FIX  -DAUTO_UPDATE  -DCLICKABLE_CONTINENT_MAP  -DCLUSTER_INSIDES  -DCOUNTERS  -DCALCULATOR  -DCUSTOM_LOOK  -DCUSTOM_UPDATE  -DCXX_MISC  -DEYE_CANDY  -DFONTS_FIX  -DFUZZY_PATHS  -DIDLE_FIX  -DMASKING  -DMINES  -DMINIMAP  -DNEW_ACTOR_ANIMATION  -DNEW_ACTOR_SCALE  -DNEW_FILE_IO  -DNEW_SOUND  -DNEW_TEX  -DNOTEPAD  -DOGG_VORBIS  -DOPTIONS_I18N  -DPNG_SCREENSHOT  -DPOPUP  -DSFX  -DSIMPLE_LOD  -DUSE_INLINE  -DUSE_SEND_VIDEO_INFO  -DZLIB -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libxml2 -fno-strict-aliasing  -c -o io/elfilewrapper.o io/elfilewrapper.cpp
io/elfilewrapper.cpp: In function ‘CalCoreAnimation* eternal_lands::CalLoader_ELLoadCoreAnimation(CalLoader*, const char*)’:
io/elfilewrapper.cpp:198: error: request for member ‘get’ in ‘CalLoader::loadCoreAnimation(((CalDataSource&)(& file.eternal_lands::el_data_source::<anonymous>)), 0u)’, which is of non-class type ‘CalCoreAnimation*’
io/elfilewrapper.cpp:198: error: ‘explicitIncRef’ was not declared in this scope
io/elfilewrapper.cpp: In function ‘CalCoreMaterial* eternal_lands::CalLoader_ELLoadCoreMaterial(CalLoader*, const char*)’:
io/elfilewrapper.cpp:217: error: request for member ‘get’ in ‘CalLoader::loadCoreMaterial(((CalDataSource&)(& file.eternal_lands::el_data_source::<anonymous>)))’, which is of non-class type ‘CalCoreMaterial*’
io/elfilewrapper.cpp:217: error: ‘explicitIncRef’ was not declared in this scope
io/elfilewrapper.cpp: In function ‘CalCoreMesh* eternal_lands::CalLoader_ELLoadCoreMesh(CalLoader*, const char*)’:
io/elfilewrapper.cpp:236: error: request for member ‘get’ in ‘CalLoader::loadCoreMesh(((CalDataSource&)(& file.eternal_lands::el_data_source::<anonymous>)))’, which is of non-class type ‘CalCoreMesh*’
io/elfilewrapper.cpp:236: error: ‘explicitIncRef’ was not declared in this scope
io/elfilewrapper.cpp: In function ‘CalCoreSkeleton* eternal_lands::CalLoader_ELLoadCoreSkeleton(CalLoader*, const char*)’:
io/elfilewrapper.cpp:255: error: request for member ‘get’ in ‘CalLoader::loadCoreSkeleton(((CalDataSource&)(& file.eternal_lands::el_data_source::<anonymous>)))’, which is of non-class type ‘CalCoreSkeleton*’
io/elfilewrapper.cpp:255: error: ‘explicitIncRef’ was not declared in this scope
io/elfilewrapper.cpp: In function ‘int eternal_lands::CalCoreModel_ELLoadCoreAnimation(CalCoreModel*, const char*)’:
io/elfilewrapper.cpp:267: error: ‘CalCoreAnimationPtr’ was not declared in this scope
io/elfilewrapper.cpp:267: error: expected `;' before ‘core_animation’
io/elfilewrapper.cpp:269: error: ‘core_animation’ was not declared in this scope
io/elfilewrapper.cpp:278: error: ‘core_animation’ was not declared in this scope
io/elfilewrapper.cpp: In function ‘int eternal_lands::CalCoreModel_ELLoadCoreMaterial(CalCoreModel*, const char*)’:
io/elfilewrapper.cpp:290: error: ‘CalCoreMaterialPtr’ was not declared in this scope
io/elfilewrapper.cpp:290: error: expected `;' before ‘core_material’
io/elfilewrapper.cpp:292: error: ‘core_material’ was not declared in this scope
io/elfilewrapper.cpp:301: error: ‘core_material’ was not declared in this scope
io/elfilewrapper.cpp: In function ‘int eternal_lands::CalCoreModel_ELLoadCoreMesh(CalCoreModel*, const char*)’:
io/elfilewrapper.cpp:313: error: ‘CalCoreMeshPtr’ was not declared in this scope
io/elfilewrapper.cpp:313: error: expected `;' before ‘core_mesh’
io/elfilewrapper.cpp:315: error: ‘core_mesh’ was not declared in this scope
io/elfilewrapper.cpp:324: error: ‘core_mesh’ was not declared in this scope
io/elfilewrapper.cpp: In function ‘CalBoolean eternal_lands::CalCoreModel_ELLoadCoreSkeleton(CalCoreModel*, const char*)’:
io/elfilewrapper.cpp:336: error: ‘CalCoreSkeletonPtr’ was not declared in this scope
io/elfilewrapper.cpp:336: error: expected `;' before ‘core_skeleton’
io/elfilewrapper.cpp:338: error: ‘core_skeleton’ was not declared in this scope
io/elfilewrapper.cpp:343: error: ‘core_skeleton’ was not declared in this scope
make: *** [io/elfilewrapper.o] Error 1

Share this post


Link to post
Share on other sites
I removed my old elc directory, and did the following to get the new code:

....
io/elfilewrapper.cpp:336: error: ‘CalCoreSkeletonPtr’ was not declared in this scope
io/elfilewrapper.cpp:336: error: expected `;' before ‘core_skeleton’
io/elfilewrapper.cpp:338: error: ‘core_skeleton’ was not declared in this scope
io/elfilewrapper.cpp:343: error: ‘core_skeleton’ was not declared in this scope
make: *** [io/elfilewrapper.o] Error 1

Looks like you need to install a newer version of the cal3d libraries. On Debian this is the package libcal3d12-dev.

Share this post


Link to post
Share on other sites

When I try to install that package via aptitude, I get:

 

The following actions will resolve these dependencies:

Remove the following packages:
linux-kernel-headers

Install the following packages:
linux-libc-dev [2.6.22-6 (testing)]

Upgrade the following packages:
binutils [2.17-3 (stable, stable, now) -> 2.18.1~cvs20080103-1 (testing)]
libc6-dev [2.3.6.ds1-13etch2 (now) -> 2.7-6 (testing)]
libc6-i686 [2.3.6.ds1-13etch2 (now) -> 2.7-6 (testing)]
locales [2.3.6.ds1-13etch2 (now) -> 2.7-6 (testing)]
tzdata [2007b-1 (now) -> 2007k-2 (testing)]

Score is -560

 

I think this is because I am running Etch, not Lenny. As I don't want to resolve the dependencies in the suggested way, is there another way of installing libcal3d12-dev? Thanks.

Share this post


Link to post
Share on other sites

Oh, of course....should've thought of that myself...

 

Did that, tried to make, got this:

 

actor_scripts.o: In function `cal_actor_set_random_idle':
/home/frazierj/games/elc/actor_scripts.c:390: undefined reference to `CalMixer_RemoveAction'
actor_scripts.o: In function `cal_load_idle':
/home/frazierj/games/elc/actor_scripts.c:2429: undefined reference to `CalCoreAnimation_Scale'
actor_scripts.o: In function `cal_load_mesh':
/home/frazierj/games/elc/actor_scripts.c:2913: undefined reference to `CalCoreMesh_Scale'
actor_scripts.o: In function `cal_load_weapon_mesh':
/home/frazierj/games/elc/actor_scripts.c:2950: undefined reference to `CalCoreMesh_Scale'
actor_scripts.o: In function `parse_actor_script':
/home/frazierj/games/elc/actor_scripts.c:3156: undefined reference to `CalCoreSkeleton_Scale'
cal.o: In function `cal_actor_set_anim_delay':
/home/frazierj/games/elc/cal.c:76: undefined reference to `CalMixer_RemoveAction'
cal.o: In function `cal_load_anim':
/home/frazierj/games/elc/cal.c:237: undefined reference to `CalCoreAnimation_Scale'
collect2: ld returned 1 exit status
make: *** [el.x86.linux.bin] Error 1

 

Another missing library?

 

Thanks,

frazierj

Share this post


Link to post
Share on other sites
Another missing library?

I believe you also need the development libraries for cal3d (cal3d-dev or -devel).

See if the following works for you:

sudo apt-get install libcal3d-dev

Edited by asgnny

Share this post


Link to post
Share on other sites

Reading package lists... Done
Building dependency tree... Done
Note, selecting libcal3d11-dev instead of libcal3d-dev
libcal3d11-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 46 not upgraded.

 

I guess it's something else...thanks, though

Share this post


Link to post
Share on other sites

@frazierj: If you have correctly installed the library I gave you as link, it should work. I had the same problem on my laptop which has an older ubuntu version and I've installed this lib to fix the problem.

If you're not sure how to compile and install such a library, we can also give you some tips. If I can give you one though, it's to install it in your home directory and modifying your LD_LIBRARY_PATH environment variable as well as your make.conf.

Share this post


Link to post
Share on other sites
I think this is because I am running Etch, not Lenny. As I don't want to resolve the dependencies in the suggested way, is there another way of installing libcal3d12-dev? Thanks.

I'm using Etch too. Here's how I got libcal3d12-dev:

Download the .deb from here: http://packages.debian.org/en/lenny/libcal3d12-dev

 

Then as root unpack the package (replace i386 with your architecture):

dpkg --unpack libcal3d12-dev_0.11.0-3_i386.deb

and install via aptitude

aptitude install libcal3d12-dev

 

Works the same way for libcal3d-12 which can be found here: http://packages.debian.org/en/lenny/libcal3d12

 

I prefer this way over compiling from source as you can easily remove the package via aptitude if you don't need it anymore.

Also I didn't have any broken or unsolvable dependencies using that way.

Share this post


Link to post
Share on other sites

Being fairly familiar with the "configure, make, make install" way of doing things, I thought I installed it correctly...I tried Gampa's suggestion and got this when I did "aptitude install libcal3d12":

 

The following packages are BROKEN:
 libcal3d12
0 packages upgraded, 0 newly installed, 0 to remove and 46 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
The following packages have unmet dependencies:
 libcal3d12: Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch4 is installed.
		  Depends: libgcc1 (>= 1:4.2.1) but 1:4.1.1-21 is installed.
		  Depends: libstdc++6 (>= 4.2.1) but 4.1.1-21 is installed.
Resolving dependencies...
The following actions will resolve these dependencies:

Remove the following packages:
libcal3d12
libcal3d12-dev

Score is -10652

 

It appears that unpacking makes aptitude think they are already installed, or something like that. Anyway, did you, Gampa, run into these dependency problems? If so, how did you fix them? Thanks.

Share this post


Link to post
Share on other sites
Being fairly familiar with the "configure, make, make install" way of doing things, I thought I installed it correctly...

If you've installed it in /usr, have you removed your current cal3d package before? If not, this is maybe the problem...

Share this post


Link to post
Share on other sites

Wow, thanks! I don't know quite as much as I thought, it seems. I'm still having trouble though:

 

cal3d_wrapper.o: In function `CalCoreAnimation_GetCoreTrack':
/home/frazierj/games/elc/cal3d_wrapper.cpp:13: undefined reference to `CalCoreTrack::getCoreBoneId()'
collect2: ld returned 1 exit status
make: *** [el.x86.linux.bin] Error 1

 

(almost there, hopefully)

Share this post


Link to post
Share on other sites
It appears that unpacking makes aptitude think they are already installed, or something like that. Anyway, did you, Gampa, run into these dependency problems? If so, how did you fix them? Thanks.

Yes, I've purged the Etch libcal311 packages before I installed the new libcal3d12 packages from lenny.

On my system I have libcal3d12 in the version 0.10.0+0.11.0+rc2-1.

It appears that lenny currently holds it in the version 0.11.0-3 which might explain your dependency problems.

 

Unfortunately there are no Etch backports available for libcal3d12.

So I'm a bit clueless how to get a working .deb for Etch.

 

It seems that building from source is the way to go.

Share this post


Link to post
Share on other sites
Wow, thanks! I don't know quite as much as I thought, it seems. I'm still having trouble though:

 

cal3d_wrapper.o: In function `CalCoreAnimation_GetCoreTrack':
/home/frazierj/games/elc/cal3d_wrapper.cpp:13: undefined reference to `CalCoreTrack::getCoreBoneId()'
collect2: ld returned 1 exit status
make: *** [el.x86.linux.bin] Error 1

 

(almost there, hopefully)

Have you done a 'make -f Makefile.linux clean' before compiling it again? It's the only thing I can see that would cause the problem because now it should work fine... :)

Share this post


Link to post
Share on other sites

That did it! Thank you so much, I'm really excited about the features in the cvs version. Now to see if the binary runs. Man, I need to learn more about compiling from source...

 

EDIT:

hmm...tried to run the binary:

./el.x86.linux.bin: error while loading shared libraries: libcal3d.so.12: cannot open shared object file: No such file or directory

Edited by frazierj

Share this post


Link to post
Share on other sites
That did it! Thank you so much, I'm really excited about the features in the cvs version. Now to see if the binary runs. Man, I need to learn more about compiling from source...

 

EDIT:

hmm...tried to run the binary:

./el.x86.linux.bin: error while loading shared libraries: libcal3d.so.12: cannot open shared object file: No such file or directory

That sounds to me like the libcal3d12 (not libcal3d12-dev) is not being picked up right. Hopefully you can figure out how to remove and retry installing those libraries.

Share this post


Link to post
Share on other sites

Ok, I did 'locate libcal' and saw libcal3d.so.12 in the /usr/local/lib directory...a symbolic link to /usr/lib now lets the binary run. It's a bit of a hack, but I don't know the "correct" way to fix it, and it works. Time to enjoy the new client. Thanks to everyone for their help. I'll post back if I have yet more problems...

Share this post


Link to post
Share on other sites

select.cpp uses glClientActiveTextureARB instead of ELglClientActiveTextureARB which breaks compiling on windows.

 

3>.\select.cpp(172) : error C3861: 'glClientActiveTextureARB': identifier not found

3>.\select.cpp(178) : error C3861: 'glClientActiveTextureARB': identifier not found

3>.\select.cpp(185) : error C3861: 'glClientActiveTextureARB': identifier not found

3>.\select.cpp(303) : error C3861: 'glClientActiveTextureARB': identifier not found

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×