1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | EPICS on windows10 Debian Shell |
From: | Alfio Rizzo via Tech-talk <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Tue, 1 Oct 2019 15:55:13 +0000 |
Hi, I guess I understood what was the issue with the binding socket I had. (see my previous message “Error binding socket”) I have installed a WSL Linux (Debian) Shell app on Windows10
to try to see if I can avoid to install a Linux VM on my laptop. So actually I succeeded to compiled EPICS and run it, with the native Debian GNU Linux compiler ( 8.3.0). As it should be, the OS macro is defined as __linux__ not as _WIN32, since the compiler is NOT MinGW or CYGWIN, but GNU as I said before. So, then it comes issue I had was this UDP socket biding issue, since binding is still handled a la Windows. So the problem is in the source file blockingUDPTransport.cpp
where the macro _WIN32 is not used consistently in my case. I tested to commented/uncommented the relevant code by the macro and indeed It works as expected (no more bind socket error) However I would like to know the opinion of the code developers (Marty Kraimer?) and also if it would be possible to modify this file in a way
to include the option to use Windows way to handle UDP socket even if is a GNU compiler (some ad-hoc env variable?) Thanks Alfio PhD Alfio Rizzo Control System Integrator Integrated Control Systems Division European Spallation Source ERIC Telephone: +46(0)721792342 Mail Address: P.O Box 176, SE 221 00 Lund, Sweden Visiting address: Odarslövsvägen 113, Lund https://europeanspallationsource.se/ |