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

Olaf Marthiens marthiens at tecodrive.com
Fri Aug 26 14:20:30 CEST 2016


Thank you, John.
it fixed.
Now, 
sudo make install  << ok
sudo make modules_install << not ok, see Report
have you an idea?
Error Report
===============================================================
make -C "/usr/src/linux-headers-4.4.0-21-generic"
M="/home/schnick/ethercat-hg" \
	INSTALL_MOD_DIR="ethercat"
modules_install
make[1]: Entering directory '/usr/src/linux-headers-
4.4.0-21-generic'
  INSTALL /home/schnick/ethercat-
hg/devices/ec_generic.ko
At main.c:222:
- SSL error:02001002:system
library:fopen:No such file or directory: bss_file.c:175
- SSL
error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
si
gn-file: certs/signing_key.pem: No such file or directory
  INSTALL
/home/schnick/ethercat-hg/examples/mini/ec_mini.ko
At main.c:222:
- SSL
error:02001002:system library:fopen:No such file or directory:
bss_file.c:175
- SSL error:2006D080:BIO routines:BIO_new_file:no such
file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or
directory
  INSTALL /home/schnick/ethercat-hg/master/ec_master.ko
At
main.c:222:
- SSL error:02001002:system library:fopen:No such file or
directory: bss_file.c:175
- SSL error:2006D080:BIO
routines:BIO_new_file:no such file: bss_file.c:178
sign-file:
certs/signing_key.pem: No such file or directory
  DEPMOD  4.4.0-21-
generic
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-
generic'
===============================================================
Regards,
Olaf
Am Freitag, den 26.08.2016, 13:02 +0200 schrieb John Erlandsson:
> Try changing line 215 in devices/generic.c from ret =
> sock_create_kern(PF_PACKET, SOCK_RAW, htons(ETH_P_ETHERCAT), dev-
> >socket); to 
> ret = sock_create_kern(&init_net, PF_PACKET, SOCK_RAW,
> htons(ETH_P_ETHERCAT), dev->socket);
> 
> //John
> 
> On 2016-08-25 21:58, Marthiens wrote:
> > 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
> > 
> > 
> > 
> > 
> > _______________________________________________
> > etherlab-users mailing list
> > etherlab-users at etherlab.org
> > http://lists.etherlab.org/mailman/listinfo/etherlab-users
>  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20160826/6bf7e16a/attachment-0004.htm>


More information about the Etherlab-users mailing list