* [Buildroot] [PATCH v2] fakeroot: fix spurious message "undefined symbol"
@ 2016-10-05 15:01 Maxime Hadjinlian
2016-10-05 20:55 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Maxime Hadjinlian @ 2016-10-05 15:01 UTC (permalink / raw)
To: buildroot
Since the glibc 2.24-3, and this commit:
https://sourceware.org/git/?p=glibc.git;a=commit;h=80f87443eed17838fe453f1f5406ccf5d3698c25
fakeroot will print spurious message about symbols not being found.
[...]
dlsym(acl_get_fd): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_file
dlsym(acl_set_fd): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_set_fd
dlsym(acl_set_file): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_set_file
dlsym(acl_get_fd): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_fd
dlsym(acl_get_file): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_file
[...]
It doesn't seem to impair the behavior of fakeroot, it's simply annoying
for the user.
Debian (which is the creator of fakeroot) has a patch which is a
workaround: simply don't display the message.
Note if you wish to bump fakeroot:
A new version is available but the release tarball doesn't include the
'configure' and 'Makefile' pre-generated.
This means that if we were to bump, the package would need to run its
own 'bootstrap' script which will add dependencies to
host-{automake,autoconf,...} which would be annoying (since almost every
build runs fakeroot).
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
---
v1 -> v2:
- Rename patch to include ordering
- Add SoB on the patch
---
package/fakeroot/0001-hide-dlsym-error.patch | 34 ++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
create mode 100644 package/fakeroot/0001-hide-dlsym-error.patch
diff --git a/package/fakeroot/0001-hide-dlsym-error.patch b/package/fakeroot/0001-hide-dlsym-error.patch
new file mode 100644
index 0000000..2c61fab
--- /dev/null
+++ b/package/fakeroot/0001-hide-dlsym-error.patch
@@ -0,0 +1,34 @@
+Description: Hide error from dlsym()
+ dlsym(), starting in glibc 2.24 actually reports errors. In our case,
+ we try to get ACL functions which are not in the glibc. This causes
+ failures in test suites, so hide those messages for non-debugging
+ purposes for now. It also makes the build logs annoying to read.
+Author: Julian Andres Klode <juliank@ubuntu.com>
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/830912
+Forwarded: no
+Last-Update: 2016-08-12
+
+Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
+
+--- a/libfakeroot.c
++++ b/libfakeroot.c
+@@ -256,10 +256,16 @@ void load_library_symbols(void){
+ /* clear dlerror() just in case dlsym() legitimately returns NULL */
+ msg = dlerror();
+ *(next_wrap[i].doit)=dlsym(get_libc(), next_wrap[i].name);
++
+ if ( (msg = dlerror()) != NULL){
+- fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
+-/* abort ();*/
++#ifdef LIBFAKEROOT_DEBUGGING
++ if (fakeroot_debug) {
++ fprintf (stderr, "dlsym(%s): %s\n", next_wrap[i].name, msg);
++/* abort ();*/
++ }
++#endif
+ }
++
+ }
+ }
+
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* [Buildroot] [PATCH v2] fakeroot: fix spurious message "undefined symbol"
2016-10-05 15:01 [Buildroot] [PATCH v2] fakeroot: fix spurious message "undefined symbol" Maxime Hadjinlian
@ 2016-10-05 20:55 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-10-05 20:55 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 5 Oct 2016 17:01:23 +0200, Maxime Hadjinlian wrote:
> Since the glibc 2.24-3, and this commit:
> https://sourceware.org/git/?p=glibc.git;a=commit;h=80f87443eed17838fe453f1f5406ccf5d3698c25
> fakeroot will print spurious message about symbols not being found.
>
> [...]
> dlsym(acl_get_fd): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_fd
> dlsym(acl_get_file): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_file
> dlsym(acl_set_fd): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_set_fd
> dlsym(acl_set_file): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_set_file
> dlsym(acl_get_fd): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_fd
> dlsym(acl_get_file): /usr/lib/libfakeroot/libfakeroot.so: undefined symbol: acl_get_file
> [...]
>
> It doesn't seem to impair the behavior of fakeroot, it's simply annoying
> for the user.
>
> Debian (which is the creator of fakeroot) has a patch which is a
> workaround: simply don't display the message.
>
> Note if you wish to bump fakeroot:
> A new version is available but the release tarball doesn't include the
> 'configure' and 'Makefile' pre-generated.
> This means that if we were to bump, the package would need to run its
> own 'bootstrap' script which will add dependencies to
> host-{automake,autoconf,...} which would be annoying (since almost every
> build runs fakeroot).
>
> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
> ---
> v1 -> v2:
> - Rename patch to include ordering
> - Add SoB on the patch
> ---
> package/fakeroot/0001-hide-dlsym-error.patch | 34 ++++++++++++++++++++++++++++
> 1 file changed, 34 insertions(+)
> create mode 100644 package/fakeroot/0001-hide-dlsym-error.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-05 20:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-05 15:01 [Buildroot] [PATCH v2] fakeroot: fix spurious message "undefined symbol" Maxime Hadjinlian
2016-10-05 20:55 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox