Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: use of undeclared identifier 'AF_INET' #4131

Open
yurivict opened this issue Apr 4, 2024 · 1 comment
Open

error: use of undeclared identifier 'AF_INET' #4131

yurivict opened this issue Apr 4, 2024 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Apr 4, 2024

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

@eisenhauer
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants