[Buildroot] [PATCH] package/systemd: import daemon needs headers >= 3.11

Peter Korsgaard peter at korsgaard.com
Sun Jul 17 07:02:35 UTC 2016


>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

Hi,

 > So, I built a toolchain with Linux headers 3.10 and glibc 2.18. And
 > systemd-importd does not build:

 >     src/import/export-raw.c: In function 'reflink_snapshot':
 >     src/import/export-raw.c:271:26: error: 'O_TMPFILE' undeclared (first use in this function)
 >              new_fd = open(d, O_TMPFILE|O_CLOEXEC|O_NOCTTY|O_RDWR, 0600);
 >                               ^
 >     src/import/export-raw.c:271:26: note: each undeclared identifier is reported only once for each function it appears in
 >     Makefile:16515: recipe for target 'src/import/systemd_export-export-raw.o' failed

 > O_TMPFILE was added in Linux 3.11; glibc added the corresponding
 > definition in glib-2.19.

 >     glibc \ linux   | <= 3.10   | >= 3.11   |
 >     ----------------+-----------+-----------+
 >     <= 2.18         | No        | No*       |
 >> = 2.19         | Yes       | Yes       |

 > *: headers 3.12

 > So, not sure where to go from there...

 > Note: I have not tested uClibc or musl, because,well, systemd depends on
 > glibc...

I would just go for  >= glibc 2.19. People are unlikely to use old glibc
with new kernel headers (and it cannot be built with buildroot).

-- 
Venlig hilsen,
Peter Korsgaard 



More information about the buildroot mailing list