View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000859 | bareos-core | General | public | 2017-10-08 13:47 | 2017-12-23 15:10 |
Reporter | joergs | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Solaris11 | OS | Solaris | OS Version | 11 |
Product Version | 17.2.4-rc1 | ||||
Fixed in Version | 17.2.4 | ||||
Summary | 0000859: Bareos >= 17.2 does not compile on Solaris 11 (using Solaris Studio) | ||||
Description | The compiler complains about invalid empty chars ('') in the code intended as SQL statement: SQL_QUERY( ... File.Name != '' ... ) Compiling sqlite.c "sqlite_queries.inc", line 899: Error: Empty character constant. "sqlite_queries.inc", line 908: Error: Empty character constant. | ||||
Additional Information | Also other compilers (clang) produces warnings. Reason is, that this compiler check is done before the define substitutions. Nested defines (to hide '') also do not work. | ||||
Tags | No tags attached. | ||||
bareos: bareos-17.2 e4a0f780 2017-10-08 18:25 Ported: N/A Details Diff |
Fixes compilation for Solaris Instead of using a C macro SQL_QUERY(...) to represent a SQL query, use normal (combined) strings. This is required as some compilers interpret the macro strings as C code and forbid certain substring ('', MAX, ...). Fixes 0000859: Compile fails on Solaris 11 (using Solaris Studio) |
Affected Issues 0000859 |
|
mod - src/cats/bdb_query_names.inc | Diff File | ||
mod - src/cats/cats.h | Diff File | ||
mod - src/cats/dml/create_queryfiles.sh | Diff File | ||
mod - src/cats/mysql_queries.inc | Diff File | ||
mod - src/cats/postgresql_queries.inc | Diff File | ||
mod - src/cats/sqlite_queries.inc | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-10-08 13:47 | joergs | New Issue | |
2017-10-08 13:47 | joergs | Status | new => assigned |
2017-10-08 13:47 | joergs | Assigned To | => joergs |
2017-10-09 15:09 | joergs | Changeset attached | => bareos bareos-17.2 e4a0f780 |
2017-10-09 15:09 | joergs | Note Added: 0002782 | |
2017-10-09 15:09 | joergs | Status | assigned => resolved |
2017-10-09 15:09 | joergs | Resolution | open => fixed |
2017-12-23 15:10 | joergs | Status | resolved => closed |
2017-12-23 15:10 | joergs | Assigned To | joergs => |
2017-12-23 15:10 | joergs | Fixed in Version | => 17.2.4 |