-
Notifications
You must be signed in to change notification settings - Fork 353
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
[BUG] Target "redis++_static" links to: hiredis::hiredis_static_ssl #486
Comments
When building static library a substitution for library name was bad. Reported in sewenew/redis-plus-plus#486 and detected when building new version of hiredis that also builds a static library. Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Peter Bergin <[email protected]>
When building static library a substitution for library name was bad. Reported in sewenew/redis-plus-plus#486 and detected when building new version of hiredis that also builds a static library. Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Khem Raj <[email protected]>
When building static library a substitution for library name was bad. Reported in sewenew/redis-plus-plus#486 and detected when building new version of hiredis that also builds a static library. Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Khem Raj <[email protected]>
When building static library a substitution for library name was bad. Reported in sewenew/redis-plus-plus#486 and detected when building new version of hiredis that also builds a static library. Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Thanks for reporting the bug! However, the proposal you mentioned does not work when we build redis-plus-plus and hired is without SSL support. Because, in that case, there's no semicolon in the string. I fixed it with this commit, and merged the code into master branch. Please take a look, and test it. If the problem still exists, feel free to let me know. Regards |
Since there's no update, I'll close this issue. If the code does not work, feel free to let me know. Regards |
…ction When building static library a substitution for library name was bad. Reported in sewenew/redis-plus-plus#486 and detected when building new version of hiredis that also builds a static library. Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Peter Bergin <[email protected]> Signed-off-by: Khem Raj <[email protected]>
Describe the bug
During configuration with CMake there is a bad substitution when handling the static libraries which make CMake to fail the configuration. This was found while building redis-plus-plus in Yocto with newer version of hiredis that also have a static library available.
To Reproduce
Build redis-plus-plus in Yocto with this PR included: openembedded/meta-openembedded#695
Expected behavior
Tha configuration pass without error
Environment:
Additional context
The problem is in CMakeLists.txt:
redis-plus-plus/CMakeLists.txt
Line 187 in 36b71e1
Where the names are substituted for the static build.
The string before the substitution:
hiredis::hiredis;hiredis::hiredis_ssl;
The string after the substitution:
hiredis::hiredis_static;hiredis::hiredis_static_ssl;
The string should be:
hiredis::hiredis_static;hiredis::hiredis_ssl_static;
One possible solution to the problem is to also include the ';' into the string:
The text was updated successfully, but these errors were encountered: