Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build the librqry in Ubuntu 22.04 64 bit OS #607

Open
sriranjanr opened this issue Sep 29, 2023 · 0 comments
Open

Unable to build the librqry in Ubuntu 22.04 64 bit OS #607

sriranjanr opened this issue Sep 29, 2023 · 0 comments

Comments

@sriranjanr
Copy link

sriranjanr commented Sep 29, 2023

ISSUE TEMPLATE ver. 1.2.0

Please fill this template for more accurate and prompt support.

  1. Which DYNAMIXEL SDK version do you use?
  • ex) latest download from robotis website
  1. Which programming language/tool do you use?
  • ex) C library folder in build folder
  1. Which operating system do you use?
  • ex) Ubuntu 22.04
  1. Have you searched the issue from the closed issue threads?
    yes

  2. Please describe the issue in detail
    I get the following errors when I try to compile the 64 bit library
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/group_bulk_read.c -o .objects/group_bulk_read.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/group_bulk_write.c -o .objects/group_bulk_write.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/group_sync_read.c -o .objects/group_sync_read.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/group_sync_write.c -o .objects/group_sync_write.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/packet_handler.c -o .objects/packet_handler.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/port_handler.c -o .objects/port_handler.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/protocol1_packet_handler.c -o .objects/protocol1_packet_handler.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/protocol2_packet_handler.c -o .objects/protocol2_packet_handler.o
    gcc -O2 -O3 -DLINUX -D_GNU_SOURCE -Wall -c -I../../include/dynamixel_sdk -fPIC -g -c ../../src/dynamixel_sdk/port_handler_linux.c -o .objects/port_handler_linux.o
    g++ -shared -fPIC -o ./libdxl_x64_c.so ./.objects/group_bulk_read.o ./.objects/group_bulk_write.o ./.objects/group_sync_read.o ./.objects/group_sync_write.o ./.objects/packet_handler.o ./.objects/port_handler.o ./.objects/protocol1_packet_handler.o ./.objects/protocol2_packet_handler.o ./.objects/port_handler_linux.o -lrt
    /usr/bin/ld: ./.objects/group_bulk_write.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: multiple definition of packetData'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: first defined here /usr/bin/ld: ./.objects/group_bulk_write.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here
    /usr/bin/ld: ./.objects/group_bulk_write.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here /usr/bin/ld: ./.objects/group_sync_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: multiple definition of packetData'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: first defined here
    /usr/bin/ld: ./.objects/group_sync_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here /usr/bin/ld: ./.objects/group_sync_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here
    /usr/bin/ld: ./.objects/group_sync_write.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: multiple definition of packetData'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: first defined here /usr/bin/ld: ./.objects/group_sync_write.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here
    /usr/bin/ld: ./.objects/group_sync_write.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here /usr/bin/ld: ./.objects/packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: multiple definition of packetData'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: first defined here
    /usr/bin/ld: ./.objects/packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here /usr/bin/ld: ./.objects/packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here
    /usr/bin/ld: ./.objects/port_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here /usr/bin/ld: ./.objects/port_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here
    /usr/bin/ld: ./.objects/protocol1_packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: multiple definition of packetData'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: first defined here /usr/bin/ld: ./.objects/protocol1_packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here
    /usr/bin/ld: ./.objects/protocol1_packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here /usr/bin/ld: ./.objects/protocol2_packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: multiple definition of packetData'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/packet_handler.h:82: first defined here
    /usr/bin/ld: ./.objects/protocol2_packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here /usr/bin/ld: ./.objects/protocol2_packet_handler.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here
    /usr/bin/ld: ./.objects/port_handler_linux.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: multiple definition of g_used_port_num'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:47: first defined here /usr/bin/ld: ./.objects/port_handler_linux.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: multiple definition of g_is_using'; ./.objects/group_bulk_read.o:/media/dataPartition/marioArmano/sourceCode/DynamixelSDK-master/c/build/linux64/../../include/dynamixel_sdk/port_handler.h:48: first defined here
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:69: libdxl_x64_c.so] Error 1

  3. How can we reproduce the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant