-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
linker error when building with static libs and using s3-crt #2842
Comments
What are the exact build commands that you are building this sdk with? I used the following and I'm not seeing the same error that you're getting
I would also recommend trying to add |
Here is a complete set of instructions how to reproduce the issue on macOS with Xcode 15.2 unzip aws-sdk-cpp-1.11.257.zip |
The problem, if I grep s3 and s3-crt, for S3_EXPRESS_SIGNER_NAME is that it find: if those guys were static, that would work. Should I prepare a patch? |
create a PR here #2845 |
Hey @thierryba your patch looks good, just you missed the code generation bit of it. All of clients under We can merge that as soon as CI finishes running if thats alright with you. Thanks for contributing! |
merged my PR with the your patch applied (you are on the commit as cou-author), just includes my code gen bits, will be released and tagged today. closing your old PR. give a shout if you have any questions. |
should be released now, give a shout if you have any questions |
This issue is now closed. Comments on closed issues are hard for our team to see. |
@sbiscigl Thank you for the help here! |
Describe the bug
I have built, the sdk with the options '-DBUILD_ONLY=s3;s3-crt;s3-encryption;cloudfront;cloudfront-keyvaluestore',
'-DENABLE_UNITY_BUILD=ON', '-DAUTORUN_UNIT_TESTS=OFF', '-DBUILD_SHARED_LIBS=OFF',
'-DENABLE_ZLIB_REQUEST_COMPRESSION=ON', '-DUSE_OPENSSL=ON'
In my example, I am using cmake this way: find_package(AWSSDK REQUIRED COMPONENTS s3 s3-crt)
It worked fine with only s3... but if I add s3-crt, then I'mgetting linker errors about duplicate symbols
Expected Behavior
it should link without any errors.
Current Behavior
The linker errors are:
Reproduction Steps
see description.
Possible Solution
No response
Additional Information/Context
I have tried shared libs and that works... I would rather that static libs are either not a thing or that it works.
AWS CPP SDK version used
1.11.257
Compiler and Version used
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Operating System and version
macOS 14.3
The text was updated successfully, but these errors were encountered: