Bug 15074

Summary: syncfs probe fails with newer compilers
Product: [Yocto Project Subprojects] Pseudo Reporter: Florian Weimer <fweimer>
Component: pseudoAssignee: Eilís Ní Fhlannagáin <pidge>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: pidge, randy.macleod, richard.purdie, yp.pseudo.watcher, yp.watcher
Version: master   
Target Milestone: 4.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
pseudo-configure-c99.patch none

Description Florian Weimer 2023-03-17 08:00:41 UTC
Created attachment 4937 [details]
pseudo-configure-c99.patch

The syncfs probe in ports/unix/subports fails on glibc systems if the compiler does not support implicit function declarations. Defining _GNU_SOURCE makes sure that <unistd.h> provides a function prototype for syncfs.

Related to:

  <https://fedoraproject.org/wiki/Changes/PortingToModernC>
  <https://fedoraproject.org/wiki/Toolchain/PortingToModernC>
Comment 1 Richard Purdie 2023-12-15 17:30:16 UTC
Fixed with the following commits firstly to pseudo and then to update OpenEmbedded-Core to use it:
https://git.yoctoproject.org/pseudo/commit/?id=a8453eea4d902bbb0e01c786f1cb4a178c3bbee3
https://git.yoctoproject.org/poky/commit/?id=b3d1a7297fb80af41bd1e8dbc2e448abf5e7df08