Open smthsm opened 1 year ago
Hello @smthsm ,
Thank you very much for your submission. We have been working on some updates to the build/configurations of this sdk. This would issue falls under the removing the need to pull dependencies via git submodules tasks. You can track the progress here: https://github.com/aws/aws-sdk-cpp/issues/1888
Best regards,
Yasmine
Describe the bug
When the CRT library is built as a shared object, applications fail to link against the SDK using pkgconfig because the
aws-cpp-sdk-core.pc
file doesn't include a dependency on the CRT shared libs (I think it should either be in theLibs:
orRequires:
entries).This doesn't happen by default when the CRT is built as submodules within the main build (i.e. with
BUILD_DEPS=ON
) because in that case, CRT is linked statically into theaws-cpp-sdk-core.so
file.Expected Behavior
Applications and libraries can build against the SDK when CRT is linked dynamically.
Current Behavior
The link stage of building a gstreamer library that uses the SDK fails due to the error
undefined reference to 'Aws::Crt::ApiAllocator()'
. Full build logs:Reproduction Steps
The build failure can be reproduced using the below Dockerfile.
Create a file named
Dockerfile
containing:Then run these commands to reproduce the build:
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
v1.10.30 (but also happens with latest)
Compiler and Version used
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Operating System and version
Ubuntu 22.04