Avec GCC 11 on a changer la valeur par défaut.
Donc pour supprimer les problèmes (de facon rapide) il suffit d’ajouter la directive -fcommon. La solution idéale est de revoir le code … et surtout les .h.
Misère.
Pour information Ubuntu 22.04.1 utilise gcc 11.2.0-19 .
La doc : https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html
-fcommon
In C code, this option controls the placement of global variables defined without an initializer, known as tentative definitions in the C standard. Tentative definitions are distinct from declarations of a variable with the
externkeyword, which do not allocate storage.