[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>
- [gpsd-dev] Fundamental problems with dynamic linking, (continued)
- Re: [gpsd-dev] libgps?, Bernd Zeimetz, 2015/03/24
- Re: [gpsd-dev] libgps?, Sanjeev Gupta, 2015/03/24
- Re: [gpsd-dev] libgps?, Gary E. Miller, 2015/03/24
- Re: [gpsd-dev] libgps?, Eric S. Raymond, 2015/03/31
- Re: [gpsd-dev] libgps?, Hal Murray, 2015/03/31
- Re: [gpsd-dev] libgps?, Eric S. Raymond, 2015/03/31
- Re: [gpsd-dev] libgps?, Hal Murray, 2015/03/31
- Re: [gpsd-dev] libgps?,
Eric S. Raymond <=
- Re: [gpsd-dev] libgps?, Hal Murray, 2015/03/31
- Re: [gpsd-dev] libgps?, Eric S. Raymond, 2015/03/31
- Re: [gpsd-dev] libgps?, Eric S. Raymond, 2015/03/23
- Re: [gpsd-dev] libgps?, Gary E. Miller, 2015/03/23
- Re: [gpsd-dev] libgps?, Eric S. Raymond, 2015/03/23
- Re: [gpsd-dev] libgps?, Gary E. Miller, 2015/03/23
- Re: [gpsd-dev] libgps?, Hal Murray, 2015/03/23
- Re: [gpsd-dev] libgps?, Eric S. Raymond, 2015/03/23
- Re: [gpsd-dev] libgps?, Jason Azze, 2015/03/23
- Re: [gpsd-dev] libgps?, Hal Murray, 2015/03/23