aws-sdk-cpp icon indicating copy to clipboard operation
aws-sdk-cpp copied to clipboard

Compile error error: 'AWS_IO_INVALID_FILE_HANDLE' undeclared

Open SebTV opened this issue 4 years ago • 2 comments

Describe the bug

Building SDK 1.9.268 under Linux/gcc leads to the error above. It looks like the symbol is renamed to DEPRECATED_AWS_IO_INVALID_FILE_HANDLE in aws-c-io/include/aws/io/io.h, but still in use in aws-c-io/source/windows/file_utils.c and aws-c-io/source/posix/file_utils.c

Expected Behavior

The code should compile

Current Behavior

Compilation stops with an error

Reproduction Steps

git-clone (with submodules) from gitlab on the tag 1.9.268 Configure with cmake 3.20.5 (I am using s3 and meteringmarketplace only)

Possible Solution

If the symbol is deprecated, stop using it in source/windows/file_utils.c or "fix" it by renaming as in source/io.c

Additional Information/Context

No response

AWS CPP SDK version used

1.9.268

Compiler and Version used

gcc 7.4.0

Operating System and version

CentOS 7

SebTV avatar Jun 01 '22 08:06 SebTV

Can you list the exact cmake command that you are using after git clone?

Also I don't see the file_utils.c that you mentioned in either location: https://github.com/awslabs/aws-c-io/tree/main/source/windows https://github.com/awslabs/aws-c-io/tree/main/source/posix

jmklix avatar Jun 02 '22 21:06 jmklix

Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.

github-actions[bot] avatar Jun 05 '22 00:06 github-actions[bot]