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? Regards, Adam
Index: CMakeLists.txt =================================================================== --- CMakeLists.txt (revision 4671) +++ CMakeLists.txt (working copy) @@ -315,6 +315,9 @@ if(APPLE) set(FLTK_LIBRARIES "-framework Carbon -framework Cocoa -framework ApplicationServices") endif() + if(NOT WIN32) + set(FLTK_LIBRARIES "-ldl") + endif() message(STATUS "Using included FLTK library") endif()
------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1
_______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel