Board index FlightGear Support Compiling

undefined reference to symbol 'dlopen@@GLIBC_2.1'

Building FlightGear from source, and in the need for help?

Re: undefined reference to symbol 'dlopen@@GLIBC_2.1'

Postby callahanp » Wed May 22, 2013 2:36 am

withdrawn comment
Last edited by callahanp on Thu May 23, 2013 2:25 am, edited 1 time in total.
callahanp
 
Posts: 11
Joined: Sat May 11, 2013 2:40 am
Callsign: pac1

Re: undefined reference to symbol 'dlopen@@GLIBC_2.1'

Postby callahanp » Wed May 22, 2013 2:37 am

it needs to be tested on Ubuntu 13.04 and 12.10
and any other distro you care to use.
callahanp
 
Posts: 11
Joined: Sat May 11, 2013 2:40 am
Callsign: pac1

Re: undefined reference to symbol 'dlopen@@GLIBC_2.1'

Postby callahanp » Wed May 22, 2013 2:49 am

Stay tuned. I'm installing 13.04 in a virtual box to do more testing.
callahanp
 
Posts: 11
Joined: Sat May 11, 2013 2:40 am
Callsign: pac1

Re: undefined reference to symbol 'dlopen@@GLIBC_2.1'

Postby lvomvo » Tue Jun 11, 2013 6:01 pm

In my case (Debian wheezy) I was successful running "download_and_compile.sh ALL", after editing the CMakeLists.txt of the failing project (utils/fgadmin/src/CMakeLists.txt). I added ${CMAKE_DL_LIBS} to the target_link_libraries. Saving the file is not enough if running the script, because it will overwrite every time from your local git repo. You need to "git commit -a" so that the change is persisted to the repo -- subsequent runs of the script with "-u" to update, will succeed (showing that your local repo is 1 commit ahead of the remote). If there is a maintainer reading this thread, maybe it is a good idea to apply a patch like the following:

Code: Select all
diff --git a/utils/fgadmin/src/CMakeLists.txt b/utils/fgadmin/src/CMakeLists.txt
index 42b95d7..5409751 100644
--- a/utils/fgadmin/src/CMakeLists.txt
+++ b/utils/fgadmin/src/CMakeLists.txt
@@ -13,6 +13,7 @@ target_link_libraries(fgadmin FGAdminUI
        ${FLTK_LIBRARIES}
        ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}
        ${ZLIB_LIBRARY}
+       ${CMAKE_DL_LIBS}
 )
 
 install(TARGETS fgadmin RUNTIME DESTINATION bin)


so that more debian wheezy users can easily build and enjoy fgfs :)
lvomvo
 
Posts: 1
Joined: Tue Jun 11, 2013 5:28 pm

Previous

Return to Compiling

Who is online

Users browsing this forum: No registered users and 1 guest