From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Gabriel Manriquez <gmanriquez@wegmannusa.com>
Cc: linux-can@vger.kernel.org
Subject: Re: socketCan build fails
Date: Thu, 23 Feb 2012 18:21:59 +0100 [thread overview]
Message-ID: <4F4675B7.4040605@hartkopp.net> (raw)
In-Reply-To: <4F4654F6.8010201@wegmannusa.com>
On 23.02.2012 16:02, Gabriel Manriquez wrote:
> Hello,
>
> I'm trying to install the socketcan package for the first time. I just
> checked out the package today.
> I'm following the instructions in the README file but when I issue the command:
>
> make CC=gcc-4.3
>
> I get errors. See output below:
>
> host:~/socketCan/kernel/2.6# make CC=gcc-4.3
> make -C /lib/modules/2.6.35.11/build M=/root/socketCan/kernel/2.6 modules
> TOPDIR=/root/socketCan/kernel/2.6
> make[1]: Entering directory `/usr/src/linux-2.6.35.11'
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/vcan.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/slcan.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/dev.o
> LD [M] /root/socketCan/kernel/2.6/drivers/net/can/can-dev.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/esd_pci331.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/mcp251x.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/cc770/cc770.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/cc770/cc770_isa.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/sja1000.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/sja1000_isa.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/sja1000_platform.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/ems_pci.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/ems_104m.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/esd_pci.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/ixxat_pci.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/plx_pci.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/peak_pci.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/pipcan.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/sja1000/kvaser_pci.o
> CC [M] /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.o
> /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.c: In function
> `ems_usb_write_bulk_callback':
> /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.c:525: error: implicit
> declaration of function `usb_buffer_free'
> /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.c: In function
> `ems_usb_start':
> /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.c:623: error: implicit
> declaration of function `usb_buffer_alloc'
> /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.c:624: warning:
> assignment makes pointer from integer without a cast
> /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.c: In function
> `ems_usb_start_xmit':
> /root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.c:790: warning:
> assignment makes pointer from integer without a cast
> make[4]: *** [/root/socketCan/kernel/2.6/drivers/net/can/usb/ems_usb.o] Error 1
> make[3]: *** [/root/socketCan/kernel/2.6/drivers/net/can/usb] Error 2
> make[2]: *** [/root/socketCan/kernel/2.6/drivers/net/can] Error 2
> make[1]: *** [_module_/root/socketCan/kernel/2.6] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.35.11'
> make: *** [modules] Error 2
>
>
> Any ideas on what could be causing this??
Yes.
> I'm running on Linux (Lenny) kernel version 2.6
I assume that's a 2.6.32 then right?
The content of the kernel/2.6 directory is mainly needed for older Kernels
that do not have SocketCAN support (which was introduced in 2.6.25).
Therefore not all drivers are maintained (e.g. the EMS USB driver is already
in the mainline Kernel).
Why do you need to compile these kernel/2.6 path?
SocketCAN is already included in your Debian Lenny kernel.
Do you need a specific CAN driver?
Regards,
Oliver
next prev parent reply other threads:[~2012-02-23 17:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-23 15:02 socketCan build fails Gabriel Manriquez
2012-02-23 17:21 ` Oliver Hartkopp [this message]
2012-02-23 17:33 ` Gabriel Manriquez
2012-02-23 17:48 ` Oliver Hartkopp
2012-02-24 13:46 ` Gabriel Manriquez
2012-02-27 9:12 ` Steffen Rose
2012-02-27 9:32 ` Wolfgang Grandegger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F4675B7.4040605@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=gmanriquez@wegmannusa.com \
--cc=linux-can@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).