unitsync exports no symbols

unitsync exports no symbols

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

Moderator: Moderators

Post Reply
bob.appleyard
Posts: 1
Joined: 20 Dec 2007, 20:46

unitsync exports no symbols

Post by bob.appleyard »

Ok, none of the lobbies work. I can connect to servers (with errors), but I can't join any games, because no mods or maps are detected.

I checked out the output of SpringLobby, and found this beauty:

Code: Select all

19:16:17: LoadUnitSyncLib (  )
19:16:17: Loading from: /usr/local/lib/spring/unitsync.so
19:16:17: Couldn't load GetArchivePath from unitsync library
19:16:17: Couldn't load GetMapChecksumFromName from unitsync library
19:16:17: Couldn't load GetPrimaryModShortName from unitsync library
19:16:17: Couldn't load GetPrimaryModVersion from unitsync library
19:16:17: Couldn't load GetPrimaryModMutator from unitsync library
19:16:17: Couldn't load GetPrimaryModGame from unitsync library
19:16:17: Couldn't load GetPrimaryModShortGame from unitsync library
19:16:17: Couldn't load GetPrimaryModDescription from unitsync library
19:16:17: Couldn't load GetPrimaryModChecksumFromName from unitsync library
19:16:17: Couldn't load GetLuaAICount from unitsync library
19:16:17: Couldn't load GetLuaAIName from unitsync library
19:16:17: Couldn't load GetLuaAIDesc from unitsync library
19:16:17: Couldn't load GetMapOptionCount from unitsync library
19:16:17: Couldn't load GetModOptionCount from unitsync library
19:16:17: Couldn't load GetOptionKey from unitsync library
19:16:17: Couldn't load GetOptionName from unitsync library
19:16:17: Couldn't load GetOptionDesc from unitsync library
19:16:17: Couldn't load GetOptionType from unitsync library
19:16:17: Couldn't load GetOptionBoolDef from unitsync library
19:16:17: Couldn't load GetOptionNumberDef from unitsync library
19:16:17: Couldn't load GetOptionNumberMin from unitsync library
19:16:17: Couldn't load GetOptionNumberMax from unitsync library
19:16:17: Couldn't load GetOptionNumberStep from unitsync library
19:16:17: Couldn't load GetOptionStringDef from unitsync library
... and so on ...
Hmm, very odd. Maybe something wrong with the loading process?

Code: Select all

]$ nm /usr/local/lib/spring/unitsync.so 
nm: /usr/local/lib/spring/unitsync.so: no symbols
Uh, what??!?!?

The shared object isn't exporting any of its functions and whatnot!!!

I'm on Fedora 8, I built the chap from source.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Post by BrainDamage »

can you upload the full springlobby output in a pastebin? ( http://pastebin.ca )

some of the functions are available only in the svn, i wanna check if maybe the lobby still detects some
fuecy
Posts: 4
Joined: 22 Dec 2007, 23:31

Re: unitsync exports no symbols

Post by fuecy »

I think i have the same problem.

My trace is on http://pastebin.ca/829107
I cant find it. I did not upgrade or change something it just quit working. I uninstall all packages (also the spring-data) and remove the ~/.spring and ~/.springlobby and reinstall. Download the mods and maps again. Same problem.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: unitsync exports no symbols

Post by BrainDamage »

the ubuntu springlobby package is broken, if you know how to build from sources use this tarball

http://graasmilk.net/spring/springlobby ... ed.tar.bz2

otherwise wait for yokozar to update it
fuecy
Posts: 4
Joined: 22 Dec 2007, 23:31

Re: unitsync exports no symbols

Post by fuecy »

Thanks for the quick reply.
fuecy
Posts: 4
Joined: 22 Dec 2007, 23:31

Re: unitsync exports no symbols

Post by fuecy »

noop source doesnot compile

Code: Select all

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.3... yes (version 2.8.4)
checking for wxWidgets static library... no
checking for svnversion... svnversion
checking if we can enable extra features that need wxWidgets-2.8... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

Code: Select all

make  all-am
make[1]: Map '/home/*****/_dump/springlobby-0.0.0728-fixed' wordt binnengegaan
g++ -DHAVE_CONFIG_H -I.  -I/usr/lib/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0  -Wall -Wno-strict-aliasing -g -O2 -MT springunitsynclib.o -MD -MP -MF .deps/springunitsynclib.Tpo -c -o springunitsynclib.o `test -f 'src/springunitsynclib.cpp' || echo './'`src/springunitsynclib.cpp
src/springunitsynclib.cpp: In member function ├óÔé¼╦£wxImage SpringUnitSyncLib::GetMinimap(const wxString&)├óÔé¼Ôäó:
src/springunitsynclib.cpp:328: fout: return type ├óÔé¼╦£struct wxImage├óÔé¼Ôäó is incomplete
src/springunitsynclib.cpp:358: fout: invalid use of undefined type ├óÔé¼╦£struct wxImage├óÔé¼Ôäó
src/iunitsync.h:7: fout: forward declaration of ├óÔé¼╦£struct wxImage├óÔé¼Ôäó
make[1]: *** [springunitsynclib.o] Fout 1
make[1]: Map '/home/*****/_dump/springlobby-0.0.0728-fixed' wordt verlaten
make: *** [all] Fout 2
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: unitsync exports no symbols

Post by BrainDamage »

make sure you installed the package

Code: Select all

wxgtk2.8-dev
fuecy
Posts: 4
Joined: 22 Dec 2007, 23:31

Re: unitsync exports no symbols

Post by fuecy »

ty it works now :mrgreen:

should the ./configure not check that?
semi
Posts: 69
Joined: 30 Mar 2007, 20:42

Re: unitsync exports no symbols

Post by semi »

./configure should definitely check that.

But if you just upgraded your wx, then configure is not rerun automatically, you must configure again and then make.

If the most latest source still fails to build, even if your configure succeeds, please let us know. That would indeed be a bug in either source or build system.
Post Reply

Return to “Linux”