comparison Core/Toolbox.cpp @ 3462:7d72e43f4a2d

attempt to fix LSB on Ubuntu 18.04
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Jul 2019 11:59:56 +0200
parents cbbe0bb80bd4
children e7723a39adf8
comparison
equal deleted inserted replaced
3461:7fc9dd4882ec 3462:7d72e43f4a2d
136 { 136 {
137 double bogus; 137 double bogus;
138 uint8_t *bytes; 138 uint8_t *bytes;
139 } U_ICUDATA_ENTRY_POINT = { 0.0, NULL }; 139 } U_ICUDATA_ENTRY_POINT = { 0.0, NULL };
140 } 140 }
141
142 # if defined(__LSB_VERSION__)
143 extern "C"
144 {
145 /**
146 * The "tzname" global variable is declared as "extern" but is not
147 * defined in any compilation module, if using Linux Standard Base,
148 * as soon as OpenSSL or cURL is in use on Ubuntu >= 18.04 (glibc >=
149 * 2.27). The variable "__tzname" is always properly declared *and*
150 * defined. The reason is unclear, and is maybe a bug in the gcc 4.8
151 * linker that is used by LSB if facing a weak symbol (as "tzname").
152 * This makes Orthanc crash if the timezone is set to UTC.
153 * https://groups.google.com/d/msg/orthanc-users/0m8sxxwSm1E/2p8du_89CAAJ
154 **/
155 char *tzname[2] = { (char *) "GMT", (char *) "GMT" };
156 }
157 # endif
141 158
142 # endif 159 # endif
143 #endif 160 #endif
144 161
145 162