Tíquete #44070

Meson building failing on undeclared getcwd()

: 2022-03-11 08:51 Última Atualização: 2022-03-11 09:02

Relator:
Dono:
Tipo:
Estado:
Fechado
Componente:
Marcos:
Prioridade:
9 - Highest
Gravidade:
5 - Medium
Resolução:
Fixed
Arquivo:
1

Details

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
  • Dono Update from (Nenhum) to cazfi
  • Resolução Update from Nenhum to Accepted
  • Componente Update from Bootstrap to General
Comentário

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

2022-03-11 09:02 Updated by: cazfi
  • Estado Update from Aberto to Fechado
  • Resolução Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Login