#1816: segfaults on 64bit systems when build with c99 ---------------------------------+------------------------------------------ Reporter: physik@… | Owner: Type: defect | Status: new Priority: unset | Milestone: Component: Cactus | Version: ET_2014_05 Resolution: | Keywords: ---------------------------------+------------------------------------------
Comment (by knarf):
Thank you for the very detailed bug report. This is indeed very helpful.
As to how to fix this: if we assume that we cannot influence (to some degree) how users compile the code, what is left is either defining a strdup() ourself and thereby making sure it is always present, or consistently use Util_Strdup) instead of strdup(), essentially doing the same.
In terms of compiler options we could require std=gnu99, and also recommend -Werror-implicit-function-declaration (for gcc), but would not be enforceable and still leaves users out in the cold.