I'm trying to build Spring 0.80.5.2 on Fedora 12 (gcc 4.4.2) and I get this failure at the linking stage :
Code:
CMakeFiles/spring.dir/Game/SelectMenu.cpp.o: In function `SelectMenu::Update()': /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/Game/SelectMenu.cpp:212: undefined reference to `Connection::Poll()' CMakeFiles/spring.dir/System/UpdaterWindow.cpp.o: In function `UpdaterWindow': /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.cpp:14: undefined reference to `Connection::Connection()' /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.cpp:26: undefined reference to `Connection::Connect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.cpp:27: undefined reference to `Connection::~Connection()' /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.cpp:14: undefined reference to `Connection::Connection()' /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.cpp:26: undefined reference to `Connection::Connect(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)' /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.cpp:27: undefined reference to `Connection::~Connection()' CMakeFiles/spring.dir/System/UpdaterWindow.cpp.o: In function `~UpdaterWindow': /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.h:16: undefined reference to `Connection::~Connection()' /home/pkg/fedora/pkgs/spring/F-12/spring_0.80.5.2/rts/System/UpdaterWindow.h:16: undefined reference to `Connection::~Connection()'
git has some tools that can help you there. for example, if you think you know which file could contian the fix, you can search for commits that changed this file with gitk. an other thing to use is git bisect (you'll find info about it online or in the man page). sorry if you already knew
Actually, it's not fixed in git master. It's rather hard to say, but I think it comes from one of my compilation options. I tried running make without "-j4" but it's not that either.
add_library(<name> [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] source1 source2 ... source) If no type is given explicitly the type is STATIC or SHARED based on whether the current value of the variable BUILD_SHARED_LIBS is true.
how did that flag get in there??
guess we should make all types explicit though. i will do that. thanks for finding!
edit: made all add_library() calls in our CMake build files explicit (there was only this one for lib-lobby that was not).
:D was really no work for me; you did it. i also added the commit to the 0.80.5-branch, which can be compiled to play online (contains some more fixes then the current tarball on top of 0.80.5.2).
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum