| Summary: | net-misc/aria2-1.18.9 compile error 'SYS_getrandom' undeclared | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Sebastian Pipping <sping> |
| Component: | Current packages | Assignee: | Tiziano Müller (RETIRED) <dev-zero> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | floppym, mgorny |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Build log | ||
What version of glibc are you using? SYS_getrandom is declared in /usr/include/bits/syscall.h here. I'm sure there is also a minimal version of linux-headers required for __NR_getrandom. (In reply to Mike Gilbert from comment #1) > What version of glibc are you using? # gcc -dumpversion 4.8.3 > SYS_getrandom is declared in /usr/include/bits/syscall.h here. # fgrep SYS_getrandom /usr/include/bits/syscall.h <no output> That file is from sys-libs/glibc-2.19-r1 over here. (In reply to Sebastian Pipping from comment #3) > That file is from sys-libs/glibc-2.19-r1 over here. Indeed. That's why I asked for your glibc version, not your gcc version. Looks like it has been fixed upstream. https://github.com/tatsuhiro-t/aria2/issues/346 https://github.com/tatsuhiro-t/aria2/commit/fd6f5ebc32eb5f74501e11b7e519642ee95d49f0 (In reply to Mike Gilbert from comment #4) > Indeed. That's why I asked for your glibc version, not your gcc version. I guess I was reading "g...c" to fast then :) Newer versions are already around for some time. |
Created attachment 399076 [details] Build log [..] getrandom_linux.c: In function 'getrandom_linux': getrandom_linux.c:48:18: error: 'SYS_getrandom' undeclared (first use in this function) return syscall(SYS_getrandom, buf, buflen, 0); ^ getrandom_linux.c:48:18: note: each undeclared identifier is reported only once for each function it appears in getrandom_linux.c:50:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Makefile:2262: recipe for target 'getrandom_linux.lo' failed [..]