Skip to content

Fix duplicate definition when using aws-sdk-cpp.#2928

Merged
WardF merged 1 commit intoUnidata:mainfrom
DennisHeimbigner:sdkinit.dmh
May 22, 2024
Merged

Fix duplicate definition when using aws-sdk-cpp.#2928
WardF merged 1 commit intoUnidata:mainfrom
DennisHeimbigner:sdkinit.dmh

Conversation

@DennisHeimbigner
Copy link
Copy Markdown
Collaborator

@DennisHeimbigner DennisHeimbigner commented May 21, 2024

re: Issue #2927

The NC_s3sdkinitialize and NC_s3sdkfinalize functions were misplaced. They should have been moved from ds3util.c to ncs3sdk_h5.c. When using ncs3sdl_aws.cpp, this resulted in a duplicate definition.

Other changes.

  • Factored out the common code of the ncs3sdk_xxx files.
  • Fixed a memory leak in the NCZarr S3 code.
  • Suppress a google storage test when using aws-sdk-cpp because google storage is not supported.

re: Issue Unidata#2927

The NC_s3sdkinitialize NC_s3sdkfinalize functions were
misplaced. They should have been moved from ds3util.c to
ncs3sdk_h5.c.  When using ncs3sdl_aws.cpp, this resulted in a
duplicate definition.

Also, found and fixed a memory leak in the NCZarr S3 code.
@WardF WardF merged commit 09a5fa3 into Unidata:main May 22, 2024
@WardF
Copy link
Copy Markdown
Member

WardF commented Jun 3, 2024

@czender Did this work for you? I'm trying to get v4.9.3 out asap so will test it myself shortly, but curious if it worked for you.

@czender
Copy link
Copy Markdown
Contributor

czender commented Jun 3, 2024

Yes, I should have let you know earlier that I tested it immediately and it worked fine for me.

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

Successfully merging this pull request may close these issues.

3 participants