On 09/14/2011 07:10 PM, DRC wrote:
> On 9/14/11 9:45 AM, Adam Tkac wrote:
>> Hello all,
>>
>> I tried to compile new viewer (from trunk) and use bundled fltk but I
>> got following error:
>>
>> /usr/bin/ld: ../common/fltk/src/libfltk_static.a(Fl_Preferences.cxx.o):
>> undefined reference to symbol 'dlopen@@GLIBC_2.2.5'
>> /usr/bin/ld: note: 'dlopen@@GLIBC_2.2.5' is defined in DSO
>> /lib64/libdl.so.2 so try adding it to the linker command line
>> /lib64/libdl.so.2: could not read symbols: Invalid operation
>> collect2: ld returned 1 exit status
>> make[2]: *** [vncviewer/vncviewer] Error 1
>> make[1]: *** [vncviewer/CMakeFiles/vncviewer.dir/all] Error 2
>> make: *** [all] Error 2
>>
>> Linker in new distributions doesn't allow "indirect linking" i.e. if
>> some symbol, dlopen in this case, is needed by binary then library which
>> contains the symbol must be passed as -llibrary linker argument.
>>
>> Attached patch just adds the -ldl, I don't think we need extra checking
>> for it in CMakeLists because it is core part of all systems, do we?
> There isn't a way to remove the portion of the code containing dlopen()
> without making potential synchronizations with upstream FLTK more
> difficult, so the lesser of the two evils is linking with libdl, in my
> opinion.  I committed your patch.
>
Yeah, removal of the dlopen didn't seem easy enough for me as well. 
Thanks for committing the patch!

Regards, Adam

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to