Page 1 of 1

gl_init.cpp:(.text+0x2ea7): undefined reference to ` SOLVED

Posted: Sat Apr 24, 2010 11:34 pm
by eracc
I did get past ./configure at least. But now ...

Code: Select all

gl_init.cpp:(.text+0x2ea7): undefined reference to `winsys_init'
collect2: ld returned 1 exit status
make[1]: *** [vegastrike] Error 1
make[1]: Leaving directory `/home/gene/VegaStrike/vegastrike'
make: *** [all] Error 2
Well, this stinks. So how do I fix this one folks?

Re: gl_init.cpp:(.text+0x2ea7): undefined reference to `winsys_i

Posted: Sun Apr 25, 2010 3:57 am
by klauss
Do you have SDL and SDL-devel packages?

Long ago SDL was optional, but I'm not sure the other "windowing systems" (other than win32) are being maintained. So configure would simply say "no sdl found" and happily continue, thinking VS can be built without SDL.

Just a blind shot in the dark.

Re: gl_init.cpp:(.text+0x2ea7): undefined reference to `winsys_i

Posted: Sun Apr 25, 2010 4:24 am
by chuck_starchaser
grepping for winsys_init, I got,

Code: Select all

./src/gldrv/winsys.cpp:274:void winsys_init( int *argc, char **argv, char const *window_title, char const *icon_title )
./src/gldrv/winsys.cpp:716:void winsys_init( int *argc, char **argv, char *window_title, char *icon_title )
Now, the first definition is conditional on HAVE_SDL, whatever, but the second is in the #else block of the condition.
Seems to me we should have a winsys_init() no matter; but the second differs in the constness of the last two pointers.
Don't ask me what's my point; no idea :D

Re: gl_init.cpp:(.text+0x2ea7): undefined reference to `winsys_i

Posted: Sun Apr 25, 2010 5:59 am
by eracc
klauss wrote:Do you have SDL and SDL-devel packages?

Long ago SDL was optional, but I'm not sure the other "windowing systems" (other than win32) are being maintained. So configure would simply say "no sdl found" and happily continue, thinking VS can be built without SDL.

Just a blind shot in the dark.
That is probably it. I will have to try again next weekend after I add the SDL libraries.

Re: gl_init.cpp:(.text+0x2ea7): undefined reference to `winsys_i

Posted: Tue May 04, 2010 12:00 am
by eracc
eracc wrote:
klauss wrote:Do you have SDL and SDL-devel packages?

Long ago SDL was optional, but I'm not sure the other "windowing systems" (other than win32) are being maintained. So configure would simply say "no sdl found" and happily continue, thinking VS can be built without SDL.

Just a blind shot in the dark.
That is probably it. I will have to try again next weekend after I add the SDL libraries.
That was the problem. I needed the SDL libraries. I now have a compiled and working checkout release. Nice! :)