kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #38189
Re: eeschema depends on libngspice.so instead of libngspice.so.0?
-
To:
<kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Maciej Suminski <maciej.suminski@xxxxxxx>
-
Date:
Fri, 26 Oct 2018 22:30:03 +0200
-
Authentication-results:
spf=pass (sender IP is 188.184.36.46) smtp.mailfrom=cern.ch; lists.launchpad.net; dkim=none (message not signed) header.d=none;lists.launchpad.net; dmarc=bestguesspass action=none header.from=cern.ch;
-
Autocrypt:
addr=maciej.suminski@xxxxxxx; prefer-encrypt=mutual; keydata= xsBNBFKfmAwBCAC9tak+4mDO1WiNnAwegusPBMEdl+sV35XeaU4PGSt33mPSlXB2klamg4ih QUykvuWqNEg2KyTvCSKNfnHTpzeeFegEsIwWFdhbIc4uUAD6CHl4+uGTXQiMh1+IJkgLmwuD RCEx9mSKbdzzTKz05w+fzzT3mNfko8NICWlcmhFgo2RXnQRTqFg7CNNBpx4kr4+AWIvb+Rha AVMLVJj1s05+STGyFucu6sZmTmOC53ZtkV8HchJeGuQL0LPkjvX0VKGE3gkvuP4iLBcgFtNC Kcu/L6FmWd24m2IhWaHXoWLBiVFw7gGzUdB7gSAiNO1+SoWX+99rbud7RvqV49vOgoqbABEB AAHNKU1hY2llaiBTdW1pbnNraSA8bWFjaWVqLnN1bWluc2tpQGNlcm4uY2g+wsB5BBMBAgAj BQJSn5gMAhsDBwsJCAcDAgEGFQgCCQoLBBYCAwECHgECF4AACgkQFHAa7WGlsnU/JQf5AYW0 oFH+jOykZvlRkRZMoqw1vZGOHeRPK92vbjeiau/hALYX1FBvZMx+JMmVHN7DkRIY7bVoiJ6N n4Byn//BSd9F9eXjAphYVuBg2Xe5wp3/l9/z2Iw8KeLpfKAtfIybgpycvTuUxFIxm9mtpPt+ AoNFKBDhfLcpZLJTW7AwwpnzP+GDdjszjnW6rMt8Aq55liR+y/TZfz/tTEDcUcSPLlJBTmda TmkO5aPxPmeCeDMOT3YEd+bK57V5b7RgtqTdIT6CW7tjQKBPJbIGa8PQ0tUfz0yCBEPWghnY w+B/2JeArrRXDui78cGgTDy1ocQNAm3havk2WO2qykxziY6Owc7ATQRSn5gMAQgAxw+MRllT IPNnCeOAbRgX1KRzo7+7WpSIbmhrBzLY0O1SyIa7U05E6+4jDHDfDpSLqc61an1+M69e6l9Z E3ve3hymtj5ucXZQnveQ5klD6z5FBC/04of/YyrS+h6iRSM0nOmu1JOIqM0S2OzwsKRsS86r jCtRE5OxoBDCIB4xNPitezs4uvLoVfO3mVYUhiPRZMtTCInEi+tlM+AmaPjRkPAfhd0wsOjk oxkuJWEnZ8U8oHpeL0uqANZgLlIiT5yJMWsyyqlK01hdFbuIydIFFiyXJw1HDTXWX+tMxJrX VEvQJZALof9RU/jntqGltnQXArUgPMSGGu1f+7AH/CuMyQARAQABwsBfBBgBAgAJBQJSn5gM AhsMAAoJEBRwGu1hpbJ1maAH/RZPbvXaNIOouHZlnlkq/WORHxjkKfve+AbE62Ed8yFIwlAj tyZGKeEG9hDJl6f9BxDv+9qunTfWfXQuHxNIpdXstkxQIx4m043Kx3h7VdEmg53ybeGNgpvz BYk5HdgCH3yP6UbGNiel6xZOywmvpru3pEKNg4mJhzxm9JCG+djrvbRh+BZNOkDBgaSiCAuJ q6Ffo9Qk/qfl6Uim9G7GKSS4930ZQ2GoVObe+jXixOhWXFSDhGKX5meABmELJ9XTcW3Pp6XC 0KXOE2p0EHQPmFvXdU6OePI72jTgRzPJXRXbPkL0/NUfbZfxS/xnAG8jmODc2ufbtrvE2jPu INX35u4=
-
In-reply-to:
<64cacd61-5f1c-5ce9-3adf-ebdf669ee147@t-online.de>
-
Openpgp:
preference=signencrypt
-
Spamdiagnosticmetadata:
NSPM
-
Spamdiagnosticoutput:
1:99
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0
Hi Carsten,
On 10/26/18 9:22 PM, Carsten Schoenert wrote:
> Hi,
>
> I got a bug report [1] for KiCad in Debian testing/unstable because of a
> not working ngspice based simulation in eeschema.
>
> I was first searching for the reason why the packaging isn't detecting
> that the assumed library libngspice.so.0.0.0 was detected as a dependency.
> The bugreporter stated that he is needed the package libnsgpice0-dev to
> get eeschema working with simulation. So I tried around this information
> and the reporter is right. If I start eeschema without this package
> installed I get an error message that libngspice.so was not found.
>
> This is an error in my eyes because eeschema is not looking for the
> needed library with the API version it's build against. As libngspice is
> using a API version 0 the correct library to look for would be
> libngspice.so.0 and not libngspice.so that is normally a symlink to the
> most recent version of the library and only used while linking.
> Thus we ship -dev packages in Debian with a symlink of a file libfoo.so
> to full versioned named library. For libngspice0 this looks like this:
>
>> $ ls -l /usr/lib/x86_64-linux-gnu/libngspice.so*
>> lrwxrwxrwx 1 root root 19 Okt 15 19:50 /usr/lib/x86_64-linux-gnu/libngspice.so -> libngspice.so.0.0.0
>> lrwxrwxrwx 1 root root 19 Okt 15 19:50 /usr/lib/x86_64-linux-gnu/libngspice.so.0 -> libngspice.so.0.0.0
>> -rw-r--r-- 1 root root 7091024 Okt 15 19:50 /usr/lib/x86_64-linux-gnu/libngspice.so.0.0.0
>
>> $ dpkg -S /usr/lib/x86_64-linux-gnu/libngspice.so
>> libngspice0-dev:amd64: /usr/lib/x86_64-linux-gnu/libngspice.so
> $ dpkg -S /usr/lib/x86_64-linux-gnu/libngspice.so.0.0.0
>> libngspice0:amd64: /usr/lib/x86_64-linux-gnu/libngspice.so.0.0.0
What about libngspice.so.0 symlink? Which package ships that? Anyway, it
makes sense to request a particular version of the library in case the
API changes in the future.
> So looking manually at the binaries build from the kicad source by ldd I
> can see a lot linked libraries but no library libngspice.so.0! Seems the
> library is simply opened by dlopen. So that's the reason why the
> packaging isn't adding a dependency on the package libngspice0.
You are correct. The library used to be linked with eeschema, but we
have faced problems that could be resolved only by reloading the
library. I am afraid it has to stay this way for the time being.
Regards,
Orson
> [1] https:/bugs.debian.org/911965
>
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups
References