Ticket #44070

Meson building failing on undeclared getcwd()

Date d'ouverture: 2022-03-11 08:51 Dernière mise à jour: 2022-03-11 09:02

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
Priorité:
9 - le plus élevé
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
1

Détails

CI build fails:

../utility/fcintl.c: In function ‘get_locale_dir’:
../utility/fcintl.c:124:16: error: implicit declaration of function ‘getcwd’; did you mean ‘getcpu’? (-Werror=implicit-function-declaration)

124 | cwdbuf = getcwd(NULL, 0);

As it works in autotools build, I assume that necessary includes are there. But likely guarded by availability check that meson doesn't do, or that fails on meson.

To be treated as an emergency fix.

Ticket History (3/4 Histories)

2022-03-11 08:51 Updated by: cazfi
  • New Ticket "Meson building failing on undeclared getcwd()" created
2022-03-11 08:59 Updated by: cazfi
  • Propriétaire Update from (Aucun) to cazfi
  • Résolution Update from Aucun to Accepted
  • Composant Update from Bootstrap to General
Commentaire

Was missing include after all, not sure how autotools builds work.

2022-03-11 09:02 Updated by: cazfi
  • État Update from Ouvert to Atteints
  • Résolution Update from Accepted to Fixed

Modifier

Please login to add comment to this ticket » Connexion