Placid Report post Posted April 10, 2005 Got the latest source for Linux last night, and received these errors when I 'make -f Makefile.linux release' : username@murtagh:~/elc> make -f Makefile.linux cc -march=i686 -Wall -Werror -O -ggdb -pipe -DLINUX -DELC -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml2 -c -o gamewin.o gamewin.c gamewin.c: In function `keypress_root_common': gamewin.c:754: error: `K_QBCLEAN1' undeclared (first use in this function) gamewin.c:754: error: (Each undeclared identifier is reported only once gamewin.c:754: error: for each function it appears in.) gamewin.c:758: error: `K_QBCLEAN2' undeclared (first use in this function) gamewin.c:762: error: `K_QBCLEAN3' undeclared (first use in this function) gamewin.c:766: error: `K_QBCLEAN4' undeclared (first use in this function) gamewin.c:770: error: `K_QBCLEAN5' undeclared (first use in this function) gamewin.c:774: error: `K_QBCLEAN6' undeclared (first use in this function) gamewin.c:778: error: `K_QBCLEAN0' undeclared (first use in this function) make: *** [gamewin.o] Error 1 Am I missing libraries? I know that Piper didnt have problems, so I assume its me. Can anyone help? Share this post Link to post Share on other sites
crusadingknight Report post Posted April 10, 2005 (edited) gamewin.c: In function `keypress_root_common': gamewin.c:754: error: `K_QBCLEAN1' undeclared (first use in this function) gamewin.c:754: error: (Each undeclared identifier is reported only once gamewin.c:754: error: for each function it appears in.) gamewin.c:758: error: `K_QBCLEAN2' undeclared (first use in this function) gamewin.c:762: error: `K_QBCLEAN3' undeclared (first use in this function) gamewin.c:766: error: `K_QBCLEAN4' undeclared (first use in this function) gamewin.c:770: error: `K_QBCLEAN5' undeclared (first use in this function) gamewin.c:774: error: `K_QBCLEAN6' undeclared (first use in this function) gamewin.c:778: error: `K_QBCLEAN0' undeclared (first use in this function) ROFL! Looks like someone used #define ITEM QBCLEAN somewhere... now why would you do that? Edited April 10, 2005 by crusadingknight Share this post Link to post Share on other sites
Grum Report post Posted April 11, 2005 Am I missing libraries? I know that Piper didnt have problems, so I assume its me. Can anyone help? Nope, your problem is not with the client code. Someone changed something and I don't know what. Share this post Link to post Share on other sites
Placid Report post Posted April 11, 2005 Am I missing libraries? I know that Piper didnt have problems, so I assume its me. Can anyone help? Nope, your problem is not with the client code. Someone changed something and I don't know what. I wonder who that was?.... Can I not comment that define, or can someone email me their gamewin.c in the meantime? I'd like to compile and patch it asap. PM me for my Email Many thanks Share this post Link to post Share on other sites
Malaclypse Report post Posted April 11, 2005 (edited) Strange Did yourself changed the code in keys.[hc] before? I don't have any occurence of QBCLEAN throughout the sources and it compiles fine, both using the default target as well as using the release target. What does a cvs st keys.[hc] say? Ups, sorry, Placid has posted his last post at the same time as I was posting this thread. Edited April 11, 2005 by Malaclypse Share this post Link to post Share on other sites
Placid Report post Posted April 11, 2005 Strange Did yourself changed the code in keys.[hc] before? I don't have any occurence of QBCLEAN throughout the sources and it compiles fine, both using the default target as well as using the release target. What does a cvs st keys.[hc] say? I havent changed any of the code. This was a straight CVS download. I commented out a line in the Makefile (which wouldn't hinder the compilation; it was happening before I did that). I havent change anything else; which is why i've posted here, as I thought the cause would be me Mala, are you able to email me your gamewin.[c,o]? Share this post Link to post Share on other sites
crusadingknight Report post Posted April 11, 2005 I commented out a line in the Makefile (which wouldn't hinder the compilation; it was happening before I did that). I havent change anything else; which is why i've posted here, as I thought the cause would be me Mala, are you able to email me your gamewin.[c,o]? Uh.... if you just cvs up'd, it's probably in one of your include files, which it seems probable you may have accidentally editted. Share this post Link to post Share on other sites
Placid Report post Posted April 11, 2005 I commented out a line in the Makefile (which wouldn't hinder the compilation; it was happening before I did that). I havent change anything else; which is why i've posted here, as I thought the cause would be me Mala, are you able to email me your gamewin.[c,o]? Uh.... if you just cvs up'd, it's probably in one of your include files, which it seems probable you may have accidentally editted. Im doubtful of that, I only changed the linux Makefile Im now getting the following error(s): username@murtagh:~/elc> make -f Makefile.linux release echo 2d_objects.o 3d_objects.o actor_scripts.o actors.o asc.o books.o buddy.o cache.o chat.o colors.o console.o consolewin.o cursors.o dialogues.o draw_scene.o elconfig.o elwindows.o encyclopedia.o errors.o events.o filter.o font.o frustum.o gamewin.o gl_init.o hud.o help.o ignore.o init.o interface.o items.o keys.o knowledge.o lights.o loginwin.o main.o manufacture.o map_io.o mapwin.o md2loader.o md5.o misc.o multiplayer.o new_actors.o new_character.o notepad.o openingwin.o options.o particles.o paste.o pathfinder.o pm_log.o qb.o questlog.o reflection.o rules.o sector.o shadows.o sound.o spells.o stats.otabs.o text.o textures.o tile_map.o timers.o translate.o trade.o weather.o widgets.o | sed 's/\.o/.c/g' | xargs gcc -march=i686 -Wall -Werror -O -ggdb -pipe -DLINUX -DELC -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml2 -MM >.depend make -f Makefile.linux 'CFLAGS=-march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml2' make[1]: Entering directory `/home/alex/elc' cc -march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml2 -c -o gamewin.o gamewin.c gamewin.c: In function `keypress_root_common': gamewin.c:914: error: `qb_action_mode' undeclared (first use in this function) gamewin.c:914: error: (Each undeclared identifier is reported only once gamewin.c:914: error: for each function it appears in.) make[1]: *** [gamewin.o] Error 1 make[1]: Leaving directory `/home/alex/elc' make: *** [release] Error 2 This was after Piper sent me his gamewin.* files Share this post Link to post Share on other sites
Wytter Report post Posted April 11, 2005 rm * cvs up Share this post Link to post Share on other sites
Grum Report post Posted April 11, 2005 rm *cvs up Yes, that's the easiest way to solve it. Share this post Link to post Share on other sites
Placid Report post Posted April 11, 2005 rm *cvs up I wish you were wrong It worked, thanks for your help guys. Share this post Link to post Share on other sites
Wytter Report post Posted April 11, 2005 Use the shell, Placid - Use the shell! Share this post Link to post Share on other sites
Grum Report post Posted April 11, 2005 Use the shell, Placid - Use the shell! Yeah. grep add_particle *.[ch] | cut -d: -f1 | uniq | xargs nedit Share this post Link to post Share on other sites
Leeloo Report post Posted April 11, 2005 Yeah. grep add_particle *.[ch] | cut -d: -f1 | uniq | xargs nedit Did you try that? ARAIR it won't work. nedit will inherit it's stdin from xargs, which has a pipe as stdin, not the keyboard, so you will not be able to edit the file. Share this post Link to post Share on other sites
Placid Report post Posted April 11, 2005 Use the shell, Placid - Use the shell! Mack! I'm always in a shell! Bash is my life.... Share this post Link to post Share on other sites
Grum Report post Posted April 11, 2005 Yeah. grep add_particle *.[ch] | cut -d: -f1 | uniq | xargs nedit Did you try that? ARAIR it won't work. nedit will inherit it's stdin from xargs, which has a pipe as stdin, not the keyboard, so you will not be able to edit the file. I didn't before you asked. I did now, and it works wih nedit 5.5, which opens the files in separate tabs. Share this post Link to post Share on other sites
Placid Report post Posted April 13, 2005 Ack! Sorry, but am I the only one getting errors in sound.c when compiling? Seems to crash real bad when I 'make -f Makefile.linux release'. Someone, pleeeease help meh Share this post Link to post Share on other sites
Grum Report post Posted April 13, 2005 Yes, you're the only one. Now that's clear, what's the error message? Share this post Link to post Share on other sites
Placid Report post Posted April 13, 2005 Yes, you're the only one. Now that's clear, what's the error message? 152791[/snapback] LOL Err, i'll get the output and post it here in a bit (im at work). Share this post Link to post Share on other sites
Placid Report post Posted April 13, 2005 OK, here's my output: username@murtagh:~/elc> make -f Makefile.linux release make -f Makefile.linux 'CFLAGS=-march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml2' make[1]: Entering directory `/home/alex/elc' cc -march=i686 -O3 -fomit-frame-pointer -ffast-math -pipe -DLINUX -DELC -I/usr/include/SDL -D_REENTRANT -I/usr/include/libxml2 -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -L/usr/lib -lxml2 -lz -lpthread -lm -lSDL_net -lopenal -L/usr/X11R6/lib -lGL -lvorbis -lvorbisfile -o el.x86.linux.bin 2d_objects.o 3d_objects.o actor_scripts.o actors.o asc.o books.o buddy.o cache.o chat.o colors.o console.o consolewin.o cursors.o dialogues.o draw_scene.o elconfig.o elwindows.o encyclopedia.o errors.o events.o filter.o font.o frustum.o gamewin.o gl_init.o hud.o help.o ignore.o init.o interface.o items.o keys.o knowledge.olights.o loginwin.o main.o manufacture.o map_io.o mapwin.o md2loader.o md5.o misc.o multiplayer.o new_actors.o new_character.o notepad.o openingwin.o options.o particles.o paste.o pathfinder.o pm_log.o questlog.o reflection.o rules.o sector.o shadows.o sound.o spells.o stats.o tabs.o text.o textures.o tile_map.o timers.o translate.o trade.o weather.o widgets.o sound.o(.text+0x12a): In function `realloc_sources': : undefined reference to `alGetSourcei' sound.o(.text+0x149): In function `realloc_sources': : undefined reference to `alDeleteSources' sound.o(.text+0x1a9): In function `realloc_sources': : undefined reference to `alGetError' sound.o(.text+0x1ca): In function `realloc_sources': : undefined reference to `alGetString' sound.o(.text+0x29e): In function `remove_sound_object': : undefined reference to `alSourceStop' sound.o(.text+0x2ae): In function `remove_sound_object': : undefined reference to `alDeleteSources' sound.o(.text+0x35f): In function `destroy_sound': : undefined reference to `alSourceStop' sound.o(.text+0x374): In function `destroy_sound': : undefined reference to `alDeleteSources' sound.o(.text+0x386): In function `destroy_sound': : undefined reference to `alDeleteBuffers' sound.o(.text+0x3a9): In function `destroy_sound': : undefined reference to `alSourceStopv' sound.o(.text+0x3c0): In function `destroy_sound': : undefined reference to `alDeleteSources' sound.o(.text+0x3da): In function `destroy_sound': : undefined reference to `alIsBuffer' sound.o(.text+0x3ee): In function `destroy_sound': : undefined reference to `alDeleteBuffers' sound.o(.text+0x48f): In function `init_sound': : undefined reference to `alutInit' sound.o(.text+0x49e): In function `init_sound': : undefined reference to `alGetError' sound.o(.text+0x58f): In function `init_sound': : undefined reference to `alListenerfv' sound.o(.text+0x5a4): In function `init_sound': : undefined reference to `alListenerfv' sound.o(.text+0x5b4): In function `init_sound': : undefined reference to `alListenerfv' sound.o(.text+0x5c4): In function `init_sound': : undefined reference to `alListenerf' sound.o(.text+0x62a): In function `init_sound': : undefined reference to `alGenBuffers' sound.o(.text+0x63f): In function `init_sound': : undefined reference to `alGenSources' sound.o(.text+0x662): In function `init_sound': : undefined reference to `alSource3f' sound.o(.text+0x685): In function `init_sound': : undefined reference to `alSource3f' sound.o(.text+0x6a8): In function `init_sound': : undefined reference to `alSource3f' sound.o(.text+0x6c8): In function `init_sound': : undefined reference to `alSourcef' sound.o(.text+0x6de): In function `init_sound': : undefined reference to `alSourcei' sound.o(.text+0x6fa): In function `init_sound': : undefined reference to `alSourcef' sound.o(.text+0x712): In function `init_sound': : undefined reference to `alGetString' sound.o(.text+0x7b6): In function `turn_music_on': : undefined reference to `alGetSourcei' sound.o(.text+0x7ce): In function `turn_music_on': : undefined reference to `alSourcePlay' sound.o(.text+0x803): In function `turn_music_off': : undefined reference to `alSourcePause' sound.o(.text+0x885): In function `turn_sound_on': : undefined reference to `alGetSourcei' sound.o(.text+0x89e): In function `turn_sound_on': : undefined reference to `alSourcePlay' sound.o(.text+0x91b): In function `turn_sound_off': : undefined reference to `alSourceStop' sound.o(.text+0x940): In function `turn_sound_off': : undefined reference to `alGetSourcei' sound.o(.text+0x956): In function `turn_sound_off': : undefined reference to `alSourcePause' sound.o(.text+0x9d4): In function `kill_local_sounds': : undefined reference to `alSourceStopv' sound.o(.text+0x9d9): In function `kill_local_sounds': : undefined reference to `alGetError' sound.o(.text+0xa23): In function `kill_local_sounds': : undefined reference to `alSourceStop' sound.o(.text+0xa42): In function `kill_local_sounds': : undefined reference to `alGetSourcei' sound.o(.text+0xa5d): In function `kill_local_sounds': : undefined reference to `alGetSourcei' sound.o(.text+0xa9b): In function `kill_local_sounds': : undefined reference to `alSourceUnqueueBuffers' sound.o(.text+0xab3): In function `kill_local_sounds': : undefined reference to `alGetString' sound.o(.text+0xc29): In function `stream_music': : undefined reference to `alBufferData' sound.o(.text+0xc2e): In function `stream_music': : undefined reference to `alGetError' sound.o(.text+0xc3e): In function `stream_music': : undefined reference to `alGetString' sound.o(.text+0xd85): In function `update_position': : undefined reference to `alListenerfv' sound.o(.text+0xdbf): In function `update_position': : undefined reference to `alGetSourcei' sound.o(.text+0xde6): In function `update_position': : undefined reference to `alGetSourcei' sound.o(.text+0xe09): In function `update_position': : undefined reference to `alGetSourcefv' sound.o(.text+0xeb0): In function `update_position': : undefined reference to `alSourcePlay' sound.o(.text+0xec1): In function `update_position': : undefined reference to `alGetError' sound.o(.text+0xeed): In function `update_position': : undefined reference to `alSourcePause' sound.o(.text+0xefa): In function `update_position': : undefined reference to `alGetString' sound.o(.text+0xf6a): In function `get_loaded_buffer': : undefined reference to `alIsBuffer' sound.o(.text+0xf95): In function `get_loaded_buffer': : undefined reference to `alGenBuffers' sound.o(.text+0xf9a): In function `get_loaded_buffer': : undefined reference to `alGetError' sound.o(.text+0x1001): In function `get_loaded_buffer': : undefined reference to `alutLoadWAVFile' sound.o(.text+0x1030): In function `get_loaded_buffer': : undefined reference to `alBufferData' sound.o(.text+0x1054): In function `get_loaded_buffer': : undefined reference to `alutUnloadWAV' sound.o(.text+0x1066): In function `get_loaded_buffer': : undefined reference to `alGetString' sound.o(.text+0x1256): In function `add_sound_object': : undefined reference to `alGenSources' sound.o(.text+0x125b): In function `add_sound_object': : undefined reference to `alGetError' sound.o(.text+0x1267): In function `add_sound_object': : undefined reference to `alGetString' sound.o(.text+0x12f7): In function `add_sound_object': : undefined reference to `alSourcef' sound.o(.text+0x1319): In function `add_sound_object': : undefined reference to `alSourcef' sound.o(.text+0x133c): In function `add_sound_object': : undefined reference to `alSourcei' sound.o(.text+0x135f): In function `add_sound_object': : undefined reference to `alSourcefv' sound.o(.text+0x137b): In function `add_sound_object': : undefined reference to `alSourcefv' sound.o(.text+0x13ab): In function `add_sound_object': : undefined reference to `alSourcei' sound.o(.text+0x13db): In function `add_sound_object': : undefined reference to `alSourcei' sound.o(.text+0x13ea): In function `add_sound_object': : undefined reference to `alSourcePlay' sound.o(.text+0x141e): In function `add_sound_object': : undefined reference to `alSourcePause' sound.o(.text+0x1461): In function `add_sound_object': : undefined reference to `alSourcei' sound.o(.text+0x147d): In function `add_sound_object': : undefined reference to `alSourcef' sound.o(.text+0x149e): In function `add_sound_object': : undefined reference to `alSourcef' sound.o(.text+0x14c1): In function `add_sound_object': : undefined reference to `alSourcei' sound.o(.text+0x14de): In function `add_sound_object': : undefined reference to `alSourcePlay' sound.o(.text+0x160c): In function `play_ogg_file': : undefined reference to `alSourceStop' sound.o(.text+0x162b): In function `play_ogg_file': : undefined reference to `alGetSourcei' sound.o(.text+0x1667): In function `play_ogg_file': : undefined reference to `alSourceUnqueueBuffers' sound.o(.text+0x175a): In function `play_ogg_file': : undefined reference to `alSourceQueueBuffers' sound.o(.text+0x1768): In function `play_ogg_file': : undefined reference to `alSourcePlay' sound.o(.text+0x176d): In function `play_ogg_file': : undefined reference to `alGetError' sound.o(.text+0x17e5): In function `play_ogg_file': : undefined reference to `alGetString' sound.o(.text+0x197d): In function `play_music': : undefined reference to `alSourcef' sound.o(.text+0x1bfc): In function `update_music': : undefined reference to `alSourcef' sound.o(.text+0x1d13): In function `update_music': : undefined reference to `alSourcef' sound.o(.text+0x1dc1): In function `update_music': : undefined reference to `alGetSourcei' sound.o(.text+0x1ddc): In function `update_music': : undefined reference to `alGetSourcei' sound.o(.text+0x1e24): In function `update_music': : undefined reference to `alSourceStop' sound.o(.text+0x1e44): In function `update_music': : undefined reference to `alGetSourcei' sound.o(.text+0x1e5a): In function `update_music': : undefined reference to `alGetSourcei' sound.o(.text+0x1e97): In function `update_music': : undefined reference to `alSourceUnqueueBuffers' sound.o(.text+0x1ee1): In function `update_music': : undefined reference to `alSourceUnqueueBuffers' sound.o(.text+0x1f0a): In function `update_music': : undefined reference to `alSourceQueueBuffers' sound.o(.text+0x1f5d): In function `update_music': : undefined reference to `alSourcePlay' sound.o(.text+0x1f62): In function `update_music': : undefined reference to `alGetError' sound.o(.text+0x1f72): In function `update_music': : undefined reference to `alGetString' sound.o(.text+0x2019): In function `update_music': : undefined reference to `alSourcePause' sound.o(.text+0x30d): In function `stop_sound': : undefined reference to `alSourceStop' sound.o(.text+0x401): In function `destroy_sound': : undefined reference to `alutExit' collect2: ld returned 1 exit status make[1]: *** [el.x86.linux.bin] Error 1 make[1]: Leaving directory `/home/alex/elc' make: *** [release] Error 2 Am I being stupid? Share this post Link to post Share on other sites
Grum Report post Posted April 13, 2005 Am I being stupid? Not particularly, but somehow it manages to not complain about a missing openal library. It looks like you have an empty libopenal.a or libopenal.so somewhere. Share this post Link to post Share on other sites
Malaclypse Report post Posted April 13, 2005 What openal version do you use? I have openal-20040817 here and it compiles fine. Share this post Link to post Share on other sites
Placid Report post Posted April 14, 2005 What openal version do you use? I have openal-20040817 here and it compiles fine. 152849[/snapback] I've installed the latest OpenAL RPM (yeah, I know), and before I did the cvs up yesterday (or the day before), it wasnt complaining about sound.c. I'll see whether I need to check some ENV variables (anyone know what the client would expect?). Share this post Link to post Share on other sites
Leeloo Report post Posted April 14, 2005 (edited) I didn't before you asked. I did now, and it works wih nedit 5.5, which opens the files in separate tabs. Tabs? Oh, nedit is a graphical editor? Then it doesn't use stdin That's why it works. It wouldn't work with vi or other tty editor (unless the author played tricks with reopening /dev/tty). Am I being stupid? Looks like you're missing OpenAL Edited April 14, 2005 by Leeloo Share this post Link to post Share on other sites
Placid Report post Posted April 14, 2005 Tabs? Oh, nedit is a graphical editor? Then it doesn't use stdin That's why it works. It wouldn't work with vi or other tty editor (unless the author played tricks with reopening /dev/tty).Looks like you're missing OpenAL 152989[/snapback] As I said in my previous post, I dont think I am: murtagh:/home/alex/elc # rpm -q openal openal-20040902-2.2 Could make be looking for these libraries in the wrong place? Is there any env vars I need to specify? [EDIT] Thanks to Grum, problem solved. I had a bad symlink for libopenal.so in /usr/lib/. Thanks for your help guys. Share this post Link to post Share on other sites