libp11-kit error

  • Done
  • quality assurance status badge
Details
2 participants
  • Ricardo Wurmus
  • Vivien Kraus
Owner
unassigned
Submitted by
Vivien Kraus
Severity
normal
V
V
Vivien Kraus wrote on 26 Mar 2018 13:22
(address . bug-guix@gnu.org)
1522063347.1134.2.camel@planete-kraus.eu
Hello list,

This error shows when I try to configure debian's flatpak:

$ /usr/bin/flatpak remote-add --if-not-exists flathub https://flathub.o
rg/repo/flathub.flatpakrepo
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found
(required by /gnu/store/gsi6xb0w4wav7gz60sn0gd31jlghhdci-p11-kit-
0.23.10/lib/libp11-kit.so.0)
Failed to load module: /home/vivien/.guix-
profile/lib/gio/modules/libgiognutls.so
support is not available

I have tried to remove and reinstall some packages, mainly gnutls and
glibc, but it does not solve the problem.

A similar error happens with debian's evolution (I have guix' evolution
installed, which works):
$ /usr/bin/evolution
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found
(required by /gnu/store/i397mqhpihsx45c0cbqfsnlvp4q4fkm1-gnutls-
3.5.13/lib/libgnutls.so.30)
Failed to load module: /home/vivien/.guix-
profile/lib/gio/modules/libgiognutls.so

But not with debian's wget, for instance.

It is weird to me that guix' gnutls does not use guix' glibc.

If I override LD_LIBRARY_PATH to also point to my profile, I get a
segfault.

Is it a known issue? Can it be solved with an environment variable?

Best regards,

Vivien
V
V
Vivien Kraus wrote on 27 Mar 2018 08:06
(address . 30949@debbugs.gnu.org)
1522130768.1134.8.camel@planete-kraus.eu
Hello,

After bisecting, the problem is in
glib-networking

If I install glib-networking alone, it breaks.

If I install glib gnutls gsettings-desktop-schemas intltool p11-kit
pkg-config (glib-networking deps), it works.

See for yourself:

0 packages in profile
vivien:~$ guix package -i glib-networking
guile: warning: failed to install locale
warning: failed to install locale: Invalid argument
The following package will be installed:
   glib-networking 2.54.1 /gnu/store/v1699m574z8gnf80x2xn
cazdpfnpb48g-glib-networking-2.54.1

substitute: guix substitute: warning: ACL for archive imports seems to
be uninitialized, substitutes may be unavailable
substitute: updating list of substitutes from 'https://mirror.hydra.gnu
.org'... 100.0%
The following derivations will be built:
   /gnu/store/3v8cfslrb6klzhckm50437l4zpmnikd1-profile.drv
   /gnu/store/m4kz7nxcz12w3vpra14vdg730lm9f9az-ca-certificate-
bundle.drv
   /gnu/store/d07dvnzb21xazhlnki3vncxl47lq3aqz-xdg-mime-database.drv
   /gnu/store/crh448xmpkr8x194a2rjb6dw6vj7i25x-xdg-desktop-database.drv
   /gnu/store/bsjzbfwmbr74kq7r498g4s0djaqfw5iq-fonts-dir.drv
   /gnu/store/6sxp9iwn23zwhdsdj5hfd5m0p34k336y-info-dir.drv
   /gnu/store/6ki3sd8njfljsfqzvnw5piyzdypl730l-manual-database.drv
Creating manual page database...
0 entries processed in 0.1 s
1 package in profile
vivien:~$ /usr/bin/flatpak remote-add --if-not-exists flathub https://f
lathub.org/repo/flathub.flatpakrepo
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found
(required by /gnu/store/gsi6xb0w4wav7gz60sn0gd31jlghhdci-p11-kit-
0.23.10/lib/libp11-kit.so.0)
Failed to load module: /home/vivien/.guix-
profile/lib/gio/modules/libgiognutls.so
support is not available
vivien:~$ guix package -r glib-networking
guile: warning: failed to install locale
warning: failed to install locale: Invalid argument
The following package will be removed:
   glib-networking 2.54.1 /gnu/store/v1699m574z8gnf80x2xn
cazdpfnpb48g-glib-networking-2.54.1

0 packages in profile
vivien:~$ guix package -i glib gnutls gsettings-desktop-schemas
intltool p11-kit pkg-config
guile: warning: failed to install locale
warning: failed to install locale: Invalid argument
The following packages will be installed:
   glib 2.54.2 /gnu/store/6iyjammgs0qp2sxxniy974xkf81yl76
9-glib-2.54.2
   gnutls 3.5.13 /gnu/store/5kih0kxmipzjw10c53hhckfzkcs7c
8mm-gnutls-3.5.13
   gsettings-desktop-schemas 3.24.1 /gnu/store/cz988rfj17
h00bxs93agwrzzwpbmrkq3-gsettings-desktop-schemas-3.24.1
   intltool 0.51.0 /gnu/store/vdf2qr16vv902lzjbwq8yqqaaap
3iv70-intltool-0.51.0
   p11-kit 0.23.10 /gnu/store/gsi6xb0w4wav7gz60sn0gd31jlg
hhdci-p11-kit-0.23.10
   pkg-config 0.29.2 /gnu/store/vgmln3b639r68vvy75xhcbi7d
2w31mx1-pkg-config-0.29.2

substitute: guix substitute: warning: ACL for archive imports seems to
be uninitialized, substitutes may be unavailable
substitute: updating list of substitutes from 'https://mirror.hydra.gnu
.org'... 100.0%
The following derivations will be built:
   /gnu/store/dnqray955y26s2icmb6kd7nadm1cqckl-profile.drv
   /gnu/store/s1d8kmqsaa1b6zzafdpsvb84k11k3q1m-fonts-dir.drv
   /gnu/store/cyn4aaryc8shlb3b4qv9nqh9kwcf9a3x-xdg-desktop-database.drv
   /gnu/store/6h4hscbi4gvxbay5c67id2v34mqm3pjj-xdg-mime-database.drv
   /gnu/store/1v2q0zr23wyf5w7sjagsisdk88p7xfki-info-dir.drv
   /gnu/store/1c84g5mpizy60r5gp38gs9hjag4pvwgw-ca-certificate-
bundle.drv
   /gnu/store/jzdwc36xnhvlxy51ylz606y37rip20zi-manual-database.drv
Creating manual page database...
1003 entries processed in 1.7 s
6 packages in profile
The following environment variable definitions may be needed:
   export PERL5LIB="/home/vivien/.guix-
profile/lib/perl5/site_perl${PERL5LIB:+:}$PERL5LIB"
vivien:~$ /usr/bin/flatpak remote-add --if-not-exists flathub https://f
lathub.org/repo/flathub.flatpakrepo
vivien:~$

Le lundi 26 mars 2018 à 13:22 +0200, Vivien Kraus a écrit :
Toggle quote (43 lines)
> Hello list,
>
> This error shows when I try to configure debian's flatpak:
>
> $ /usr/bin/flatpak remote-add --if-not-exists flathub https://flathub
> .o
> rg/repo/flathub.flatpakrepo
> /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.26' not found
> (required by /gnu/store/gsi6xb0w4wav7gz60sn0gd31jlghhdci-p11-kit-
> 0.23.10/lib/libp11-kit.so.0)
> Failed to load module: /home/vivien/.guix-
> profile/lib/gio/modules/libgiognutls.so
> Can't load uri https://flathub.org/repo/flathub.flatpakrepo: TLS
> support is not available
>
> I have tried to remove and reinstall some packages, mainly gnutls and
> glibc, but it does not solve the problem.
>
> A similar error happens with debian's evolution (I have guix'
> evolution
> installed, which works):
> $ /usr/bin/evolution
> /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found
> (required by /gnu/store/i397mqhpihsx45c0cbqfsnlvp4q4fkm1-gnutls-
> 3.5.13/lib/libgnutls.so.30)
> Failed to load module: /home/vivien/.guix-
> profile/lib/gio/modules/libgiognutls.so
>
> But not with debian's wget, for instance.
>
> It is weird to me that guix' gnutls does not use guix' glibc.
>
> If I override LD_LIBRARY_PATH to also point to my profile, I get a
> segfault.
>
> Is it a known issue?  Can it be solved with an environment variable?
>
> Best regards,
>
> Vivien
>
>
>
R
R
Ricardo Wurmus wrote on 27 Mar 2018 09:58
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)(address . 30949@debbugs.gnu.org)
87tvt2eypr.fsf@elephly.net
Hello Vivien,

Toggle quote (5 lines)
> If I install glib-networking alone, it breaks.
>
> If I install glib gnutls gsettings-desktop-schemas intltool p11-kit
> pkg-config (glib-networking deps), it works.

Could you please share the output of “env” with us (before and after)?

I think the key here is the installation of “glib”, which sets the
environment variables XDG_DATA_DIRS and GIO_EXTRA_MODULES. To avoid
having to install glib, you may want to check the values of these
environment variables in your environment and modify them.

Toggle quote (3 lines)
> substitute: guix substitute: warning: ACL for archive imports seems to
> be uninitialized, substitutes may be unavailable

Aside: Is this on purpose? This way you will have to build everything
from source. For convenience I recommend authorizing the build farm(s).

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
V
V
Vivien Kraus wrote on 27 Mar 2018 10:08
(name . Ricardo Wurmus)(address . rekado@elephly.net)(address . 30949@debbugs.gnu.org)
1522138132.1093.1.camel@planete-kraus.eu
Hello,

Le mardi 27 mars 2018 à 09:52 +0200, Ricardo Wurmus a écrit :
Toggle quote (1 lines)
> I’d say it is *caused* by an environment variable.
Now it seems obvious: I removed
export GIO_EXTRA_MODULES="/home/vivien/.guix-
profile/lib/gio/modules${GIO_EXTRA_MODULES:+:}$GIO_EXTRA_MODULES"
from my .bashrc and now it works!

I added it because guix told me to, but I don't know which package
advertised it.

Anyways, thank you, the problem is solved!

Vivien

Toggle quote (8 lines)
>
> --
> Ricardo
>
> GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
> https://elephly.net
>
>
R
R
Ricardo Wurmus wrote on 27 Mar 2018 09:52
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)(address . 30949@debbugs.gnu.org)
87vadiez18.fsf@elephly.net
Vivien Kraus <vivien@planete-kraus.eu> writes:

Toggle quote (2 lines)
> It is weird to me that guix' gnutls does not use guix' glibc.

It most certainly does.

Toggle quote (3 lines)
> If I override LD_LIBRARY_PATH to also point to my profile, I get a
> segfault.

Setting LD_LIBRARY_PATH on a system where Guix things are installed
alongside system things is rarely ever going to work out, because you’re
forcing the runtime linker to pick libraries that are likely to be
incompatible.

LD_LIBRARY_PATH is not needed for running Guix applications (we use
RUNPATH to record the location of libraries).

Toggle quote (2 lines)
> Is it a known issue? Can it be solved with an environment variable?

I’d say it is *caused* by an environment variable.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
R
R
Ricardo Wurmus wrote on 27 Mar 2018 10:30
(name . Vivien Kraus)(address . vivien@planete-kraus.eu)(address . 30949-done@debbugs.gnu.org)
87sh8lgbu3.fsf@elephly.net
Vivien Kraus <vivien@planete-kraus.eu> writes:

Toggle quote (2 lines)
> Anyways, thank you, the problem is solved!

That’s great!

Environment variables can be tricky and the way this failed in your case
certainly isn’t nice, but I can’t think of a way to avoid this.

I’m closing this bug.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
Closed
?