Build Errors

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
timothyb89
New user
Posts: 3
Joined: 08 Jun 2008, 07:57

Build Errors

Post by timothyb89 »

I just checked out the latest SVN (r5232), and everything configures correctly. However, when I run make, I get:

Code: Select all

c -o frame.o frame.c
In file included from frame.c:37:
input.h:40: error: ‘SDLK_1’ undeclared here (not in a function)
input.h:41: error: ‘SDLK_2’ undeclared here (not in a function)
input.h:42: error: ‘SDLK_3’ undeclared here (not in a function)
input.h:43: error: ‘SDLK_4’ undeclared here (not in a function)
input.h:44: error: ‘SDLK_5’ undeclared here (not in a function)
input.h:45: error: ‘SDLK_6’ undeclared here (not in a function)
input.h:46: error: ‘SDLK_7’ undeclared here (not in a function)
input.h:47: error: ‘SDLK_8’ undeclared here (not in a function)
input.h:48: error: ‘SDLK_9’ undeclared here (not in a function)
input.h:49: error: ‘SDLK_0’ undeclared here (not in a function)
input.h:51: error: ‘SDLK_EQUALS’ undeclared here (not in a function)
input.h:64: error: ‘SDLK_LEFTBRACKET’ undeclared here (not in a function)
input.h:65: error: ‘SDLK_RIGHTBRACKET’ undeclared here (not in a function)
input.h:77: error: ‘SDLK_SEMICOLON’ undeclared here (not in a function)
input.h:81: error: ‘SDLK_BACKSLASH’ undeclared here (not in a function)
input.h:89: error: ‘SDLK_COMMA’ undeclared here (not in a function)
input.h:90: error: ‘SDLK_PERIOD’ undeclared here (not in a function)
input.h:91: error: ‘SDLK_SLASH’ undeclared here (not in a function)
make[4]: *** [frame.o] Error 1
Note: I also get the same error with the beta

This seems like an SDL error, but I've tried reinstalling SDL with no effect. I'm using SDL 1.2.13-1, from http://libsdl.org (official RPM) and I've tried building SDL on my own and using different RPMs to no effect. Am I looking for a different package, or is there another problem?

-Thanks
User avatar
skellr
Trained
Trained
Posts: 72
Joined: 17 Aug 2007, 15:58

Re: Build Errors

Post by skellr »

Hi,
I think you'll need SDL-devel also. And SDL_net.

If there is something else, you will find out soon enough. :)
timothyb89
New user
Posts: 3
Joined: 08 Jun 2008, 07:57

Re: Build Errors

Post by timothyb89 »

I reinstalled SDL_net and checked for all of the *-devel packages, and still no good :|

Looking at input.h, I noticed that only 18 of around 100 keys are giving this error. Maybe the game is assuming that an older SDL is being used, and they have since changes the name of the variables?
I'll try hacking the input file with hardcoded keycodes and see if I get anywhere.

-Thanks!
EvilGuru
Regular
Regular
Posts: 615
Joined: 23 Jun 2007, 22:41

Re: Build Errors

Post by EvilGuru »

It would appear as if your version of SDL is either dodgy or corrupt.

Code: Select all

fluorine Warzone # emerge -pv libsdl

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/libsdl-1.2.13  USE="X alsa opengl xinerama xv -aalib -arts -custom-cflags -dga -directfb -esd -fbcon -ggi -libcaca -nas -noaudio -nojoystick -novideo -oss -pulseaudio (-svga)" 0 kB 
Followed by

Code: Select all

fluorine Warzone # cat /usr/include/SDL/SDL_keysym.h | grep SDLK_EQUALS
        SDLK_EQUALS             = 61,
Same SDL version, except mine has those definitions.

Regards, Freddie.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Build Errors

Post by DevUrandom »

timothyb89 wrote:I just checked out the latest SVN (r5232), and everything configures correctly. However, when I run make, I get:

Code: Select all

c -o frame.o frame.c
In file included from frame.c:37:
input.h:40: error: ‘SDLK_1’ undeclared here (not in a function)
input.h:41: error: ‘SDLK_2’ undeclared here (not in a function)
input.h:42: error: ‘SDLK_3’ undeclared here (not in a function)
input.h:43: error: ‘SDLK_4’ undeclared here (not in a function)
input.h:44: error: ‘SDLK_5’ undeclared here (not in a function)
input.h:45: error: ‘SDLK_6’ undeclared here (not in a function)
input.h:46: error: ‘SDLK_7’ undeclared here (not in a function)
input.h:47: error: ‘SDLK_8’ undeclared here (not in a function)
input.h:48: error: ‘SDLK_9’ undeclared here (not in a function)
input.h:49: error: ‘SDLK_0’ undeclared here (not in a function)
input.h:51: error: ‘SDLK_EQUALS’ undeclared here (not in a function)
input.h:64: error: ‘SDLK_LEFTBRACKET’ undeclared here (not in a function)
input.h:65: error: ‘SDLK_RIGHTBRACKET’ undeclared here (not in a function)
input.h:77: error: ‘SDLK_SEMICOLON’ undeclared here (not in a function)
input.h:81: error: ‘SDLK_BACKSLASH’ undeclared here (not in a function)
input.h:89: error: ‘SDLK_COMMA’ undeclared here (not in a function)
input.h:90: error: ‘SDLK_PERIOD’ undeclared here (not in a function)
input.h:91: error: ‘SDLK_SLASH’ undeclared here (not in a function)
make[4]: *** [frame.o] Error 1
Is that the full output?
Since with all those SDL keys undeclared, I would assume it could not find SDL_keysym.h
timothyb89
New user
Posts: 3
Joined: 08 Jun 2008, 07:57

Re: Build Errors

Post by timothyb89 »

On second thought, it looks like the problem (whatever it may be) is due to a bad SDL install. Somehow I'm trying to compile with an incomplete SDL library, while the actual install is complete. I'll try to completely purge my system of SDL and reinstall, so hopefully that will clear things up

Thanks for the help!