1 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=830912
5 Followup-For: Bug #830912
6 User: ubuntu-devel@lists.ubuntu.com
7 Usertags: origin-ubuntu yakkety ubuntu-patch
9 In Ubuntu, the attached patch was applied to achieve the following:
11 Hide the warnings, at least for now. This should bring us back to glibc 2.23
14 * Add hide-dlsym-error.patch to hide the errors from dlsym() unless
15 debugging was enabled. This makes builds less noisy and fixes failures
16 in APT test suite with glibc 2.24, which started reporting errors for
20 Thanks for considering the patch.
22 Description: Hide error from dlsym()
23 dlsym(), starting in glibc 2.24 actually reports errors. In our case,
24 we try to get ACL functions which are not in the glibc. This causes
25 failures in test suites, so hide those messages for non-debugging
26 purposes for now. It also makes the build logs annoying to read.
27 Author: Julian Andres Klode <juliank@ubuntu.com>
29 Bug-Debian: <a href="https://bugs.debian.org/830912">https://bugs.debian.org/830912</a>
31 Last-Update: 2016-08-12
35 @@ -256,10 +256,16 @@ void load_library_symbols(void){
36 /* clear dlerror() just in case dlsym() legitimately returns NULL */
38 *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
40 if ( (msg = dlerror()) != NULL){
41 - fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
43 +#ifdef LIBFAKEROOT_DEBUGGING
44 + if (fakeroot_debug) {
45 + fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);