Something messed up in linux emulation

Kevin Oberman rkoberman at gmail.com
Sun Jun 10 04:35:36 UTC 2018


On Sat, Jun 9, 2018 at 1:29 PM, Theron <theron.tarigo at gmail.com> wrote:

> On 06/08/18 16:25, Kevin Oberman wrote:
>
>> Installing linux-c7-gtk2-2.24.31...
>> /compat/linux/usr/bin/gtk-query-immodules-2.0-32: error while loading
>> shared libraries: libpng15.so.15: cannot open shared object file: No such
>> file or directory
>> /compat/linux/usr/bin/gtk-query-immodules-2.0-64: error while loading
>> shared libraries: libpng15.so.15: cannot open shared object file: No such
>> file or directory
>>
>> ===>>> Re-installation of linux-c7-gtk2-2.24.31 complete
>> Note that it did NOT fail.
>>
>> At this point, I am baffled! If this file is required, why was it not
>> installed when I re-installed linux-c7-gtk2?
>>
>> Any idea what could have gone wrong? I'm thinking that I need to
>> re-install
>> all of my linux-c7 ports. this will hopefully fix things, but would like
>> to
>> get an idea of what happened to trigger this mess.
>>
>> The file is part of linux-c7-libpng:
>
> % pkg which /compat/linux/usr/lib/libpng15.so.15
> /compat/linux/usr/lib/libpng15.so.15 was installed by package
> linux-c7-libpng-1.5.13_2
>
> (The 'pkg which' should work on your system, even when the file is
> missing).
> The port linux-c7-libpng is a dependency of linux-c7-gtk2.
> Since some /compat/linux files are unexpectedly missing, it could be a
> good idea to reinstall any linux-c7 ports you are using.
>

I think you miss my point. I know how to install  linux-c7-libpng. My
concern is why this whole set of ports was not already installed. I kept
adding one port after another, but I have no idea where that ends. The
ports  system should install all dependencies automatically. Since only a
single linux emulation port is a dependency, I guessed that linux-c7-gtk2
is the culprit, bu reinstalling it generated that odd message:

> Installing linux-c7-gtk2-2.24.31...
>> /compat/linux/usr/bin/gtk-query-immodules-2.0-32: error while loading
>> shared libraries: libpng15.so.15: cannot open shared object file: No such
>> file or directory
>> /compat/linux/usr/bin/gtk-query-immodules-2.0-64: error while loading
>> shared libraries: libpng15.so.15: cannot open shared object file: No such
>> file or directory
>>
>> ===>>> Re-installation of linux-c7-gtk2-2.24.31 complete
>> Note that it did NOT fail.
>>
>> At this point, I am baffled! If this file is required, why was it not
>> installed when I re-installed linux-c7-gtk2?
>>
>> Any idea what could have gone wrong? I'm thinking that I need to
>> re-install
>> all of my linux-c7 ports. this will hopefully fix things, but would like
>> to
>> get an idea of what happened to trigger this mess.
>>
>> The file is part of linux-c7-libpng:
>
> % pkg which /compat/linux/usr/lib/libpng15.so.15
> /compat/linux/usr/lib/libpng15.so.15 was installed by package
> linux-c7-libpng-1.5.13_2
>
> (The 'pkg which' should work on your system, even when the file is
> missing).
> The port linux-c7-libpng is a dependency of linux-c7-gtk2.
> Since some /compat/linux files are unexpectedly missing, it could be a
> good idea to reinstall any linux-c7 ports you are using.
>

I think you miss my point. I know how to install  linux-c7-libpng. My
concern is why this whole set of ports was not already installed. I kept
adding one port after another, but I have no idea where that ends. The
ports  system should install all dependencies automatically. Since only a
single linux emulation port is a dependency, I guessed that linux-c7-gtk2
is the culprit, bu reinstalling it generated that odd message:
Installing linux-c7-gtk2-2.24.31...
/compat/linux/usr/bin/gtk-query-immodules-2.0-32: error while loading
shared libraries: libpng15.so.15: cannot open shared object file: No such
file or directory

Looking at linux-c7-gtk2, I see "USE_LINUX=      atk gdkpixbuf2 pango
xorglibs". I have already re-installed atk and pango, but the others are
not installed. Since pkg shows that these are not installed, I would have
expected that building linux-c7-gtk2 to have installed them.
/usr/ports/Mk/Uses/linux.mk states "# USE_LINUX     List of Linux packages
to depend on." So I am baffled as to why these ports are not being
installed. (I have tried both portmaster(8) and a simple make(1).) Clearly
something is broken here and it looks a lot like the ports system, mabey
linux.mk.

It may be time for me to open a bug report.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


More information about the freebsd-emulation mailing list