gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Build of gpsd fails


From: Chris Kuethe
Subject: Re: [gpsd-dev] Build of gpsd fails
Date: Mon, 30 Apr 2012 14:12:10 -0700

 -O2 -pthread -I/usr/local/include/libusb-1.0 libgpsd_core.c
libgpsd_core.c:29:23: error: linux/can.h: No such file or directory
libgpsd_core.c:30:27: error: linux/can/raw.h: No such file or directory
libgpsd_core.c: In function 'gpsd_open':
libgpsd_core.c:313: error: storage size of 'addr' isn't known
libgpsd_core.c:317: error: 'PF_CAN' undeclared (first use in this function)
libgpsd_core.c:317: error: (Each undeclared identifier is reported only once
libgpsd_core.c:317: error: for each function it appears in.)
libgpsd_core.c:317: error: 'CAN_RAW' undeclared (first use in this function)
libgpsd_core.c:334: error: 'SIOCGIFINDEX' undeclared (first use in
this function)
libgpsd_core.c:344: error: 'AF_CAN' undeclared (first use in this function)
libgpsd_core.c:345: error: 'struct ifreq' has no member named 'ifr_ifindex'
libgpsd_core.c:313: warning: unused variable 'addr'
scons: *** [libgpsd_core.o] Error 1
scons: building terminated because of errors.


On Mon, Apr 30, 2012 at 14:01, Bernd Zeimetz <address@hidden> wrote:
> Hi,
>
>>       There are hints, that -lrt library reference should be after the
>> library using it for newer gcc's.
>>
>>       The following command with "-lrt" at the end of the command line
>> works.
>
> my guess is that the reason for your issue was that the check for libcap 
> should
> not overwrite rtlibs but define something like caplibs and use those later,
> additionally to rtlibs.
>
> if config.CheckLib('libcap'):
>    confdefs.append("#define HAVE_LIBCAP 1\n")
>    # System library - no special flags
>    rtlibs = ["-lcap"]
> [....]
>
>
> I've pushed a fix for that (including a hopefully proper definition of 
> necessary
> linkage with -lcap), please pull the current head and see if it works for you.
>
>
> Cheers,
>
> Bernd
>
>
> --
>  Bernd Zeimetz                            Debian GNU/Linux Developer
>  http://bzed.de                                http://www.debian.org
>  GPG Fingerprint: ECA1 E3F2 8E11 2432 D485  DD95 EB36 171A 6FF9 435F
>



-- 
GDB has a 'break' feature; why doesn't it have 'fix' too?



reply via email to

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