undefined symbol: ecrt_slave_config_sdo

More
15 Nov 2020 07:40 #189442 by pradipgor1990
Hi,
I faced the issue "undefined symbol: ecrt_slave_config_sdo" when I ran linuxcnc, I am using below listed configuration.

Current Linux Kernel version
$ 4.9.47-rt37

Linux CNC version
$ 2.9.0~pre0

Current Ethercat etherlab install : hg clone hg.code.sf.net/p/etherlabmaster/code ethercat-hg

Current Ethercat linuxcnc install : github.com/sittner/linuxcnc-ethercat
$ cd linuxcnc-ethercat-master/
$ make

copy lcec_conf ==> ../linuxcnc-ethercat/src/lcec_conf ==> to your linuxcnc sim map (copy it where your ini files is)
copy lcec_so ==> ../linuxcnc-ethercat/src/lcec.so ==> to your home/.../linuxcnc/rtlib/ (this is only for linuxcnc_dev users)

$ Linux cnc
linuxcnc /home/linuxcnc/machinecnc/my-devices/my.ini

#Error log
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/linuxcnc/machinecnc/my-devices'
Machine configuration file is 'my.ini'
Starting LinuxCNC..werealtime
lcec: dlopen: /home/linuxcnc/machinecnc/linuxcnc/linuxcnc-master/rtlib/lcec.so: undefined symbol: ecrt_slave_config_sdo
./my-lathe.hal:16: waitpid failed /home/linuxcnc/machinecnc/linuxcnc/linuxcnc-master/bin/rtapi_app lcec
./my-lathe.hal:16: /home/linuxcnc/machinecnc/linuxcnc/linuxcnc-master/bin/rtapi_app exited without becoming ready
./my-lathe.hal:16: insmod for lcec failed, returned -1
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/linuxcnc/linuxcnc_debug.txt
and
/home/linuxcnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal


I tried many things by refering the post but no luck.
Please help me to find What could be the isssue.

Regards,
Pradip

Please Log in or Create an account to join the conversation.

More
16 Nov 2020 09:06 #189499 by Grotius
Hi Pradip,

In your case it could be a little problem, but where?

It can be a depmod problem.
In the past it could be a file header problem, because you have a undifined symbol.
Is you ethercat bus running? You can do a command for this.

Read This.

Please Log in or Create an account to join the conversation.

More
16 Nov 2020 20:32 - 16 Nov 2020 20:56 #189542 by chimeno
Hello @pradipgor1990
this error "undefined symbol: ecrt_slave_config_sdo" when starting linuxcnc is quite well known, it happens because when compiling linuxcnc-ethercat libethercat.so is not defined in lcec.so, use this command
ldd lcec.so
to see if the way to fix it is linked a
libethercat.so.1
, in the old version in the file realtime.mk and in the new version in the user.mk file, do you have igh-ethercat installed in the
/ opt / etherlab / lib
directory?
You can try the file that I attach modified if it works for you,

Attached link of similar problem in case they can help you.
github.com/sittner/linuxcnc-ethercat/issues/61

Greeting
Chimeno
Attachments:
Last edit: 16 Nov 2020 20:56 by chimeno.

Please Log in or Create an account to join the conversation.

Time to create page: 0.481 seconds
Powered by Kunena Forum