[Pkg-electronics-devel] Bug#1023082: /usr/bin/kicad: Core applications are not usable

Carsten Schoenert c.schoenert at t-online.de
Sun Oct 30 07:24:41 GMT 2022


Hello Mithat,

I can't reproduce that problem. Not on the machine I prepare package 
uploads and not on a second machine I use for mostly daily work. I've 
added Seth from the KiCad team into the loop.

Looking at the additional information added by reportbug I assume you 
use must use some NVIDIA graphic card, I don't use any graphic display 
hardware from NVIDIA for a long time. I can't deal with potential 
related nvidia issue due not having any environment for this (nor I want 
to). But please read further.

Am 30.10.22 um 04:10 schrieb Mithat Konar:
> The following KiCad applications fail to launch when attempting to do so from
> the main GUI wrapper:
> 
> - Schematic Editor
> - Symbol Editor
> - PCB Editor
> - Footprint Editor
> - Gerber Viewer
> - Drawing Sheet Editor
> 
> eeschema and pcbnew also fail when invoked at the command line. I have not
> tried the others.

Of course I do test such basic usage before I proceed with any package 
upload, as mentioned above I did not see any issues in using the KiCad 
components basically.

> All the launch failures are accompanied by a dialog indicating the following
>
> error: "Failed to load shared library '/usr/bin/<varies>': /lib/x86_64-linux-gnu/libwx_gtk3u_gl-3.2.so.0: undefined symbol: eglCreatePlatformWindowSurface"

The library in question indeed doesn't provide such a symbol.

> $ nm --print-file-name --defined-only --dynamic /lib/x86_64-linux-gnu/libwx_gtk3u_gl-3.2.so.0.1.0 | grep eglCreatePlatformWindowSurface

Searching for the symbol in questions leads to the package libegl1 that 
provides that symbol.

> $ nm --print-file-name --defined-only --dynamic /lib/x86_64-linux-gnu/lib*.so.* | grep eglCreatePlatformWindowSurface
> /lib/x86_64-linux-gnu/libEGL.so.1:0000000000008d20 T eglCreatePlatformWindowSurface
> /lib/x86_64-linux-gnu/libEGL.so.1.1.0:0000000000008d20 T eglCreatePlatformWindowSurface
> /lib/x86_64-linux-gnu/libepoxy.so.0:000000000012e9f0 D epoxy_eglCreatePlatformWindowSurface
> /lib/x86_64-linux-gnu/libepoxy.so.0:000000000012e9e8 D epoxy_eglCreatePlatformWindowSurfaceEXT
> /lib/x86_64-linux-gnu/libepoxy.so.0.0.0:000000000012e9f0 D epoxy_eglCreatePlatformWindowSurface
> /lib/x86_64-linux-gnu/libepoxy.so.0.0.0:000000000012e9e8 D epoxy_eglCreatePlatformWindowSurfaceEXT

> $ apt-file search /lib/x86_64-linux-gnu/libEGL.so.1.1.0
> libegl1: /usr/lib/x86_64-linux-gnu/libEGL.so.1.1.0

> $ apt show kicad | grep Depends | grep libegl1
> 
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
> 
> Depends: ..., libegl1, ...,

So to me the dependency chain is fulfilled so far.

I do not have any deeper knowledge why any KiCad application is 
searching for that specific symbol in your case, but it's also possible 
that there is still some underlinking happen and we need "just" to add a 
missing library.

@Seth
Do you have an idea what's going wrong here?

(holding the reportbug data in place)

> My installation using the upstream flatpak does not have this issue.
> 
> 
> -- System Information:
> Debian Release: bookworm/sid
>    APT prefers unstable
>    APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 5.19.0-2-amd64 (SMP w/8 CPU threads; PREEMPT)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
> 
> Versions of packages kicad depends on:
> ii  libc6                            2.35-4
> ii  libcairo2                        1.16.0-6
> ii  libcurl4                         7.86.0-1
> ii  libegl1                          1.5.0-1
> ii  libgcc-s1                        12.2.0-7
> ii  libgl1                           1.5.0-1
> ii  libglib2.0-0                     2.74.0-3
> ii  libglu1-mesa [libglu1]           9.0.2-1.1
> ii  libgtk-3-0                       3.24.34-3
> ii  libngspice0                      37+ds-1
> ii  libocct-data-exchange-7.6        7.6.3+dfsg1-5
> ii  libocct-foundation-7.6           7.6.3+dfsg1-5
> ii  libocct-modeling-algorithms-7.6  7.6.3+dfsg1-5
> ii  libocct-modeling-data-7.6        7.6.3+dfsg1-5
> ii  libocct-ocaf-7.6                 7.6.3+dfsg1-5
> ii  libpixman-1-0                    0.40.0-1
> ii  libpython3.10                    3.10.8-1
> ii  libstdc++6                       12.2.0-7
> ii  libwxbase3.2-0                   3.2.1+dfsg-1
> ii  libwxgtk3.2-0                    3.2.1+dfsg-1
> ii  python3                          3.10.6-1
> ii  python3-wxgtk4.0                 4.2.0+dfsg-1
> ii  zlib1g                           1:1.2.11.dfsg-4.1
> 
> Versions of packages kicad recommends:
> ii  kicad-demos      6.0.9+dfsg-1
> ii  kicad-libraries  6.0.9+dfsg-1
> ii  xsltproc         1.1.35-1
> 
> Versions of packages kicad suggests:
> ii  extra-xdg-menus                                                      1.0-6
> pn  kicad-doc-ca | kicad-doc-de | kicad-doc-en | kicad-doc-es | kicad-d  <none>
> pn  kicad-packages3d                                                     <none>
> 
> -- no debconf information
> 

-- 
Regards
Carsten



More information about the Pkg-electronics-devel mailing list