I am trying to compile HDF5 on Cygwin.
I downloaded Cygwin produced openwin(40) binaries (3.1.5).
I got a message the compiler(v ?) used to compile openwin was different than on
my Cygwin box(gcc v 9.3.0).
I then tried to recompile openwin 4.0.3 and 3.3.6 on Cygwin.
Both times, I get the messages as shown below. It might be simple to resolve
this first issue by editing the code. Is there something simple that I am
missing for a configuration option? Is there a recommended Cygwin build
process? Should I try to use the original binaries by getting the same GNU
comiper?
Thanks
./configure --enable-static --prefix=/home/rudy/openmpi
….
Make all install
…
/usr/include/w32api/winsock2.h:1037:47: error: conflicting types for
‘getprotobynumber’
1037 | WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobynumber(int
number);
| ^~~~~~~~~~~~~~~~
In file included from
/home/rudy/TEMP/openmpi-3.1.6/opal/mca/event/libevent2022/libevent/include/event2/util.h:67,
from
/home/rudy/TEMP/openmpi-3.1.6/opal/mca/event/libevent2022/libevent/evutil.h:37,
from ../../opal/mca/event/libevent2022/libevent/event.h:57,
from ../../opal/mca/event/libevent2022/libevent2022.h:58,
from ../../opal/mca/event/event.h:77,
from ../../opal/mca/pmix/pmix.h:24,
from proc.c:22:
/usr/include/netdb.h:237:18: note: previous declaration of ‘getprotobynumber’
was here
237 | struct protoent *getprotobynumber (int);
| ^~~~~~~~~~~~~~~~
In file included from ../../opal/mca/event/libevent2022/libevent/event.h:63,
from ../../opal/mca/event/libevent2022/libevent2022.h:58,
from ../../opal/mca/event/event.h:77,
from ../../opal/mca/pmix/pmix.h:24,
from proc.c:22:
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10