[etherlab-users] EtherCAT Master - Error - make modules

Marthiens marthiens at tecodrive.com
Thu Aug 25 21:58:37 CEST 2016


Hallo Florian,

ich bekomme einen Fehler in make modules. Kannst Du helfen?

Dankeschön
Gruß
Olaf
marthiens at tecodrive.com

*Rechner*
==========================================
Linux Mint Cinnamon 18
Linux Kernel 4.4.0-21-generic x86_64 (64 bit)

*Installation - Befehle*
==========================================
hg clone http://hg.code.sf.net/p/etherlabmaster/code ethercat-hg
cd ethercat-hg
./bootstrap
./configure --enable-generic --disable-8139too
make

/*make modules << Problem*/

*Fehlermeldung*
==========================================
make -C "/usr/src/linux-headers-4.4.0-21-generic" 
M="/home/schnick/ethercat-hg" modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'
   CC [M]  /home/schnick/ethercat-hg/devices/generic.o
In file included from include/linux/skbuff.h:24:0,
                  from include/linux/if_arp.h:26,
                  from /home/schnick/ethercat-hg/devices/generic.c:40:
/home/schnick/ethercat-hg/devices/generic.c: In function 
‘ec_gen_device_create_socket’:
include/linux/socket.h:179:19: *warning*: passing argument 1 of 
‘sock_create_kern’ makes pointer from integer without a cast 
[-Wint-conversion]
#define AF_PACKET 17 /* Packet family  */
*^*
include/linux/socket.h:225:19: *note*: in expansion of macro ‘AF_PACKET’
#define PF_PACKET AF_PACKET
*^*
/home/schnick/ethercat-hg/devices/generic.c:215:28: *note*: in expansion 
of macro ‘PF_PACKET’
ret = sock_create_kern(PF_PACKET, SOCK_RAW, htons(ETH_P_ETHERCAT),
*^*
In file included from include/linux/skbuff.h:29:0,
                  from include/linux/if_arp.h:26,
                  from /home/schnick/ethercat-hg/devices/generic.c:40:
include/linux/net.h:216:5: *note:* expected ‘struct net *’ but argument 
is of type ‘int’
int sock_create_kern(struct net *net, int family, int type, int proto, 
struct socket **res);
*^*
/home/schnick/ethercat-hg/devices/generic.c:216:13: *warning*: passing 
argument 4 of ‘sock_create_kern’ makes integer from pointer without a 
cast [-Wint-conversion]
&dev->socket);
*^*
In file included from include/linux/skbuff.h:29:0,
                  from include/linux/if_arp.h:26,
                  from /home/schnick/ethercat-hg/devices/generic.c:40:
include/linux/net.h:216:5: *note*: expected ‘int’ but argument is of 
type ‘struct socket **’
  int sock_create_kern(struct net *net, int family, int type, int proto, 
struct socket **res);
*^*
/home/schnick*/ethercat-hg/devices/generic.c:215:11: **error*: too few 
arguments to function ‘sock_create_kern’
/ret //=//sock_create_kern(PF_PACKET, SOCK_RAW, htons(ETH_P_ETHERCAT),/
*^*
In file included from include/linux/skbuff.h:29:0,
                  from include/linux/if_arp.h:26,
                  from /home/schnick/ethercat-hg/devices/generic.c:40:
include/linux/net.h:216:5: *note*: declared here
int sock_create_kern(struct net *net, int family, int type, int proto, 
struct socket **res);
*^*
scripts/Makefile.build:258: recipe for target 
'/home/schnick/ethercat-hg/devices/generic.o' failed
make[3]: *** [/home/schnick/ethercat-hg/devices/generic.o] Error 1
scripts/Makefile.build:403: recipe for target 
'/home/schnick/ethercat-hg/devices' failed
make[2]: *** [/home/schnick/ethercat-hg/devices] Error 2
Makefile:1396: recipe for target '_module_/home/schnick/ethercat-hg' failed
make[1]: *** [_module_/home/schnick/ethercat-hg] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'
Makefile:933: recipe for target 'modules' failed
make: *** [modules] Error 2


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20160825/8314586d/attachment-0002.htm>


More information about the Etherlab-users mailing list