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: Charles Curley
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: Fri, 20 Oct 2017 10:58:07 -0600

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

> Yo Charles
> 
> I spoke too soon...
> 


> 
> 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
> 

That runs (other than the 'scons install', which I did not do). I did
get a successful 'scons check'.

In the light of this discussion, I edited build.txt, to move all the
cleaning information to the same place, "Reverting to a clean state",
and to add some of the above advice to that section. See the attached.


By the way, it appears you have an unused variable:

driver_ubx.c: In function 'ubx_msg_nav_timegps':
driver_ubx.c:406:9: warning: variable 'fTOW' set but not used
[-Wunused-but-set-variable] int fTOW;
         ^


Also, something in the build process produces read only files:

address@hidden:~/versioned/gpsd$ ll gps_maskdump.*
-r--r--r-- 1 charles charles 2302 Oct 20 10:05 gps_maskdump.c
-rw-r--r-- 1 charles charles 4712 Oct 20 10:05 gps_maskdump.o
-rw-r--r-- 1 charles charles 4656 Oct 20 10:05 gps_maskdump.os
address@hidden:~/versioned/gpsd$ 

That would make it hard to 'rm -r gpsd'. However, some things in
the .git repo are also read only, necessitating 'find  gpsd -type f |
xargs chmod 0600', so it has no practical impact.

I can see the argument for making generated files read only: If they
are generated, the programmer should modify the files from which or by
which they are generated, not those files.

-- 

The right of the people to be secure in their persons, houses, papers,
and effects, against unreasonable searches and seizures, shall not be
violated, and no Warrants shall issue, but upon probable cause,
supported by Oath or affirmation, and particularly describing the
place to be searched, and the persons or things to be seized.
-- U.S. Const. Amendment IV

Key fingerprint = CE5C 6645 A45A 64E4 94C0  809C FFF6 4C48 4ECD DFDB

Attachment: build.txt
Description: Text document


reply via email to

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