View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009554 | ardour | bugs | public | 2023-11-28 15:28 | 2023-11-28 16:40 |
Reporter | fweimer | Assigned To | x42 | ||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | GNU | OS | Linux | OS Version | (any) |
Summary | 0009554: C compatibility issue in localtime_r probe | ||||
Description | The localtime_r probe tries to return a pointer from main, which will be an error in future C compilers. diff --git a/libs/pbd/wscript b/libs/pbd/wscript index 06b285c79d..f9fc92dc0e 100644 --- a/libs/pbd/wscript +++ b/libs/pbd/wscript @@ -115,7 +115,7 @@ def configure(conf): define_name='HAVE_GETMNTENT', execute = False, mandatory=False) conf.check_cc( msg="Checking for function 'localtime_r' in time.h", - fragment = "#include <time.h>\n int main(void) { return localtime_r(NULL, NULL); }\n", + fragment = "#include <time.h>\n int main(void) { return localtime_r(NULL, NULL) == 0; }\n", define_name='HAVE_LOCALTIME_R', execute = False, mandatory=False) # Boost headers | ||||
Steps To Reproduce | Easiest with a instrumented compiler that logs such C compatibility issues. Full build log is here: https://gitlab.com/fweimer-rh/fedora-modernc-logs/-/blob/b64924b4082182b521aee43b362e3c070c163c1f/logs/a/ardour6.log | ||||
Tags | No tags attached. | ||||