Incidencia #44070

Meson building failing on undeclared getcwd()

Abrir Fecha: 2022-03-11 08:51 Última actualización: 2022-03-11 09:02

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
9 - Highest
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
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
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
  • Componente Update from Bootstrap to General
Comentario

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

2022-03-11 09:02 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar