gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] libgps?


From: Eric S. Raymond
Subject: Re: [gpsd-dev] libgps?
Date: Tue, 31 Mar 2015 09:24:26 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

Hal Murray <address@hidden>:
> > Fixed.
> 
> gcc -o gpsd.o -c -Wmissing-prototypes -Wmissing-declarations -O2 
> -DHAVE_SYS_TIMEPPS_H=1 -I/usr/include/libusb-1.0 gpsd.c
> 
> gcc -o gpsd -Wl,-rpath=/home/murray/gpsd/work,--enable-new-dtags 
> -Wl,-rpath=//usr/local/lib,--enable-new-dtags gpsd.o timehint.o shmexport.o 
> dbusexport.o sd_socket.o -L. -lgpsd -lusb-1.0 -lgps -lm
> /usr/bin/ld: ./libgpsd.a(ppsthread.o): undefined reference to symbol 
> 'pthread_create@@GLIBC_2.1'
> /lib/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.
> 
> address@hidden work]$ more .scons-option-cache 
> chrpath = True
> 
> That's on Fedora.

Somehow your configuration thinks gcc doesn't accept the -pthread option.
Try scons --config=force.

The interesting question is how your config cache got damaged.
-- 
                <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>



reply via email to

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