MoustafaChamli Posted September 24, 2014 Share Posted September 24, 2014 Ever since the most recent update, I've been getting the following error when compiling my game: /usr/bin/ld: /home/steam/Leadwerks/Library/Linux/Release/Leadwerks.a(loadlib.o)||undefined reference to symbol 'dlclose@@GLIBC_2.2.5'| This happens both with the Steam and standalone versions of Leadwerks. I imagine this has something to do with binutils being at 2.24 in Ubuntu 14.10 $dpkg -l binutils ii binutils 2.24-5ubuntu amd64 GNU assembler, linker and binary Link to comment Share on other sites More sharing options...
codeape Posted September 24, 2014 Share Posted September 24, 2014 I had that too after my upgrade. You need to add dl To "Project -> Build options -> Linker settings -> Link Libraries" on both Debug and Release. 1 Link to comment Share on other sites More sharing options...
Guppy Posted September 24, 2014 Share Posted September 24, 2014 It also needs to be higher up on the list than leadwerks System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
MoustafaChamli Posted September 24, 2014 Author Share Posted September 24, 2014 That did the trick! Thanks! Link to comment Share on other sites More sharing options...
Kev0055 Posted October 5, 2014 Share Posted October 5, 2014 Added dl in Link Libraries, but still getting undefined reference on dlclose@@GLIBC_2.2.5. System: Ubuntu 14.04 LTS 64-bit. Link to comment Share on other sites More sharing options...
Crazycarpet Posted October 6, 2014 Share Posted October 6, 2014 Added dl in Link Libraries, but still getting undefined reference on dlclose@@GLIBC_2.2.5. System: Ubuntu 14.04 LTS 64-bit. Did you ensure it was higher on the list than Leadwerks like Guppy said? This should be the only reason for this. Link to comment Share on other sites More sharing options...
Kev0055 Posted October 6, 2014 Share Posted October 6, 2014 Yeap, I moved it to the top of the list for Debug and Release versions. Link to comment Share on other sites More sharing options...
danieru Posted November 11, 2014 Share Posted November 11, 2014 I'm having the same persisting problem on ubuntu 14.04 64-bits. Link to comment Share on other sites More sharing options...
Josh Posted November 19, 2014 Share Posted November 19, 2014 If I do not add "dl" it works fine. If I add "dl" and it is above Leadwerks.lib I get the error the OP described. If I add "dl" and it is below Leadwerks.lib it works fine. 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
danieru Posted November 20, 2014 Share Posted November 20, 2014 (edited) If I add "dl" and it is below Leadwerks.lib it works fine. If I do that I get this errors, but don't know if it's related or should start a new thread. -------------- Build: Debug in testing (compiler: GNU GCC Compiler)---------------g++ -o ../../testing.debug ../../Source/App.o ../../Source/main.o ""/home/bran/Leadwerks"/Library/Linux/Debug/Leadwerks.a" -ldl -lopenal -lGL -lGLU -lpthread -lX11 ""/home/bran/Leadwerks"/Library/Linux/libluajit.a"/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::Initialize()':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:68: undefined reference to `SteamAPI_Init'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:72: undefined reference to `SteamClient'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:73: undefined reference to `SteamUser'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:75: undefined reference to `SteamUtils'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:76: undefined reference to `SteamApps'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:77: undefined reference to `SteamFriends'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:78: undefined reference to `SteamUserStats'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:79: undefined reference to `SteamScreenshots'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:80: undefined reference to `SteamRemoteStorage'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:81: undefined reference to `SteamController'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::Shutdown()':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:407: undefined reference to `SteamAPI_Shutdown'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::PublishFile(std::string, std::string, std::string, std::string const&, std::vector&, int, int (*)(float), int, int)':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:582: undefined reference to `SteamAPI_RunCallbacks'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:597: undefined reference to `SteamAPI_RunCallbacks'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::InitializeController()':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:717: undefined reference to `SteamController'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::UpdateController()':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:729: undefined reference to `SteamController'/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:732: undefined reference to `SteamController'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::TriggerHapticPulse(int, int, int)':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:791: undefined reference to `SteamController'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::GetUserPublishedWorkshopFiles(std::vector&, EWorkshopEnumerationType, unsigned int, unsigned int, std::vector, std::vector)':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:965: undefined reference to `SteamAPI_RunCallbacks'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::GetAllWorkshopPackages(std::vector&, EWorkshopEnumerationType, unsigned int, unsigned int, std::vector, std::vector)':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:1051: undefined reference to `SteamAPI_RunCallbacks'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::GetUserWorkshopFiles(unsigned int)':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:1094: undefined reference to `SteamAPI_RunCallbacks'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::GetSubscribedWorkshopPackages(std::vector&, unsigned int)':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:1126: undefined reference to `SteamAPI_RunCallbacks'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `Leadwerks::Steamworks::GetFileInfo(unsigned long long, RemoteStorageGetPublishedFileDetailsResult_t&)':/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:1165: undefined reference to `SteamAPI_RunCallbacks'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o):/home/josh/Leadwerks/Engine/Source/Classes/Steamworks.cpp:1217: more undefined references to `SteamAPI_RunCallbacks' follow/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageFileShareResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStoragePublishFileResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateUserPublishedFilesResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateWorkshopFilesResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageEnumerateUserSubscribedFilesResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageGetPublishedFileDetailsResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageDownloadUGCResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageDeletePublishedFileResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageUpdatePublishedFileResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageUnsubscribePublishedFileResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Set(unsigned long long, Leadwerks::Steamworks*, void (Leadwerks::Steamworks::*)(RemoteStorageSubscribePublishedFileResult_t*, bool))':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:193: undefined reference to `SteamAPI_UnregisterCallResult'/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:200: undefined reference to `SteamAPI_RegisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Cancel()':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:212: undefined reference to `SteamAPI_UnregisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Cancel()':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:212: undefined reference to `SteamAPI_UnregisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Cancel()':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:212: undefined reference to `SteamAPI_UnregisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Cancel()':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:212: undefined reference to `SteamAPI_UnregisterCallResult'/home/bran/Leadwerks/Library/Linux/Debug/Leadwerks.a(Steamworks.o): In function `CCallResult::Cancel()':/home/josh/Leadwerks/Engine/Source/Classes/../Libraries/steamworks/public/steam/steam_api.h:212: undefined reference to `SteamAPI_UnregisterCallResult'Process terminated with status 1 (0 minute(s), 3 second(s))50 error(s), 0 warning(s) (0 minute(s), 3 second(s)) Edited November 20, 2014 by danieru Link to comment Share on other sites More sharing options...
Josh Posted November 20, 2014 Share Posted November 20, 2014 Did that work for you too? My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
danieru Posted November 20, 2014 Share Posted November 20, 2014 Did that work for you too? It removes " undefined reference to symbol 'dlclose@@GLIBC_2.2.5' ", but still can't compile because of more errors. I have Leadwerks standalone and don't have the Steam client installed BTW. Link to comment Share on other sites More sharing options...
Josh Posted November 20, 2014 Share Posted November 20, 2014 That is something we should fix. You are a bit behind. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Guppy Posted November 20, 2014 Share Posted November 20, 2014 If I do not add "dl" it works fine. If I add "dl" and it is above Leadwerks.lib I get the error the OP described. If I add "dl" and it is below Leadwerks.lib it works fine. yep I had to move just dl below Leadwerks some time ago, not sure what triggered that change System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
danieru Posted November 20, 2014 Share Posted November 20, 2014 I have an idea, I'll reinstall ubuntu to record a video showing how I have install Leadwerks. The problem should be there. Link to comment Share on other sites More sharing options...
Josh Posted November 20, 2014 Share Posted November 20, 2014 I just uploaded a fix on the beta branch. I will assume this fixes it unless someone tells me otherwise, since I can't produce the problem. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted December 9, 2017 Share Posted December 9, 2017 Experienced this in Ubuntu 16.04 when building the engine... My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted December 11, 2017 Share Posted December 11, 2017 You have to add -ldl in the linker options. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts