You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to compile ingenialink on Ubuntu 22.04 I'm getting the following error in the linking step. Any suggestions here?
[ 92%] Linking C shared library libingenialink.so /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/servo.c.o:(.bss+0x0): multiple definition of il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/servo.c.o:(.bss+0x40): multiple definition of il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/net.c.o:(.bss+0x0): multiple definition of il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/net.c.o:(.bss+0x40): multiple definition of il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/servo.c.o:(.bss+0x0): multiple definition of il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/servo.c.o:(.bss+0x40): multiple definition of il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/net.c.o:(.bss+0x0): multiple definition of il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/net.c.o:(.bss+0x40): multiple definition of il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/servo.c.o:(.bss+0x0): multiple definition of il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/servo.c.o:(.bss+0x40): multiple definition of il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/net.c.o:(.bss+0x0): multiple definition of il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/net.c.o:(.bss+0x40): multiple definition of il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/servo.c.o:(.bss+0x0): multiple definition of il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here
/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/servo.c.o:(.bss+0x40): multiple definition of il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/ingenialink.dir/build.make:835: libingenialink.so] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/ingenialink.dir/all] Error 2 gmake: *** [Makefile:156: all] Error 2
The text was updated successfully, but these errors were encountered:
Okay there are global variables (il_net_monitoring_mapping_register and il_net_disturbance_mapping_register) in include/ingenialink/net.h and after commenting them out the linker is fine.
When trying to compile ingenialink on Ubuntu 22.04 I'm getting the following error in the linking step. Any suggestions here?
[ 92%] Linking C shared library libingenialink.so /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/servo.c.o:(.bss+0x0): multiple definition of
il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/servo.c.o:(.bss+0x40): multiple definition of
il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/net.c.o:(.bss+0x0): multiple definition of
il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/net.c.o:(.bss+0x40): multiple definition of
il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/servo.c.o:(.bss+0x0): multiple definition of
il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/base/servo.c.o:(.bss+0x40): multiple definition of
il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/net.c.o:(.bss+0x0): multiple definition of
il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/net.c.o:(.bss+0x40): multiple definition of
il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/servo.c.o:(.bss+0x0): multiple definition of
il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/eth/servo.c.o:(.bss+0x40): multiple definition of
il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/net.c.o:(.bss+0x0): multiple definition of
il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/net.c.o:(.bss+0x40): multiple definition of
il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here /usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/servo.c.o:(.bss+0x0): multiple definition of
il_net_monitoring_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x0): first defined here/usr/bin/ld: CMakeFiles/ingenialink.dir/ingenialink/ecat/servo.c.o:(.bss+0x40): multiple definition of
il_net_disturbance_mapping_register'; CMakeFiles/ingenialink.dir/ingenialink/net.c.o:(.bss+0x40): first defined here collect2: error: ld returned 1 exit status gmake[2]: *** [CMakeFiles/ingenialink.dir/build.make:835: libingenialink.so] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:104: CMakeFiles/ingenialink.dir/all] Error 2 gmake: *** [Makefile:156: all] Error 2
The text was updated successfully, but these errors were encountered: