[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ✘"Can't find packet library")

From: Gary E. Miller
Subject: Re: ✘"Can't find packet library")
Date: Tue, 28 Jul 2020 11:54:56 -0700

Yo Bernd!

On Tue, 28 Jul 2020 13:01:57 +0200
Bernd Zeimetz <> wrote:

> On 7/27/20 11:36 PM, Gary E. Miller wrote:
> >         3) using ctypes.util.find_library()  
> as discussed before that won't work in general as it will use the
> compiler way to find libraries

Nope.  It uses the OS specific dlopen() from libc.  The macOS dlopen()
and the Linux dlopen() act very differently.

> - and packaged versions of gpsd will
> not ship, you'll only have

Which is what is currently hard coded by SConstruct into gps/

> With all the @FOO@ magic in the python stuff already, can't we just
> write the libdir into the python file to search in after checking for

Nope.  Several reasons.  Some distros, like Gentoo, move libs around
after install.  Current behavior, for testing, is to use the local
copy so you can run "scons check" before installing.  Breaking that
would be a huge back-compatibility failure as well as not behaving
as normal Python does.

The code needs to obey the "normal" rules for finding libraries.

How about folks hold off comments for another day.  I have changed the
code in my private branch, and added commnts on what it does and many of
the gotchas.

Once that is pushed, go ahead and double check.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpAMldre1vZ9.pgp
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]