gpsd-dev
[Top][All Lists]
Advanced

[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: Mon, 27 Jul 2020 14:36:48 -0700

Yo Bernd!

On Mon, 27 Jul 2020 23:05:14 +0200
Bernd Zeimetz <bernd@bzed.de> wrote:

> > 
> > libgpsdpacket.so.27.0.0 is properly installed here:
> > 
> >     /usr/local/lib/libgpsdpacket.so.27.0.0  
> 
> Please paste the output of
> 
> 
> ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012

    # ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012
    SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib64")
    SEARCH_DIR("/usr/lib64/binutils/x86_64-pc-linux-gnu/2.33.164")
    SEARCH_DIR("/usr/local/lib64")
    SEARCH_DIR("/lib64")
    SEARCH_DIR("/usr/lib64")
    SEARCH_DIR("/usr/x86_64-pc-linux-gnu/lib")
    SEARCH_DIR("/usr/lib64/binutils/x86_64-pc-linux-gnu/2.33.1")
    SEARCH_DIR("/usr/local/lib")
    SEARCH_DIR("/lib")
    SEARCH_DIR("/usr/lib")

So it looks like gps/packet.py is NOT using the system SEARCH_DIR.

The code does a lot of work to find the library, While this "just works"(tm):

    >>> import ctypes.util
    >>> ctypes.util.find_library("gpsdpacket")
    'libgpsdpacket.so.27'

Is there a good reason for gps/packet.py to work so hard?

Seems to me that the program should look for the lib:

        1) in GPSD_HOME
        2) in current directory
        3) using ctypes.util.find_library()

And, instead of looking for the exact lib version, just check the major
version after loading it.

Does that sound right?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        gem@rellim.com  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: pgpGAEj459roq.pgp
Description: OpenPGP digital signature


reply via email to

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