Thank you very much for your reply, I just tried but I get new error. 

The original call for alloc_netdev() is teh next:

dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), &null, ether_setup);

Adding the third argument according with you tip, the line looks like 
follow:

dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), 
&null,“NET_NAME_UNKNOWN”, ether_setup);

When I execute the make modules I get the next errors:

make -C "/usr/src/linux-headers-3.19.0-25-generic" 
M="/usr/local/src/ethercat-1.5.2" modules
make[1]: Entering directory `/usr/src/linux-headers-3.19.0-25-generic'
  CC [M]  /usr/local/src/ethercat-1.5.2/devices/generic.o
/usr/local/src/ethercat-1.5.2/devices/generic.c: In function 
‘ec_gen_device_init’:
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:5: error: stray 
‘\342’ in program
     dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), 
&null,“NET_NAME_UNKNOWN”, ether_setup);
     ^
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:5: error: stray 
‘\200’ in program
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:5: error: stray 
‘\234’ in program
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:5: error: stray 
‘\342’ in program
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:5: error: stray 
‘\200’ in program
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:5: error: stray 
‘\235’ in program
make[3]: *** [/usr/local/src/ethercat-1.5.2/devices/generic.o] Error 1
make[2]: *** [/usr/local/src/ethercat-1.5.2/devices] Error 2
make[1]: *** [_module_/usr/local/src/ethercat-1.5.2] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.19.0-25-generic'
make: *** [modules] Error 2

Maybe I do something wrong.

Thanks again

Best regards

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
David Jiménez Mejías - Gran Telescopio de Canarias S.A

Ingeniero de Operación / Operation Engineer

Centro de Astrofísica de La Palma, C.P 38718, Breña Baja
S/C de Tenerife / España

Email: david.jime...@gtc.iac.es
Tlf: +34 922 425 720 Fax: +34 922 425 725




-----Original Message-----
From: Patrick Brünn <p.bru...@beckhoff.com>
To: David Jiménez Mejías <david.jime...@gtc.iac.es>, 
"etherlab-users@etherlab.org" <etherlab-users@etherlab.org>
Date: Fri, 16 Oct 2015 09:44:31 +0000
Subject: RE: [etherlab-users] Make Module Errors

Hi David,

with Kernel 3.17 the signature of alloc_netdev() changed.

A simple patch would be to add “NET_NAME_UNKNOWN” as third parameter.

 

Regards,

Patrick

---

 

From: etherlab-users [mailto:etherlab-users-boun...@etherlab.org] On Behalf 
Of David Jiménez Mejías
Sent: Freitag, 16. Oktober 2015 10:33
To: etherlab-users@etherlab.org
Subject: [etherlab-users] Make Module Errors

 

Hello!

 

I'm working on Ubuntu 14.04 with 3.19 kernel and I would like to install the 
EtherLab Master on it.

I just done correctly ./configure with the generic driver because de kernel 
3.19 is not supported by my actual driver (e1000e).

make just done correctly too

The make module doesn't correctly, I received the next errors:

 

make -C "/usr/src/linux-headers-3.19.0-25-generic" 
M="/usr/local/src/ethercat-1.5.2" modules
make[1]: Entering directory `/usr/src/linux-headers-3.19.0-25-generic'
  CC [M]  /usr/local/src/ethercat-1.5.2/devices/generic.o
/usr/local/src/ethercat-1.5.2/devices/generic.c: In function 
‘ec_gen_device_init’:
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:77: error: macro 
"alloc_netdev" requires 4 arguments, but only 3 given
     dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), &null, 
ether_setup);
                                                                             
^
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:19: error: 
‘alloc_netdev’ undeclared (first use in this function)
     dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), &null, 
ether_setup);
                   ^
/usr/local/src/ethercat-1.5.2/devices/generic.c:152:19: note: each 
undeclared identifier is reported only once for each function it appears in
/usr/local/src/ethercat-1.5.2/devices/generic.c:146:10: warning: unused 
variable ‘null’ [-Wunused-variable]
     char null = 0x00;
          ^
make[3]: *** [/usr/local/src/ethercat-1.5.2/devices/generic.o] Error 1
make[2]: *** [/usr/local/src/ethercat-1.5.2/devices] Error 2
make[1]: *** [_module_/usr/local/src/ethercat-1.5.2] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.19.0-25-generic'
make: *** [modules] Error 2

 

 

Does someone know something about this error? 

 

Thank you very much

 

Best regards

 

David J.M

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

David Jiménez Mejías - Gran Telescopio de Canarias S.A

 

Ingeniero de Operación / Operation Engineer

 

Centro de Astrofísica de La Palma, C.P 38718, Breña Baja

S/C de Tenerife / España

 

Email: david.jime...@gtc.iac.es

Tlf: +34 922 425 720 Fax: +34 922 425 725

 

 

 


----------
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de 
Datos, acceda a http://www.gtc.iac.es/gtc/legal_es.php
WARNING: For more information on privacy and fulfilment of the Law 
concerning the Protection of Data, consult 
http://www.gtc.iac.es/gtc/legal_es.php


Beckhoff Automation GmbH & Co. KG | Managing Director: Dipl. Phys. Hans 
Beckhoff
Registered office: Verl, Germany | Register court: Guetersloh HRA 7075


----------
ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de 
Datos, acceda a http://www.gtc.iac.es/gtc/legal_es.php
WARNING: For more information on privacy and fulfilment of the Law concerning 
the Protection of Data, consult http://www.gtc.iac.es/gtc/legal_es.php
_______________________________________________
etherlab-users mailing list
etherlab-users@etherlab.org
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to