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

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

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

Post 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?
You do not have the required permissions to view the files attached to this post.
Last edited by eracc on Mon May 03, 2010 11:59 pm, edited 1 time in total.
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

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

Post 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.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
chuck_starchaser
Elite
Elite
Posts: 8014
Joined: Fri Sep 05, 2003 4:03 am
Location: Montreal
Contact:

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

Post 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
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

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

Post 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.
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
eracc
Bounty Hunter
Bounty Hunter
Posts: 167
Joined: Mon Nov 28, 2005 8:24 pm
Location: TN, USA
Contact:

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

Post 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! :)
http://www.eracc.com/ - Linux, Unix, eComStation (Get rid of proprietary Microsoft and Apple!)
Custom Built, Preloaded PCs, Workstations and Servers - Business, Home and Gamer systems
My custom built Linux Gamer/Personal/Business box: Mageia Linux on - ASUS M4A78, 4GB RAM (Linux "sees" 3.2 GB with a 32-bit kernel), AMD Phenom Quad-core @ 2.6GHz, Radeon X1650 Pro PCIe, "sda" 250GB WD2500AAKS-0, "sdb" 150GB WD1500ADFD-0 (Raptor), "sdc" 150GB WD1500ADFD-0 (Raptor), "sdd" 500GB ST3500418AS, "xfs" file system on all but the / partition which is using "ext4".
Post Reply