View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001128 | bareos-core | api | public | 2019-11-03 18:52 | 2019-11-03 18:52 |
Reporter | rjung | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Solaris10 | OS | Solaris | OS Version | 10 |
Product Version | 18.2.6 | ||||
Summary | 0001128: Compilation error due to existing symbol round() | ||||
Description | Actually version is 18.4.1 but that doesn't exist in the mantis version dropdown. File core/src/lib/bsnprintf.cc defines a function round() which leads to a compilation error on Solaris 10 Sparc, because that symbol already exists. Since the new round(9 is static, obne can rename it, eg. to roundit. The following patch helps: --- core/src/lib/bsnprintf.cc Fri Sep 28 10:30:36 2018 +++ core/src/lib/bsnprintf.cc Sun Nov 3 18:07:19 2019 @@ -618,7 +618,7 @@ return result; } -static int64_t round(LDOUBLE value) +static int64_t roundit(LDOUBLE value) { int64_t intpart; @@ -685,7 +685,7 @@ /* We "cheat" by converting the fractional part to integer by * multiplying by a factor of 10 */ - fracpart = round((pow10(max)) * (ufvalue - intpart)); + fracpart = roundit((pow10(max)) * (ufvalue - intpart)); if (fracpart >= pow10(max)) { intpart++; | ||||
Steps To Reproduce | Compile on Solaris 10 Sparc. | ||||
Tags | compile solaris | ||||
bareos-master: impact | |||||
bareos-master: action | |||||
bareos-19.2: impact | |||||
bareos-19.2: action | |||||
bareos-18.2: impact | |||||
bareos-18.2: action | |||||
bareos-17.2: impact | |||||
bareos-17.2: action | |||||
bareos-16.2: impact | |||||
bareos-16.2: action | |||||
bareos-15.2: impact | |||||
bareos-15.2: action | |||||
bareos-14.2: impact | |||||
bareos-14.2: action | |||||
bareos-13.2: impact | |||||
bareos-13.2: action | |||||
bareos-12.4: impact | |||||
bareos-12.4: action | |||||