EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20212022  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Cannot build StreamDevice on Windows 64bit
From: "Lehmeyer, Johannes via Tech-talk" <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Thu, 9 Sep 2021 10:23:59 +0000

Dear Tech-Talk,

 

I am trying to set up a usual EPICS build with support modules on my Windows 10 64bit machine. I am using MSYS2 as an environment. All other modules were installed without any problem (asyn, calc, …).

The error that appears is below. Has somebody encountered it before?

 

Best regards,

Johannes

 

 

C:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:113:15: error: conflicting declaration of 'int strncasecmp(const char*, const char*, size_t)' with 'C' linkage

  113 |   int __cdecl strncasecmp (const char *, const char *, size_t);

      |               ^~~~~~~~~~~

../ChecksumConverter.cc:50:12: note: previous declaration with 'C++' linkage

   50 | static int strncasecmp(const char *s1, const char *s2, size_t n)

      |            ^~~~~~~~~~~

In file included from ../StreamBuffer.h:26,

                 from ../StreamFormatConverter.h:27,

                 from ../ChecksumConverter.cc:58:

C:/msys64/mingw64/x86_64-w64-mingw32/include/string.h:116:28: error: redefinition of 'int strncasecmp(const char*, const char*, size_t)'

  116 |   __CRT_INLINE int __cdecl strncasecmp (const char *__sz1, const char *__sz2, size_t __sizeMaxCompare) { return _strnicmp (__sz1, __sz2, __sizeMaxCompare); }

      |                            ^~~~~~~~~~~

../ChecksumConverter.cc:50:12: note: 'int strncasecmp(const char*, const char*, size_t)' previously defined here

   50 | static int strncasecmp(const char *s1, const char *s2, size_t n)

      |            ^~~~~~~~~~~

make[2]: *** [/home/od93yces/base-R7.0.4.1/configure/RULES_BUILD:245: ChecksumConverter.obj] Error 1

make[2]: Leaving directory '/home/od93yces/epics-support/StreamDevice/src/O.windows-x64-mingw'

make[1]: *** [/home/od93yces/base-R7.0.4.1/configure/RULES_ARCHS:58: install.windows-x64-mingw] Error 2

make[1]: Leaving directory '/home/od93yces/epics-support/StreamDevice/src'

make: *** [/home/od93yces/base-R7.0.4.1/configure/RULES_DIRS:85: src.install] Error 2


Replies:
Re: Cannot build StreamDevice on Windows 64bit Ralph Lange via Tech-talk

Navigate by Date:
Prev: Re: Motor record support for Prevac SMCD14 stepper motor controller Ovsyannikov, Ruslan via Tech-talk
Next: Re: Cannot build StreamDevice on Windows 64bit Ralph Lange via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Motor record support for Prevac SMCD14 stepper motor controller Ovsyannikov, Ruslan via Tech-talk
Next: Re: Cannot build StreamDevice on Windows 64bit Ralph Lange via Tech-talk
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  <20212022  2023  2024 
ANJ, 09 Sep 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·