On 2016-05-10 15:12:43 +0200, Christian Seiler wrote:
> Am 2016-05-10 14:41, schrieb Vincent Lefevre:
> > On 2016-05-10 13:41:14 +0200, Christian Seiler wrote:
> > > Yes, so the problem is that gtk3-nocsd sets
> > > LD_PRELOAD=libgtk3-noscd.so.0.
> > > That means that ld.so tries to preload the library - and there's
> > > currently
> > > now way of telling ld.so to not print an error and simply ignore and
> > > entry
> > > in LD_PRELOAD if it can't load it. (And you only have the amd64
> > > version
> > > installed.)
> > 
> > This would have been the best solution
> 
> I agree. Maybe I should open a bug report against libc...

Yes. BTW, the LD_PRELOAD description in the ld.so(8) man page should
also be improved to know what happens in case of all kinds of errors.

> > Perhaps in the long term, ld.so should provide a way to avoid
> > error messages due to non-matching permissions or ELF class.
> 
> Yes. And not only for permissions, I'd really like to have something like
> "please try this. If it doesn't work, don't worry, just continue, don't
> say anything".

Yes, if the program is executed, one should have a way to silent
ld.so, whatever the reason for which a clear decision can be made.
An error message + failure would be useful only in case of real error
(e.g. I/O error on some directory in the library search path).

> > Perhaps provide a 32-bit library for the amd64 package? But one should
> > still make sure that packages in both arch are coinstallable.
> 
> I'm not a fan of special-casing amd64/i386 here, because on ARM you'll
> easily have the same issue (e.g. arm64 system with some 32bit armhf
> binaries) in principle. (Although I don't know if arm64 has multilib or
> only supports real multiarch.)

Of course, do the same for the other archs (hoping this isn't
tedious). Unfortunately, this is not a perfect solution since
ARM doesn't seem to have multilib: the dependencies on

  https://packages.debian.org/sid/gcc-5-multilib

can give an idea for the various architectures.

-- 
Vincent Lefèvre <[email protected]> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to