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
PR - Issue 49254 - Fix compiler failures and warnings #3898
Comments
Comment from spichugi (@droideck) at 2020-01-22 23:20:05 If I understand correctly, |
Comment from firstyear (@Firstyear) at 2020-01-22 23:53:06 Yeah, I think @droideck is right here, the change to these two values could be an issue. Looking at the code I see:
Which means the int is never defined as having a location in the programs memory as extern is only to provide a shared name I think. I think to make this valid the extern int lines need to be:
In the .h, because that will cause the compiler to allocate memory to them. How this works when it's included in multiple files though. ..... I'm not sure. Either way, I sense something going on here ... |
Comment from mhonek (@kenoh) at 2020-01-23 00:04:53 I'm curious if we still don't need to backtrack since we are in a loop and the |
Comment from mreynolds (@mreynolds389) at 2020-01-23 00:39:31
This causes the build to fail with the same errors I'm trying to clean up. I'll run an ACI test or two tomorrow and see if anything arises with the current patch. |
Comment from tbordaz (@tbordaz) at 2020-01-23 08:41:58 I agree with @kenoh suggestion those two lines sets '"' after p (and we are sure to have the enough room to do so).
|
Comment from tbordaz (@tbordaz) at 2020-01-23 09:42:24 A possibility is to declare the variables in header file (extern) like you did. Then declare the effective variable in the acl_ext.c where it is set, optionally with default value 'int aclpb_max_selected_acls = DEFAULT_ACLPB_MAX_SELECTED_ACLS;' |
Comment from mreynolds (@mreynolds389) at 2020-01-23 15:37:40 rebased onto 6f3ae5e08f0fc759ea919185080e5985e426d4b5 |
Comment from mreynolds (@mreynolds389) at 2020-01-23 15:38:42 Changes applied, please review... |
Comment from tbordaz (@tbordaz) at 2020-01-23 17:36:49 Actually both variables have the same default DEFAULT_ACLPB_MAX_SELECTED_ACLS (according to acl__handle_plugin_config_entry) |
Comment from mhonek (@kenoh) at 2020-01-23 17:52:13
I agree. Other than that, LGTM! |
Comment from mreynolds (@mreynolds389) at 2020-01-23 18:31:46 rebased onto 79f8351fc156807e836b5f3c9e1028007a078384 |
Comment from mreynolds (@mreynolds389) at 2020-01-23 18:34:33 rebased onto 3c38d33 |
Comment from mreynolds (@mreynolds389) at 2020-01-23 18:35:09 Pull-Request has been merged by mreynolds389 |
Patch |
Cloned from Pagure Pull-Request: https://pagure.io/389-ds-base/pull-request/50844
Description:
Fix issues with new gcc compiler flag "-fno-common", and clean up doxygen warnings around libsds
relates: Resolves: #2313
The text was updated successfully, but these errors were encountered: