Marc Kleine-Budde wrote:
> Gary Thomas wrote:
>> I'm trying to build the CAN utilities package and having trouble.
>>
>> Firstly, it seems to expect the [berlios.de] SocketCAN include
>> tree, but nothing in the configuration points at that.
>>
>> Also, programs which are not selected by the configuration are
>> still built, just not installed.
>>
>> Most particularly, I'm having trouble with 'canconfig':
>> canconfig.c: In function 'do_show_baudrate':
>> canconfig.c:66: error: 'SIOCGCANBAUDRATE' undeclared (first use in this
>> function)
>> canconfig.c:66: error: (Each undeclared identifier is reported only once
>> canconfig.c:66: error: for each function it appears in.)
>> canconfig.c: In function 'do_set_baudrate':
>> canconfig.c:94: error: 'SIOCSCANBAUDRATE' undeclared (first use in this
>> function)
>> canconfig.c: In function 'cmd_mode':
>> canconfig.c:114: error: 'can_mode_t' undeclared (first use in this function)
>> canconfig.c:114: error: 'mode' undeclared (first use in this function)
>> canconfig.c:114: error: expected expression before ')' token
>> canconfig.c:126: error: 'SIOCSCANMODE' undeclared (first use in this
>> function)
>>
>> Any pointers on how to get this built?
>>
>> n.b. I'm running 1.99.svn (r8991)
>
> please try the latest canutils version 3.0.1
Much better, thanks.
Might I suggest the attached patch (worked for me)?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
Index: rules/canutils.in
===================================================================
--- rules/canutils.in (revision 9080)
+++ rules/canutils.in (working copy)
@@ -2,7 +2,6 @@
menuconfig CANUTILS
tristate
prompt "canutils "
- select KERNEL
help
The canutils package contains tools to configure
and test the Socket CAN framework.
@@ -12,7 +11,7 @@
config CANUTILS_VERSION
prompt "Version"
string
- default "2.0.1"
+ default "3.0.1"
config CANUTILS_CANCONFIG
bool
--
ptxdist mailing list
[email protected]