I am using Fedora12 64bit. We have a complicated build environment which I am not to familiar with so I was happy I could built it without changing our scripts.
I am new to PLCs and not too Linux savvy. So here are the steps I am doing to try and run a test.
I start up lgx_sim in one command window.
./tag_rw -t sint32 -p 'protocol=ab-eip&gateway=<my Linux's IP address>&path=1,0&cpu=lgx&use_connected_msg=1&elem_size=4&elem_count=10&name=TestDINTArray&debug=4'
[adi@veiltail Debug]$ ./run.sh
Arg[0]=./tag_rw
Arg[1]=-t
Arg[2]=sint32
Arg[3]=-p
Arg[4]=protocol=ab-eip&gateway=192.168.3.152&path=1,0&cpu=lgx&use_connected_msg=1&elem_size=4&elem_count=10&name=TestDINTArray&debug=4
thread(0002) 2018-08-28 10:35:14.511 INFO find_tag_create_func:88 Matched protocol=ab-eip
thread(0001) 2018-08-28 10:35:14.511 DETAIL request_handler_func:1011 Starting.
thread(0002) 2018-08-28 10:35:14.511 INFO ab_tag_create:192 Starting.
thread(0002) 2018-08-28 10:35:14.511 INFO rc_alloc_impl:99 Starting, called from ab_tag_create:199
thread(0002) 2018-08-28 10:35:14.511 INFO rc_alloc_impl:131 Done
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_alloc_impl:136 Returning memory pointer 0x111ba30
thread(0002) 2018-08-28 10:35:14.511 DETAIL ab_tag_create:207 tag=0x111ba30
thread(0002) 2018-08-28 10:35:14.511 INFO match_dhp_node:112 Bad syntax in DH+ route. Expected DH+ channel identifier (A/2 or B/3)
thread(0002) 2018-08-28 10:35:14.511 DETAIL cip_encode_path:212 Found regular routing. Conn path length=1
thread(0002) 2018-08-28 10:35:14.511 INFO match_dhp_node:112 Bad syntax in DH+ route. Expected DH+ channel identifier (A/2 or B/3)
thread(0002) 2018-08-28 10:35:14.511 DETAIL cip_encode_path:212 Found regular routing. Conn path length=2
thread(0002) 2018-08-28 10:35:14.511 DETAIL cip_encode_path:300 ioi_size before 6
thread(0002) 2018-08-28 10:35:14.511 DETAIL session_find_or_create:254 Starting
thread(0002) 2018-08-28 10:35:14.511 DETAIL session_find_or_create:266 Creating new session.
thread(0002) 2018-08-28 10:35:14.511 INFO session_create_unsafe:455 Starting
thread(0002) 2018-08-28 10:35:14.511 DETAIL session_create_unsafe:457 Warning: not using passed port 44818
thread(0002) 2018-08-28 10:35:14.511 INFO rc_alloc_impl:99 Starting, called from session_create_unsafe:459
thread(0002) 2018-08-28 10:35:14.511 INFO rc_alloc_impl:131 Done
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_alloc_impl:136 Returning memory pointer 0x111bd70
thread(0002) 2018-08-28 10:35:14.511 DETAIL add_session_unsafe:309 Starting
thread(0002) 2018-08-28 10:35:14.511 DETAIL add_session_unsafe:324 Done
thread(0002) 2018-08-28 10:35:14.511 INFO session_create_unsafe:515 Done
thread(0002) 2018-08-28 10:35:14.511 INFO session_init:531 Starting.
thread(0002) 2018-08-28 10:35:14.511 INFO session_connect:561 Starting.
thread(0002) 2018-08-28 10:35:14.511 DETAIL socket_create:714 Starting.
thread(0002) 2018-08-28 10:35:14.511 DETAIL socket_create:728 Done.
thread(0002) 2018-08-28 10:35:14.511 DETAIL socket_connect_tcp:747 Starting.
thread(0002) 2018-08-28 10:35:14.511 DETAIL socket_connect_tcp:796 Found numeric IP address: 192.168.4.157
thread(0002) 2018-08-28 10:35:14.511 DETAIL socket_connect_tcp:844 Attempting to connect to 192.168.4.157
thread(0002) 2018-08-28 10:35:14.511 DETAIL socket_connect_tcp:852 Attempt to connect to 192.168.4.157 failed, errno: 111
thread(0002) 2018-08-28 10:35:14.511 ERROR socket_connect_tcp:859 Unable to connect to any gateway host IP address!
thread(0002) 2018-08-28 10:35:14.511 WARN session_connect:574 Unable to connect socket for session!
thread(0002) 2018-08-28 10:35:14.511 WARN session_init:535 session connect failed!
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_dec_impl:274 Starting, called from session_find_or_create:291 for 0x111bd70
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_dec_impl:300 Ref count is 0 for 0x111bd70.
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_dec_impl:304 Calling cleanup functions due to call at session_find_or_create:291 for 0x111bd70.
thread(0002) 2018-08-28 10:35:14.511 INFO refcount_cleanup:317 Starting
thread(0002) 2018-08-28 10:35:14.511 INFO session_destroy:592 Starting.
thread(0002) 2018-08-28 10:35:14.511 DETAIL remove_session_unsafe:348 Starting
thread(0002) 2018-08-28 10:35:14.511 DETAIL remove_session_unsafe:377 Done
thread(0002) 2018-08-28 10:35:14.511 INFO session_destroy:651 Done.
thread(0002) 2018-08-28 10:35:14.511 INFO refcount_cleanup:342 Done.
thread(0002) 2018-08-28 10:35:14.511 DETAIL session_find_or_create:302 Done
thread(0002) 2018-08-28 10:35:14.511 INFO ab_tag_create:366 Unable to create session!
thread(0002) 2018-08-28 10:35:14.511 INFO plc_tag_create:311 Returning mapped tag 0x4001
INFO: Got tag 0x4001
INFO: tag status -10
ERROR: tag creation error, tag status: PLCTAG_ERR_CREATE
thread(0002) 2018-08-28 10:35:14.511 INFO plc_tag_destroy:518 Starting.
thread(0002) 2018-08-28 10:35:14.511 INFO plc_tag_destroy_mapped:465 Starting.
thread(0002) 2018-08-28 10:35:14.511 DETAIL plc_tag_destroy_mapped:484 Releasing tag mapping.
thread(0002) 2018-08-28 10:35:14.511 DETAIL release_tag_to_id_mapping:1649 Starting
thread(0002) 2018-08-28 10:35:14.511 DETAIL release_tag_to_id_mapping:1668 Releasing tag 0x111ba30(16385) at location 1
thread(0002) 2018-08-28 10:35:14.511 DETAIL release_tag_to_id_mapping:1672 Done.
thread(0002) 2018-08-28 10:35:14.511 INFO plc_tag_abort_mapped:403 Starting.
thread(0002) 2018-08-28 10:35:14.511 INFO plc_tag_abort_mapped:416 Done.
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_dec_impl:274 Starting, called from plc_tag_destroy_mapped:506 for 0x111ba30
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_dec_impl:300 Ref count is 0 for 0x111ba30.
thread(0002) 2018-08-28 10:35:14.511 DETAIL rc_dec_impl:304 Calling cleanup functions due to call at plc_tag_destroy_mapped:506 for 0x111ba30.
thread(0002) 2018-08-28 10:35:14.511 INFO refcount_cleanup:317 Starting
thread(0002) 2018-08-28 10:35:14.511 INFO ab_tag_destroy:518 Starting.
thread(0002) 2018-08-28 10:35:14.511 DETAIL ab_tag_destroy:545 Getting ready to release tag session (nil)
thread(0002) 2018-08-28 10:35:14.511 WARN ab_tag_destroy:551 No session pointer!
thread(0002) 2018-08-28 10:35:14.511 INFO ab_tag_destroy:574 Finished releasing all tag resources.
thread(0002) 2018-08-28 10:35:14.511 INFO ab_tag_destroy:576 done
thread(0002) 2018-08-28 10:35:14.511 INFO refcount_cleanup:342 Done.
thread(0002) 2018-08-28 10:35:14.511 INFO plc_tag_destroy_mapped:508 Done.
thread(0002) 2018-08-28 10:35:14.511 INFO plc_tag_destroy:531 Done.
thread(0002) 2018-08-28 10:35:14.511 INFO ab_teardown:163 Releasing global AB protocol resources.
thread(0002) 2018-08-28 10:35:14.511 INFO ab_teardown:165 Terminating IO thread.
thread(0002) 2018-08-28 10:35:14.511 DETAIL thread_join:598 Starting.
thread(0002) 2018-08-28 10:35:14.512 DETAIL thread_join:610 Done.
thread(0002) 2018-08-28 10:35:14.512 DETAIL thread_destroy:639 Starting.
thread(0002) 2018-08-28 10:35:14.512 DETAIL thread_destroy:650 Done.
thread(0002) 2018-08-28 10:35:14.512 INFO ab_teardown:173 Freeing global session mutex.
thread(0002) 2018-08-28 10:35:14.512 INFO ab_teardown:177 Removing the read group vector.
thread(0002) 2018-08-28 10:35:14.512 INFO ab_teardown:180 Done.
thread(0002) 2018-08-28 10:35:14.512 INFO lib_teardown:118 Tearing down library.
thread(0002) 2018-08-28 10:35:14.513 INFO lib_teardown:129 Destroying global library mutex.
thread(0002) 2018-08-28 10:35:14.513 INFO lib_teardown:135 Done.