ornladios/ADIOS2

error: use of undeclared identifier 'AF_INET'

Opened this issue · 1 comments

Describe the bug

/usr/ports/misc/adios2/work/ADIOS2-2.10.0/source/adios2/toolkit/transport/file/FileHTTP.cpp:73:30: error: use of undeclared identifier 'AF_INET'
   73 |     sockaddr_in.sin_family = AF_INET;
      |                              ^
/usr/ports/misc/adios2/work/ADIOS2-2.10.0/source/adios2/toolkit/transport/file/FileHTTP.cpp:198:37: error: use of undeclared identifier 'AF_INET'
  198 |     m_socketFileDescriptor = socket(AF_INET, SOCK_STREAM, m_p_proto);
      |                                     ^
/usr/ports/misc/adios2/work/ADIOS2-2.10.0/source/adios2/toolkit/transport/file/FileHTTP.cpp:198:46: error: use of undeclared identifier 'SOCK_STREAM'
  198 |     m_socketFileDescriptor = socket(AF_INET, SOCK_STREAM, m_p_proto);
      |                                              ^
/usr/ports/misc/adios2/work/ADIOS2-2.10.0/source/adios2/toolkit/transport/file/FileHTTP.cpp:205:9: error: use of undeclared identifier 'connect'
  205 |     if (connect(m_socketFileDescriptor, (struct sockaddr *)&sockaddr_in, sizeof(sockaddr_in)) == -1)
      |         ^
/usr/ports/misc/adios2/work/ADIOS2-2.10.0/source/adios2/toolkit/transport/file/FileHTTP.cpp:260:37: error: use of undeclared identifier 'AF_INET'
  260 |     m_socketFileDescriptor = socket(AF_INET, SOCK_STREAM, m_p_proto);
      |                                     ^
/usr/ports/misc/adios2/work/ADIOS2-2.10.0/source/adios2/toolkit/transport/file/FileHTTP.cpp:260:46: error: use of undeclared identifier 'SOCK_STREAM'
  260 |     m_socketFileDescriptor = socket(AF_INET, SOCK_STREAM, m_p_proto);
      |                                              ^
/usr/ports/misc/adios2/work/ADIOS2-2.10.0/source/adios2/toolkit/transport/file/FileHTTP.cpp:267:9: error: use of undeclared identifier 'connect'
  267 |     if (connect(m_socketFileDescriptor, (struct sockaddr *)&sockaddr_in, sizeof(sockaddr_in)) == -1)
      |         ^
7 errors generated.
*** [source/adios2/CMakeFiles/adios2_core.dir/toolkit/transport/file/FileHTTP.cpp.o] Error code 1

To Reproduce
Regular build.

Expected behavior
n/a

Desktop (please complete the following information):

  • OS/Platform: FreeBSD 14.0
  • clang-17

Version: 2.10.0

Should be taken care of with PR #4138, merged into master. If this does indeed solve the problem, we'll merge into the release branch too and get this into 2.10.1.