From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Sun, 17 Jul 2016 09:18:42 +0200 Subject: [Buildroot] [PATCH] package/systemd: import daemon needs headers >= 3.11 In-Reply-To: <87h9bo4uic.fsf@dell.be.48ers.dk> References: <1468182896-8355-1-git-send-email-yann.morin.1998@free.fr> <87eg709ccd.fsf@dell.be.48ers.dk> <20160711202325.GB5122@free.fr> <87r3az6y58.fsf@dell.be.48ers.dk> <20160716142624.1e045c31@free-electrons.com> <20160716182856.GB3882@free.fr> <87h9bo4uic.fsf@dell.be.48ers.dk> Message-ID: <20160717071842.GA3614@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Peter, All, On 2016-07-17 09:02 +0200, Peter Korsgaard spake thusly: > >>>>> "Yann" == Yann E MORIN writes: > > 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). So, should we add GLIBC_AT_LEAST_X_Y symbols? Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'