Ticket #44070

Meson building failing on undeclared getcwd()

Open Date: 2022-03-11 08:51 Last Update: 2022-03-11 09:02

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
9 - Highest
Severity:
5 - Medium
Resolution:
Fixed
File:
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
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
  • Component Update from Bootstrap to General
Comment

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

2022-03-11 09:02 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login