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: Mon, 16 Oct 2017 22:22:11 -0600

On Mon, 16 Oct 2017 19:37:48 -0700
"Gary E. Miller" <address@hidden> wrote:

> Yo Charles!
> 
> On Mon, 16 Oct 2017 09:57:53 -0600
> Charles Curley <address@hidden> wrote:
> 
> > If I pull the repo and do not run 'scons sconsclean' I get a clean
> > build.  
> 
> I commited several patches to day to deal with problems in this area.
> 
> Can you try again on git head?  I suspect there are still some issues
> with the cleaning.


gcc -o shared_json.o -c -Wreturn-type -O2 -I/usr/include/dbus-1.0 
-I/usr/lib/x86_64-linux-gnu/dbus-1.0/include shared_json.c
ar rc libgps_static.a ais_json.o bits.o gpsutils.o gpsdclient.o gps_maskdump.o 
hex.o json.o libgps_core.o libgps_dbus.o libgps_json.o libgps_shm.o 
libgps_sock.o netlib.o os_compat.o rtcm2_json.o rtcm3_json.o shared_json.o
ranlib libgps_static.a
gcc -o gpsd gpsd.o timehint.o shmexport.o dbusexport.o sd_socket.o -L. -lgpsd 
-lgps_static -lm -ldbus-1
/usr/bin/ld: ./libgpsd.a(ppsthread.o): undefined reference to symbol 
'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from 
command line
collect2: error: ld returned 1 exit status
scons: *** [gpsd] Error 1
scons: building terminated because of errors.

However!! I then read your git log entries. I again did 'scons
sconsclean'. .sconsign.dblite was still present. So I did
'rm .sconsign.dblite'. Then I got a good build.

In none of this have I run 'scons -c'.



This is on:

# lsb_release -a
LSB Version:    
core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Debian
Description:    Debian GNU/Linux 8.9 (jessie)
Release:        8.9
Codename:       jessie


-- 

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



reply via email to

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