1 Description: Hide error from dlsym()
2 dlsym(), starting in glibc 2.24 actually reports errors. In our case,
3 we try to get ACL functions which are not in the glibc. This causes
4 failures in test suites, so hide those messages for non-debugging
5 purposes for now. It also makes the build logs annoying to read.
6 Author: Julian Andres Klode <juliank@ubuntu.com>
8 Bug-Debian: https://bugs.debian.org/830912
10 Last-Update: 2016-08-12
12 Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
16 @@ -256,10 +256,16 @@ void load_library_symbols(void){
17 /* clear dlerror() just in case dlsym() legitimately returns NULL */
19 *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
21 if ( (msg = dlerror()) != NULL){
22 - fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
24 +#ifdef LIBFAKEROOT_DEBUGGING
25 + if (fakeroot_debug) {
26 + fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);