<html><head>
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
  </head>
  <body><div>Thank you, John.</div><div><br></div><div>it fixed.</div><div><br></div><div>Now, </div><div>sudo make install  << ok</div><div>sudo make modules_install << not ok, see Report</div><div><br></div><div>have you an idea?</div><div><br></div><div>Error Report</div><div>===============================================================</div><div><div>make -C "/usr/src/linux-headers-4.4.0-21-generic" M="/home/schnick/ethercat-hg" \</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>INSTALL_MOD_DIR="ethercat" modules_install</div><div>make[1]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'</div><div>  INSTALL /home/schnick/ethercat-hg/devices/ec_generic.ko</div><div>At main.c:222:</div><div>- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175</div><div>- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178</div><div>sign-file: certs/signing_key.pem: No such file or directory</div><div>  INSTALL /home/schnick/ethercat-hg/examples/mini/ec_mini.ko</div><div>At main.c:222:</div><div>- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175</div><div>- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178</div><div>sign-file: certs/signing_key.pem: No such file or directory</div><div>  INSTALL /home/schnick/ethercat-hg/master/ec_master.ko</div><div>At main.c:222:</div><div>- SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175</div><div>- SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178</div><div>sign-file: certs/signing_key.pem: No such file or directory</div><div>  DEPMOD  4.4.0-21-generic</div><div>make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'</div><div><br></div><div>===============================================================</div><div><br></div><div>Regards,</div><div>Olaf</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div>Am Freitag, den 26.08.2016, 13:02 +0200 schrieb John Erlandsson:</div><blockquote type="cite">
    <p>Try changing line 215 in devices/generic.c from <font color="#3366ff"><i>ret </i><i>=</i><i>
          sock_create_kern(PF_PACKET, SOCK_RAW, htons(ETH_P_ETHERCAT),
          dev->socket); <font color="#000000">to</font> </i></font><br>
      <font color="#3366ff"><i>ret </i><i>=</i><i>
          sock_create_kern(&init_net, PF_PACKET, SOCK_RAW,
          htons(ETH_P_ETHERCAT), dev->socket);</i></font></p>
    <br>
    //John<br>
    <br>
    <div class="moz-cite-prefix">On 2016-08-25 21:58, Marthiens wrote:<br>
    </div>
    <blockquote cite="mid:57BF4DED.9040007@tecodrive.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      Hallo Florian,<br>
      <br>
      ich bekomme einen Fehler in make modules. Kannst Du helfen?<br>
      <br>
      Dankeschön<br>
      Gruß<br>
      Olaf<br>
      <a moz-do-not-send="true" 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 moz-do-not-send="true" 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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
etherlab-users mailing list
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a>
<a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a>
</pre>
    </blockquote>
    <br>
  

</blockquote></body></html>