-
Notifications
You must be signed in to change notification settings - Fork 22
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
Wato #161
base: main
Are you sure you want to change the base?
Wato #161
Conversation
This is breaking standard cmake builds. Additionally, the crypto library isn't directly used so target_link_libraries(redfish ${OPENSSL_SSL_LIBRARY}) should have be sufficient. What issues where you having? |
Without this line I see:
and some more undefined references. |
Here exactly the same build, but with -lcrypto:
|
The failing Travis links seem not to come from the crypto change. One breakage seem to come from the thread linking addition. I could limit this to one build failing. I expect it has to do with cmake version. I already found hints that this may vary depending on the version, but I could not spot the cmake version used. Windows builds should always fail, due to missing certificate? |
6b11e4c
to
9d5c1ba
Compare
Otherwise one gets quite some undefined references...
For some reason this was not needed when I built in latest Tumbleweed env. It seems as if phtread code moved into glibc or something more general, but this helped to build against Leap 15.4 and Tumbleweed still built successfully.
otherwise %cmake rpm macros will not be able to install things to the right places.
This will generate a libredfish.pc file that can/should be placed to (in openSUSE at least): /usr/lib64/pkgconfig So that Linux systems making use of pkg-config are aware of libredfish library
Right now even the main branch fails on Windows; we'll need to look at that further as a separate issue. |
I'm able to build one open SUSE leap 15.4 without these changes. I'm still unclear on why this is needed. |
Can you provide details on how you build, please. |
Sigh..., so I try to explain this a bit more: Like that rpmbuild cmake macros will do the right thing. In my case the libredfish.spec file part looks like this: %install |
Fixes found/implemented when packaging libredfish for openSUSE:
https://build.opensuse.org/package/show/systemsmanagement/libredfish
https://build.opensuse.org/package/show/openSUSE:Factory/libredfish