gpsd-users
[Top][All Lists]
Advanced

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

Re: [gpsd-users] /usr/bin/ld: ./libgpsd.a(ppsthread.o): undefined refere


From: Gary E. Miller
Subject: Re: [gpsd-users] /usr/bin/ld: ./libgpsd.a(ppsthread.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' after 'scons sconsclean'
Date: Wed, 18 Oct 2017 13:22:52 -0700

Yo Charles

I spoke too soon...

On Wed, 18 Oct 2017 12:52:38 -0700
"Gary E. Miller" <address@hidden> wrote:

> Try this:
>     git clone https://git.savannah.nongnu.org/git/gpsd.git
>     cd gpsd
>     scons sconsclean
>     scons -c
>     scons
> 
> Yea, it is weird that the 'scons -c' restores a default build config.


Simple 'scons -c' is not enough.  When I do that I duplicate your
earlier error:

/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
./libgpsd.a(ppsthread.o): undefined reference to symbol 
'pthread_create@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Here is the script I use that always works:

    git clone https://git.savannah.nongnu.org/git/gpsd.git
    cd gpsd
    scons --clean
    scons distclean
    scons sconsclean
    scons --config=force && scons install

Looks like your issue is the configuration part does not work well by
default, and what does work is not preoprtly documented.

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


reply via email to

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