<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hallo Florian,<br>
<br>
ich bekomme einen Fehler in make modules. Kannst Du helfen?<br>
<br>
Dankeschön<br>
Gruß<br>
Olaf<br>
<a class="moz-txt-link-abbreviated" href="mailto:marthiens@tecodrive.com">marthiens@tecodrive.com</a><br>
<br>
<b>Rechner</b><br>
==========================================<br>
Linux Mint Cinnamon 18<br>
Linux Kernel 4.4.0-21-generic x86_64 (64 bit)<br>
<br>
<b>Installation - Befehle</b><br>
==========================================<br>
hg clone <a class="moz-txt-link-freetext" href="http://hg.code.sf.net/p/etherlabmaster/code">http://hg.code.sf.net/p/etherlabmaster/code</a> ethercat-hg<br>
cd ethercat-hg<br>
./bootstrap<br>
./configure --enable-generic --disable-8139too<br>
make<br>
<br>
<i><b>make modules << Problem</b></i><br>
<br>
<b>Fehlermeldung</b><br>
==========================================<br>
make -C "/usr/src/linux-headers-4.4.0-21-generic"
M="/home/schnick/ethercat-hg" modules<br>
make[1]: Entering directory
'/usr/src/linux-headers-4.4.0-21-generic'<br>
CC [M] /home/schnick/ethercat-hg/devices/generic.o<br>
In file included from include/linux/skbuff.h:24:0,<br>
from include/linux/if_arp.h:26,<br>
from
/home/schnick/ethercat-hg/devices/generic.c:40:<br>
/home/schnick/ethercat-hg/devices/generic.c: In function
‘ec_gen_device_create_socket’:<br>
include/linux/socket.h:179:19: <b>warning</b>: passing argument 1
of ‘sock_create_kern’ makes pointer from integer without a cast
[-Wint-conversion]<br>
<font color="#3366ff">#define AF_PACKET 17 /* Packet family */</font><br>
<b>^</b><br>
include/linux/socket.h:225:19: <b>note</b>: in expansion of macro
‘AF_PACKET’<br>
<font color="#3366ff">#define PF_PACKET AF_PACKET</font><br>
<b>^</b><br>
/home/schnick/ethercat-hg/devices/generic.c:215:28: <b>note</b>: in
expansion of macro ‘PF_PACKET’<br>
<font color="#3366ff">ret = sock_create_kern(PF_PACKET,
SOCK_RAW, htons(ETH_P_ETHERCAT),</font><br>
<b>^</b><br>
In file included from include/linux/skbuff.h:29:0,<br>
from include/linux/if_arp.h:26,<br>
from
/home/schnick/ethercat-hg/devices/generic.c:40:<br>
include/linux/net.h:216:5: <b>note:</b> expected ‘struct net *’ but
argument is of type ‘int’<br>
<font color="#3366ff">int sock_create_kern(struct net *net, int
family, int type, int proto, struct socket **res);</font><br>
<b>^</b><br>
/home/schnick/ethercat-hg/devices/generic.c:216:13: <b>warning</b>:
passing argument 4 of ‘sock_create_kern’ makes integer from pointer
without a cast [-Wint-conversion]<br>
<font color="#3366ff">&dev->socket);</font><br>
<b>^</b><br>
In file included from include/linux/skbuff.h:29:0,<br>
from include/linux/if_arp.h:26,<br>
from
/home/schnick/ethercat-hg/devices/generic.c:40:<br>
include/linux/net.h:216:5: <b>note</b>: expected ‘int’ but argument
is of type ‘struct socket **’<br>
<font color="#3366ff"> int sock_create_kern(struct net *net, int
family, int type, int proto, struct socket **res);</font><br>
<b>^</b><br>
/home/schnick<b>/ethercat-hg/devices/generic.c:215:11: </b><b>error</b>:
too few arguments to function ‘sock_create_kern’<br>
<font color="#3366ff"><i>ret </i><i>=</i><i>
sock_create_kern(PF_PACKET, SOCK_RAW, htons(ETH_P_ETHERCAT),</i></font><br>
<b>^</b><br>
In file included from include/linux/skbuff.h:29:0,<br>
from include/linux/if_arp.h:26,<br>
from
/home/schnick/ethercat-hg/devices/generic.c:40:<br>
include/linux/net.h:216:5: <b>note</b>: declared here<br>
<font color="#3366ff">int sock_create_kern(struct net *net, int
family, int type, int proto, struct socket **res);</font><br>
<b>^</b><br>
scripts/Makefile.build:258: recipe for target
'/home/schnick/ethercat-hg/devices/generic.o' failed<br>
make[3]: *** [/home/schnick/ethercat-hg/devices/generic.o] Error 1<br>
scripts/Makefile.build:403: recipe for target
'/home/schnick/ethercat-hg/devices' failed<br>
make[2]: *** [/home/schnick/ethercat-hg/devices] Error 2<br>
Makefile:1396: recipe for target '_module_/home/schnick/ethercat-hg'
failed<br>
make[1]: *** [_module_/home/schnick/ethercat-hg] Error 2<br>
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'<br>
Makefile:933: recipe for target 'modules' failed<br>
make: *** [modules] Error 2<br>
<br>
<br>
</body>
</html>