Board index FlightGear Support Compiling

undefined reference to symbol 'dlopen@@GLIBC_2.2.5'  Topic is solved

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

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

Postby F_D2760 » Thu Jun 13, 2013 8:07 pm

Hi all,

I've opened this new topic because it's not the same as this one, but very similar.

Code: Select all
[ 96%] Built target FGAdminUI
Scanning dependencies of target fgadmin
[ 96%] Building CXX object utils/fgadmin/src/CMakeFiles/fgadmin.dir/fgadmin_funcs.cxx.o
Linking CXX executable fgadmin
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfltk.a(Fl_Preferences.o): référence au symbole non défini «dlopen@@GLIBC_2.2.5»
/usr/bin/ld: note: «dlopen@@GLIBC_2.2.5» est défini dans le DSO /lib/x86_64-linux-gnu/libdl.so.2 donc essayez de l'ajouter à la ligne de commande du lieur
/lib/x86_64-linux-gnu/libdl.so.2: could not read symbols: Opération invalide
collect2: erreur: ld a retourné 1 code d'état d'exécution
make[2]: *** [utils/fgadmin/src/fgadmin] Erreur 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Erreur 2
make: *** [all] Erreur 2
[  0%] Built target fgjs
[  0%] Built target js_demo
[  5%] Built target yasim
[ 11%] Built target yasim-proptest
[ 28%] Built target JSBSim
[ 95%] Built target fgfs
[ 96%] Built target metar
[ 96%] Built target FGAdminUI
Linking CXX executable fgadmin
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfltk.a(Fl_Preferences.o): référence au symbole non défini «dlopen@@GLIBC_2.2.5»
/usr/bin/ld: note: «dlopen@@GLIBC_2.2.5» est défini dans le DSO /lib/x86_64-linux-gnu/libdl.so.2 donc essayez de l'ajouter à la ligne de commande du lieur
/lib/x86_64-linux-gnu/libdl.so.2: could not read symbols: Opération invalide
collect2: erreur: ld a retourné 1 code d'état d'exécution
make[2]: *** [utils/fgadmin/src/fgadmin] Erreur 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Erreur 2
make: *** [all] Erreur 2


I'm very sad because I can't fly any more.

Regards.
Last edited by F_D2760 on Sat Jun 15, 2013 6:32 am, edited 1 time in total.
KUbuntu 18.04
AMD Phenom(tm) II X4 955 3200 GHz
AMD Radeon HD 5770 Series
22" + 22"
12 Go
F_D2760
 
Posts: 67
Joined: Thu May 09, 2013 12:27 pm
Location: France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 17.10

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

Postby gigirock » Fri Jun 14, 2013 8:43 pm

dear friend,

You can run flightgear with fgx or fgo as you are using download_and_compile.sh script, the error is well known but no one is interested to fix.
so use run_fgx.sh or run_fgo.sh to run fgfs .... and see you soon somewhere in the sky

:D
gigirock
 
Posts: 6
Joined: Wed Jul 18, 2012 8:31 am

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

Postby F_D2760 » Sat Jun 15, 2013 6:31 am

Hi,

Thank for your answer, I've succeeded in compiling and launching Fgo, but fgfs isn't compiled because of this error message.

I've read some threas here but haven't found or undertsood how to do to have fgfs without that fgadmin.

I'll keep on reading...

Regards
KUbuntu 18.04
AMD Phenom(tm) II X4 955 3200 GHz
AMD Radeon HD 5770 Series
22" + 22"
12 Go
F_D2760
 
Posts: 67
Joined: Thu May 09, 2013 12:27 pm
Location: France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 17.10

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

Postby abassign » Sat Jul 06, 2013 4:15 pm

With Ubuntu 13.04 amd64 I have exactly the same problem, but when I compile with Ubuntu 32-bit compilation could without problems. I do not know how to compile! :(

Code: Select all
...[ 28%] Built target JSBSim
[ 95%] Built target fgfs
[ 96%] Built target metar
[ 96%] Built target FGAdminUI
Linking CXX executable fgadmin
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libfltk.a(Fl_Preferences.o): undefined reference to symbol 'dlopen@@GLIBC_2.2.5'
/usr/bin/ld: note: 'dlopen@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/libdl.so.2 so try adding it to the linker command line
[code]/lib/x86_64-linux-gnu/libdl.so.2: could not read symbols: Operazione non valida
collect2: error: ld returned 1 exit status
make[2]: *** [utils/fgadmin/src/fgadmin] Errore 1
make[1]: *** [utils/fgadmin/src/CMakeFiles/fgadmin.dir/all] Errore 2
make: *** [all] Errore 2
To start fgfs, run the run_fgfs.sh file
To start terrasync, run the run_terrasync.sh file
To start fgrun, run the run_fgrun.sh file
To start fgcom, run the run_fgcom.sh file
To start fgcom GUI, run the run_fgcomgui.sh file
To start atlas, run the run_atlas.sh file
Usage: ./download_and_compile.sh -h
for help
abassign@abassign-Precision-M4400:~/fgfs$
abassign
 
Posts: 756
Joined: Mon Feb 27, 2012 5:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2018.3
OS: Linux Mint 19. x

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

Postby abassign » Sat Jul 06, 2013 5:07 pm

It seems to have solved the problem :) !

Reading another post http://www.flightgear.org/forums/viewtopic.php?f=45&t=19743 I noticed that the file libfltk1.3-dev does not must be installed! For this you need to run the command:
Code: Select all
sudo apt-get remove libfltk1.3-dev
.

Once that was done, the system compiles perfectly :)
If you are using to compile the spcript: download_and_compile.sh must avoid that the script loads the file. For this there are two possibilities:

1. Prevent automatic loading of dependencies, modifying the script as follows:
Code: Select all
APT_GET_UPDATE = "n"
DOWNLOAD_PACKAGES = "n"

2. Remove from the DISTRO_PACKAGES = file libfltk1.3-dev libfltk1.3 and the next parameter UBUNTU_PACKAGES = remove the file libfltk1. 3-dev libfltk1.3

However, I wish that whoever wrote this handy script, can remedy the problem ;)
abassign
 
Posts: 756
Joined: Mon Feb 27, 2012 5:09 pm
Location: Italy (living 5 Km from airport LIME)
Callsign: I-BASSY
Version: 2018.3
OS: Linux Mint 19. x

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

Postby Hooray » Sat Jul 06, 2013 5:54 pm

abassign wrote in Sat Jul 06, 2013 5:07 pm:However, I wish that whoever wrote this handy script, can remedy the problem ;)


for this, please get in touch with brisa or one of the other d&c/fgmeta maintainers (such as callahanp) and provide your feedback/patches for consideration/review.
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 11272
Joined: Tue Mar 25, 2008 8:40 am

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

Postby F_D2760 » Mon Jul 08, 2013 7:45 pm

Hi,

I'm trying at the same time... and it seems to work!

Fgfs has compiled.

Thanks a lot for that answer!

Regards.
KUbuntu 18.04
AMD Phenom(tm) II X4 955 3200 GHz
AMD Radeon HD 5770 Series
22" + 22"
12 Go
F_D2760
 
Posts: 67
Joined: Thu May 09, 2013 12:27 pm
Location: France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 17.10

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

Postby hof » Sun Jul 14, 2013 7:28 pm

This is one way to fix it, with using libfltk1.3-dev:

https://gitorious.org/~hof/fg/hof-fligh ... 415b867c0b

Patch checks if the system supports libdl and if so, adds it to the library list.

Cheers,
Hof
hof
 
Posts: 1
Joined: Sun Jul 14, 2013 7:07 pm

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

Postby F_D2760 » Mon Jul 15, 2013 5:00 am

Hi,

I'll try this patch next time... I just want to enjoy FG now!

Regards.
KUbuntu 18.04
AMD Phenom(tm) II X4 955 3200 GHz
AMD Radeon HD 5770 Series
22" + 22"
12 Go
F_D2760
 
Posts: 67
Joined: Thu May 09, 2013 12:27 pm
Location: France
Callsign: F_D2760
Version: Last one
OS: KUbuntu 17.10


Return to Compiling

Who is online

Users browsing this forum: Google [Bot] and 1 guest