Created attachment 468864 [details, diff] Include librelp.h conditionally app-admin/rsyslog[test] fails compilation with Making check in tests make[1]: Entering directory '/var/tmp/portage/app-admin/rsyslog-8.24.0/work/rsyslog-8.24.0/tests' ... x86_64-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -pthread -march=native -O2 -pipe -c -o tcpflood-tcpflood.o `test -f 'tcpflood.c' || echo './'`tcpflood.c tcpflood.c:99:21: fatal error: librelp.h: No such file or directory #include <librelp.h> ^ compilation terminated. The reason seems to be that the patch applied to fix the dependency on librelp (see #613264) missed the include of librelp.h. Attached a patch to conditionally include librelp.h. (Note that the patch should be applied after the already included one otherwise there will be line number mismatches.) diff -ur a/tests/tcpflood.c b/tests/tcpflood.c --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -96,7 +96,9 @@ #include <string.h> #include <netinet/in.h> #include <pthread.h> +#ifdef ENABLE_RELP #include <librelp.h> +#endif #include <sys/resource.h> #include <sys/time.h> #include <errno.h>
... and of course the USE flag "relp" is disabled and dev-libs/librelp is not installed.
Thank you for the report. Confirmed and fixed in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5526ee34e1764adb6e0f02d35419e78e8db37094