Jump to content

undefined reference to symbol 'dlclose@@GLIBC_2.2.5'|


Recommended Posts

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

  • 2 weeks later...
  • 1 month later...
  • 2 weeks later...

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.

  • Upvote 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

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 by danieru
Link to comment
Share on other sites

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

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

  • 3 years later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...