Bug Tracker item #3514124, was opened at 2012-04-02 05:18 Message generated for change (Comment added) made by hramrach You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3514124&group_id=254363
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Windows version Group: trunk Status: Open Resolution: None Priority: 5 Private: No Submitted By: Michal Suchanek (hramrach) Assigned to: Peter Åstrand (astrand) Summary: trunk mingw build fails - invalid linker script? Initial Comment: Hello, can't build tigervnc trunk: cmake version 2.8.7 i686-w64-mingw32-g++ (GCC) 4.6.2 Linking CXX shared library wm_hooks.dll cd /scratch/tigerbin/win/winvnc && /usr/bin/cmake -E cmake_link_script CMakeFiles/wm_hooks.dir/link.txt --verbose=no /usr/bin/i686-w64-mingw32-ld: /scratch/tigervnc/trunk/win/wm_hooks/wm_hooks.def:4: syntax error /usr/bin/i686-w64-mingw32-ld:/scratch/tigervnc/trunk/win/wm_hooks/wm_hooks.def: file format not recognized; treating as linker script /usr/bin/i686-w64-mingw32-ld:/scratch/tigervnc/trunk/win/wm_hooks/wm_hooks.def:1: syntax error collect2: ld returned 1 exit status ---------------------------------------------------------------------- >Comment By: Michal Suchanek (hramrach) Date: 2012-04-25 11:01 Message: yes, this one works on Linux ---------------------------------------------------------------------- Comment By: Pierre Ossman (ossman_) Date: 2012-04-25 07:55 Message: Sorry. Wasn't paying attention properly. The def file was used to define a shared segment. But that method is for MSVC, not gcc. I've used the gcc way on trunk now, removing the def file. Could you guys give it a try? ---------------------------------------------------------------------- Comment By: Michal Suchanek (hramrach) Date: 2012-04-25 07:49 Message: I am building on Debian. Removing the def file in autoconf works: Index: trunk/win/winvnc/CMakeLists.txt =================================================================== --- trunk/win/winvnc/CMakeLists.txt (revision 4891) +++ trunk/win/winvnc/CMakeLists.txt (working copy) @@ -2,7 +2,6 @@ add_library(wm_hooks SHARED ../wm_hooks/wm_hooks.cxx - ../wm_hooks/wm_hooks.def ../wm_hooks/wm_hooks.rc) # We want the DLL to be named wm_hooks.dll rather than libwm_hooks.dll btw you can see from the description that I am running an unix shell. ---------------------------------------------------------------------- Comment By: Pierre Ossman (ossman_) Date: 2012-04-25 07:39 Message: Michal, are you also on Windows? I'm not seeing this issue with mingw on Linux. Looks like the def file is ignored here. Will have to investigate... ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2012-04-17 14:19 Message: Am too facing this issue: Linking CXX shared library wm_hooks.dll e:/developmenttools/buildtools/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe: ..\wm_hooks\wm_hooks.def:4: syntax error Command I used for cmake : "E:\DevelopmentTools\BuildTools\CMake 2.8\bin\cmake.exe" -G "MinGW Makefiles" -DJPEG_INCLUDE_DIR=E:\DevelopmentTools\Library\libjpeg-turbo\include -DJPEG_LIBRARY=E:\DevelopmentTools\Library\libjpeg-turbo\lib\jpeg.lib e:/developmenttools/buildtools/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe:..\wm_hooks\wm_hooks.def: file format not recognized; treating as linker script e:/developmenttools/buildtools/mingw/bin/../lib/gcc/mingw32/4.6.1/../../../../mingw32/bin/ld.exe:..\wm_hooks\wm_hooks.def:1: syntax error collect2: ld returned 1 exit status mingw32-make[2]: *** [win/winvnc/wm_hooks.dll] Error 1 mingw32-make[1]: *** [win/winvnc/CMakeFiles/wm_hooks.dir/all] Error 2 mingw32-make: *** [all] Error 2 . ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1126848&aid=3514124&group_id=254363 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Tigervnc-devel mailing list Tigervnc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tigervnc-devel