FreeBSD issues

FreeBSD issues

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
AMDmi3
Posts: 1
Joined: 16 Jan 2009, 03:12

FreeBSD issues

Post by AMDmi3 »

I'm maintainer of FreeBSD port of Spring, and I'm trying to update it to 0.78.1.1 and make all features work. However, I've ran into some issues.

First, what game is best to test spring on? For now, I've tried CA-stable-3330, but it only says `cannot load wav file'. Next, I've tried Kernel Panic 3.1 (which worked pretty well before), but now it says (I use Commanders script for testing purposes) `Unable to load a commander for side: arm'.

I guess it has something to do with the absense of the other player, so I've tried an AI, but no AI will work:

Code: Select all

/libexec/ld-elf.so.1: .../share/spring/AI/Bot-libs/libAAI.so: Undefined symbol "_ZN9IGlobalAID2Ev"
/libexec/ld-elf.so.1: .../share/spring/AI/Bot-libs/libKAIK-0.13.so: Undefined symbol "_ZN9IGlobalAID2Ev"
I guess that has something to do with link flags and symbol visibility.

For now I guess that's the most important issue to fix - does anyone have any ideas?

Another question is about mods&licenses - while Spring is indeed GPL, mod community is something that I don't like because there never are any proper tarballs released - you have to dig trac's, wikis, forums to get files without any version in the name. So I wonder if it's OK to package files myself and/or mirror maps from http://spring.jobjol.nl.
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: FreeBSD issues

Post by MidKnight »

AMDmi3 wrote:I'm maintainer of FreeBSD port of Spring, and I'm trying to update it to 0.78.1.1 and make all features work. However, I've ran into some issues.

First, what game is best to test spring on? For now, I've tried CA-stable-3330, but it only says `cannot load wav file'.
Try the CA test release
Next, I've tried Kernel Panic 3.1 (which worked pretty well before), but now it says (I use Commanders script for testing purposes) `Unable to load a commander for side: arm'.
Kernel panic has no arm commander. try the AI that's bundles with the mod
I guess it has something to do with the absense of the other player, so I've tried an AI, but no AI will work:

Code: Select all

/libexec/ld-elf.so.1: .../share/spring/AI/Bot-libs/libAAI.so: Undefined symbol "_ZN9IGlobalAID2Ev"
/libexec/ld-elf.so.1: .../share/spring/AI/Bot-libs/libKAIK-0.13.so: Undefined symbol "_ZN9IGlobalAID2Ev"
New versions of spring need new AI libs, idk much about this, ask somebody else :?
I guess that has something to do with link flags and symbol visibility.

For now I guess that's the most important issue to fix - does anyone have any ideas?

Another question is about mods&licenses - while Spring is indeed GPL, mod community is something that I don't like because there never are any proper tarballs released - you have to dig trac's, wikis, forums to get files without any version in the name. So I wonder if it's OK to package files myself and/or mirror maps from http://spring.jobjol.nl.
why do you need tarballs? Spring uses zips and 7zs. CA gets it's updates via subversion and is usually updated many times a day, so you can't mirror that off jobjol (other mods/maps are ok tho afaik, just make sure you get JJ's permission :-) ). There is a python script for downloading it, and you could also do it in most terminals with make and svn, just check out http://caspring.org for instructions

good luck! :-)
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: FreeBSD issues

Post by zwzsg »

AMDmi3 wrote:Next, I've tried Kernel Panic 3.1 (which worked pretty well before), but now it says (I use Commanders script for testing purposes) `Unable to load a commander for side: arm'.
This has been fixed with Spring 7.8.2.1 However, Kernel Panic is to be played either online or against the mod-included LuaAI. The AI dll (well, I guess they aren't dll in Linux, so let's say, the AI library programmed in C++ that are in \AI\Bot-libs\) needs to have been compiled for the same version as Spring, and cannot play unTAish mods such as KP. Would be nice if one of these days I could get someone to write something similar to my Kernel_Panic_Launcher.exe in Linux (which aims to simplify single player), and to explain me how to properly package KP for Linux, and especially how to update or make aware of updates.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: FreeBSD issues

Post by Auswaschbar »

What version of gcc are you using? Distrowatch shows FreeBSD still uses some 3.* gcc. This may explain the AI error, because AIs use some "-fvisibility"-flags, which aren't supported on older gccs iirc. Additionally, using non-4.*-gcc may give you sync errors.

The missing wav file may be caused by missing ota-content.

For the maps and mods, there is no version of spring distributed with maps or mods, neither on windows nor on linux, because springlobby autodownloads them once joining a game.
Post Reply

Return to “Linux”