librs274 not linking its own symbols

More
17 Mar 2022 21:52 - 17 Mar 2022 21:58 #237569 by satiowadahc
Looking for help on this one. Everything was working, went for lunch and now librs274.so.0 own symbols are undefined.

Symptom On start up trying to run linuxcnc:
LINUXCNC - 2.9.0~pre0
Machine configuration directory is '/home/chad/rmdcnc-core/linuxcnc/configs/sim-rmd-rtr'
Machine configuration file is 'sim-rmd-rtr.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
twopass:invoked with <> options
twopass:found ./sim-rmd-rtr.hal
twopass:found /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
twopass:found /usr/share/linuxcnc/hallib/check_xyz_constraints.hal
twopass:pass0: loadusr -W hal_manualtoolchange

identityKinematicsSetup: coordinates:xxyz
   Joint 0 ==> Axis X
   Joint 1 ==> Axis X
   Joint 2 ==> Axis Y
   Joint 3 ==> Axis Z
identityKinematicsSetup: Recommend: kinstype=both

Traceback (most recent call last):
  File "/usr/bin/hal_manualtoolchange", line 61, in <module>
    import nf, rs274.options
  File "/usr/lib/python3/dist-packages/rs274/__init__.py", line 18, in <module>
    from .interpret import Translated, ArcsToSegmentsMixin
  File "/usr/lib/python3/dist-packages/rs274/interpret.py", line 17, in <module>
    import math, gcode
ImportError: /usr/lib/librs274.so.0: undefined symbol: _Z15RELOAD_TOOLDATAv

Narrow down the issue
CW:~/$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gcode
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/librs274.so.0: undefined symbol: _Z15RELOAD_TOOLDATAv

So lets do some inspecting...

readelf -Ws /usr/lib/librs274.so.0
NS0_7objects19class_value_wrapperISG_NSH_17make_ptr_instanceIS7_NSH_14pointer_holderISG_S7_EEEEEELb1EE15get_pytype_implEv
  1642: 000000000013cf00    10 FUNC    WEAK   DEFAULT   14 _ZNK5boost6python7objects23caller_py_function_implINS0_6detail6callerINS3_6memberIi14context_structEENS0_21default_call_policiesENS_3mpl7vector3IvRS6_RKiEEEEE9min_arityEv
  1643: 000000000018ca08    13 OBJECT  WEAK   DEFAULT   16 _ZTS10ParamClass
  1644: 0000000000000000     0 FUNC    GLOBAL DEFAULT  UND tan@@GLIBC_2.2.5
  1645: 00000000001cc7a0    72 OBJECT  UNIQUE DEFAULT   26 _ZZN5boost6python6detail15signature_arityILj1EE4implINS_3mpl7vector2INS0_3api6objectER6InterpEEE8elementsEvE6result
  1646: 000000000016c420    45 FUNC    WEAK   DEFAULT   14 _ZN5boost6python5enum_I12RETRACT_MODEE23convertible_from_pythonEP7_object
  1647: 00000000001405a0    23 FUNC    WEAK   DEFAULT   14 _ZN5boost6python7objects14pointer_holderIPSt4pairIKPKc12remap_structES8_ED2Ev
  1648: 00000000001cda18     8 OBJECT  UNIQUE DEFAULT   27 _ZGVZN5boost6python6detail15signature_arityILj1EE4implINS_3mpl7vector2IN10pyplusplus10containers12static_sized9array_1_tIdLm5EEER6InterpEEE8elementsEvE6result
  1649: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z15RELOAD_TOOLDATAv
  1650: 00000000001c8840   264 OBJECT  UNIQUE DEFAULT   26 _ZZN5boost6python6detail15signature_arityILj9EE4implINS_3mpl8vector10IvdddddddddEEE8elementsEvE6result
  1651: 00000000001ce280     4 OBJECT  GLOBAL DEFAULT   27 trace


It's not defined.. interesting recompile linuxcnc,
./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
make -j1  //Really could be 1-12 lately forcing to 1 as Pi's seem to have a race condition.
sudo make install

Well Installing takes effort
./configure && make -j12

CW:~/Downloads/linuxcnc-dev/scripts$ ./rip-environment python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gcode

Huh no issues...
I can run linuxcnc and load tool changer, but actual installing it doesn't seem to work.


Any Suggestions as I'm wildly thrashing about?






 
Last edit: 17 Mar 2022 21:58 by satiowadahc. Reason: What markup language is this??

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

More
17 Mar 2022 22:03 #237572 by satiowadahc
Well now even more confused. Despite this functioning in RIP.. The symbols are still undefined?
  1649: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z15RELOAD_TOOLDATAv

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

More
18 Mar 2022 16:17 #237648 by satiowadahc
installing a deb creating on another mill seems to work.. but I can't modify source code and compile now...

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

More
22 Mar 2022 23:43 #238051 by andypugh
This is getting deep. You could try asking on the developers mailing list, there are some actual programmers there :-)

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

Time to create page: 0.073 seconds
Powered by Kunena Forum