[GiNaC-list] Patch for ginac-1.8.7 (MacOS 14.6,Apple Silicon)

Richard B. Kreckel kreckel at in.terlu.de
Fri Aug 2 10:13:25 CEST 2024


Dear Satoshi,

On 7/30/24 5:56 PM, 足立聡 wrote:
> [2] I have investigated what caused this trouble and found that
> the phenomenon described in "ginac/hash_seed.h" occurs not only in Win32
> but also in my MacOS 14.6. typeid(ex.bp).name() returns always correct C string
> as value but its address varies from a call to another call.
> 
> Accordingly, the problem can be fixed as follows:
> 
> *** ginac/hash_seed.h.org <http://hash_seed.h.org>Sun Jan1 03:47:20 2023
> --- ginac/hash_seed.hTue Jul 30 23:02:36 2024
> ***************
> *** 8,14 ****
> #include <typeinfo>
> #include <cstring>
> #include "utils.h"
> ! #ifdef _WIN32
> #define GINAC_HASH_USE_MANGLED_NAME 1
> #endif
> --- 8,14 ----
> #include <typeinfo>
> #include <cstring>
> #include "utils.h"
> ! #if defined(_WIN32) || defined(__APPLE__)
> #define GINAC_HASH_USE_MANGLED_NAME 1
> #endif
> 
> [3] Now, everything is fine.

Thanks for debugging this problem! Your patch has been pushed.

All my best,
   -richy.
-- 
Richard B. Kreckel
<https://in.terlu.de/~kreckel/>



More information about the GiNaC-list mailing list