gotthardp / python-mercuryapi

Python wrapper for the ThingMagic Mercury API
MIT License
123 stars 63 forks source link

Need help to fix this make file errors #156

Open sanjaygorak opened 1 week ago

sanjaygorak commented 1 week ago

i use the make command and everything seems to run fine untill i get these

make
make -C mercuryapi-1.37.4.8/c/src/api
make[1]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.4.8/c/src/api'
SOURCE_DIR=lib PATCH_DIR=lib XML_DIR=lib sh lib/install_LTKC.sh NULL lib
lib/LTK directory already exists
cd lib/LTK/LTKC/Library; make CC="cc -Ilib/LTK/LTKC/Library -Ilib/LTK/LTKC/Library/LLRP.org -I. -g -Wall -fPIC" STRIP="strip"
make[2]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.4.8/c/src/api/lib/LTK/LTKC/Library'
cd LLRP.org; make all
make[3]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.4.8/c/src/api/lib/LTK/LTKC/Library/LLRP.org'
make[3]: *** No rule to make target 'llrporg_ltkc_genout.c', needed by 'llrporg_ltkc_genout.o'.  Stop.
make[3]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.4.8/c/src/api/lib/LTK/LTKC/Library/LLRP.org'
make[2]: *** [Makefile:54: all] Error 2
make[2]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.4.8/c/src/api/lib/LTK/LTKC/Library'
make[1]: *** [Makefile:160: lib/LTK] Error 2
make[1]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.4.8/c/src/api'
make: *** [Makefile:14: mercuryapi] Error 2

is there someone who knows how can i encounter this and also i did download all the files using the git clone and im using the latest version of mercury api can someone help me please, how do i fix this issue?

sanjaygorak commented 21 hours ago

@gotthardp @BathroomEpiphanies can someone help me with this

sanjaygorak commented 20 hours ago

This is what i get now!! its not getting build.

sanju@DESKTOP-FDS6Q5U MSYS /c/Users/sanju/python-mercuryapi $ make make -C mercuryapi-1.37.2.24/c/src/api make[1]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api' SOURCE_DIR=lib PATCH_DIR=lib XML_DIR=lib sh lib/install_LTKC.sh NULL lib lib/LTK directory already exists cd lib/LTK/LTKC/Library; make CC="cc -Ilib/LTK/LTKC/Library -Ilib/LTK/LTKC/Library/LLRP.org -I. -g -Wall -fPIC" STRIP="strip" make[2]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library' cd LLRP.org; make all make[3]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library/LLRP.org' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library/LLRP.org' make[2]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library' make[1]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api' mkdir -p build/mercuryapi/include find mercuryapi-*/c/src/api -type f -name '*.h' ! -name '*_imp.h' ! -path '*ltkc_win32*' -exec cp {} build/mercuryapi/include/ \; mkdir -p build/mercuryapi/lib find mercuryapi-*/c/src/api -type f \( -name '*.a' -or -name '*.so.1' \) -exec cp {} build/mercuryapi/lib/ \; /usr/bin/python3 setup.py build running build make[1]: Entering directory '/c/Users/sanju/python-mercuryapi' make -C mercuryapi-1.37.2.24/c/src/api make[2]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api' SOURCE_DIR=lib PATCH_DIR=lib XML_DIR=lib sh lib/install_LTKC.sh NULL lib lib/LTK directory already exists cd lib/LTK/LTKC/Library; make CC="cc -Ilib/LTK/LTKC/Library -Ilib/LTK/LTKC/Library/LLRP.org -I. -g -Wall -fPIC" STRIP="strip" make[3]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library' cd LLRP.org; make all make[4]: Entering directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library/LLRP.org' make[4]: Nothing to be done for 'all'. make[4]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library/LLRP.org' make[3]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api/lib/LTK/LTKC/Library' make[2]: Leaving directory '/c/Users/sanju/python-mercuryapi/mercuryapi-1.37.2.24/c/src/api' mkdir -p build/mercuryapi/include find mercuryapi-*/c/src/api -type f -name '*.h' ! -name '*_imp.h' ! -path '*ltkc_win32*' -exec cp {} build/mercuryapi/include/ \; mkdir -p build/mercuryapi/lib find mercuryapi-*/c/src/api -type f \( -name '*.a' -or -name '*.so.1' \) -exec cp {} build/mercuryapi/lib/ \; make[1]: Leaving directory '/c/Users/sanju/python-mercuryapi' running build_ext building 'mercury' extension gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -march=nocona -msahf -mtune=generic -O2 -pipe -march=nocona -msahf -mtune=generic -O2 -pipe -Ibuild/mercuryapi/include -I/usr/include/python3.12 -c mercury.c -o build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o mercury.c: In function ‘parse_gen2filter’: mercury.c:442:86: warning: comparison of integer expressions of different signedness: ‘TMR_GEN2_Select_action’ and ‘int’ [-Wsign-compare] 442 | else if ((tag_filter->u.gen2Select.action = str2action(object2str(obj))) == -1) | ^~ mercury.c: In function ‘PyInit_mercury’: mercury.c:2363:5: warning: ‘PyEval_InitThreads’ is deprecated [-Wdeprecated-declarations] 2363 | PyEval_InitThreads(); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.12/Python.h:95, from mercury.c:26: /usr/include/python3.12/ceval.h:132:37: note: declared here 132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void); | ^~~~~~~~~~~~~~~~~~ gcc -shared -Wl,--enable-auto-image-base build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o -Lbuild/mercuryapi/lib -L/usr/lib/python3.12/config -L/usr/lib -lmercuryapi -lltkc -lltkctm -lpython3.12 -o build/lib.msys-3.5.4-x86_64-cpython-312/mercury.cpython-312-x86_64-cygwin.dll /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionTagData_setepc': /c/Users/sanju/python-mercuryapi/mercury.c:2068:(.text+0x19c): undefined reference to TMR_hexToBytes' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionTagData_getepc': /c/Users/sanju/python-mercuryapi/mercury.c:2057:(.text+0x1e9): undefined reference to TMR_bytesToHex' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_new': /c/Users/sanju/python-mercuryapi/mercury.c:168:(.text+0x2a7): undefined reference to TMR_create' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:173:(.text+0x2c7): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:180:(.text+0x2f3): undefined reference to TMR_addReadListener' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:186:(.text+0x31f): undefined reference toTMR_addStatsListener' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:191:(.text+0x34b): undefined reference to TMR_addReadExceptionListener' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:200:(.text+0x37b): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:210:(.text+0x3e2): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:216:(.text+0x3f6): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function get_string': /c/Users/sanju/python-mercuryapi/mercury.c:1099:(.text+0x472): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1101:(.text+0x496): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_get_temperature': /c/Users/sanju/python-mercuryapi/mercury.c:1845:(.text+0x507): undefined reference to TMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1847:(.text+0x526): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_set_region': /c/Users/sanju/python-mercuryapi/mercury.c:1209:(.text+0x5d6): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1211:(.text+0x619): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_set_gen2_tari': /c/Users/sanju/python-mercuryapi/mercury.c:1830:(.text+0x674): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1832:(.text+0x696): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_get_gen2_tari': /c/Users/sanju/python-mercuryapi/mercury.c:1812:(.text+0x6d7): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1814:(.text+0x6f6): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_set_gen2_blf': /c/Users/sanju/python-mercuryapi/mercury.c:1797:(.text+0x754): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1799:(.text+0x776): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_get_gen2_blf': /c/Users/sanju/python-mercuryapi/mercury.c:1779:(.text+0x7b7): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1781:(.text+0x7d6): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_set_gen2_target': /c/Users/sanju/python-mercuryapi/mercury.c:1764:(.text+0x834): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1766:(.text+0x856): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_get_gen2_target': /c/Users/sanju/python-mercuryapi/mercury.c:1746:(.text+0x897): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1748:(.text+0x8b6): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_set_gen2_session': /c/Users/sanju/python-mercuryapi/mercury.c:1731:(.text+0x914): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1733:(.text+0x936): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_get_gen2_session': /c/Users/sanju/python-mercuryapi/mercury.c:1713:(.text+0x977): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1715:(.text+0x996): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_set_gen2_tagencoding': /c/Users/sanju/python-mercuryapi/mercury.c:1698:(.text+0x9f4): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1700:(.text+0xa16): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_get_gen2_tagencoding': /c/Users/sanju/python-mercuryapi/mercury.c:1680:(.text+0xa57): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1682:(.text+0xa76): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_set_gen2_q': /c/Users/sanju/python-mercuryapi/mercury.c:1661:(.text+0xadd): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1663:(.text+0xb36): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_get_gen2_q': /c/Users/sanju/python-mercuryapi/mercury.c:1638:(.text+0xb77): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1640:(.text+0xbd0): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_get_power_range': /c/Users/sanju/python-mercuryapi/mercury.c:1474:(.text+0xc1c): undefined reference to TMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1481:(.text+0xc48): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1483:(.text+0xc88): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionset_uint8List': /c/Users/sanju/python-mercuryapi/mercury.c:1373:(.text+0xd45): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1375:(.text+0xd76): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function get_uint8List': /c/Users/sanju/python-mercuryapi/mercury.c:1302:(.text+0xe73): undefined reference toTMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1304:(.text+0xee8): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionget_PortValueList': /c/Users/sanju/python-mercuryapi/mercury.c:1504:(.text+0x1009): undefined reference to TMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1506:(.text+0x10a8): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function set_PortValueList': /c/Users/sanju/python-mercuryapi/mercury.c:1572:(.text+0x11c4): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1579:(.text+0x1248): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_get_supported_regions': /c/Users/sanju/python-mercuryapi/mercury.c:1232:(.text+0x12e1): undefined reference to TMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1234:(.text+0x139a): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_gpo_set': /c/Users/sanju/python-mercuryapi/mercury.c:1080:(.text+0x144e): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_gpi_get': /c/Users/sanju/python-mercuryapi/mercury.c:1035:(.text+0x155e): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function parse_gen2mask': /c/Users/sanju/python-mercuryapi/mercury.c:346:(.text+0x15ea): undefined reference toTMR_hexToBytes' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:349:(.text+0x161c): undefined reference to TMR_TF_init_gen2_select' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_stop_reading': /c/Users/sanju/python-mercuryapi/mercury.c:938:(.text+0x168a): undefined reference to TMR_stopReading' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:943:(.text+0x16be): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function invoke_exception_callback': /c/Users/sanju/python-mercuryapi/mercury.c:849:(.text+0x1a89): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function set_uint32List': /c/Users/sanju/python-mercuryapi/mercury.c:1407:(.text+0x1e84): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1409:(.text+0x1eae): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionget_uint32List': /c/Users/sanju/python-mercuryapi/mercury.c:1332:(.text+0x1f0f): undefined reference to TMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1334:(.text+0x1f88): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function set_uint32': /c/Users/sanju/python-mercuryapi/mercury.c:1281:(.text+0x2004): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1283:(.text+0x2026): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionget_uint32': /c/Users/sanju/python-mercuryapi/mercury.c:1263:(.text+0x2067): undefined reference to TMR_paramGet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:1265:(.text+0x2086): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function TagData_getepc': /c/Users/sanju/python-mercuryapi/mercury.c:2057:(.text+0x2179): undefined reference toTMR_bytesToHex' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:2057:(.text+0x21e9): undefined reference to TMR_bytesToHex' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_enable_stats': /c/Users/sanju/python-mercuryapi/mercury.c:764:(.text+0x2501): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:766:(.text+0x255e): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_start_reading': /c/Users/sanju/python-mercuryapi/mercury.c:814:(.text+0x25fc): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:820:(.text+0x2610): undefined reference to TMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:830:(.text+0x2652): undefined reference toTMR_startReading' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:822:(.text+0x2676): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:832:(.text+0x26d6): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function parse_multifilter': /c/Users/sanju/python-mercuryapi/mercury.c:471:(.text+0x2890): undefined reference toTMR_hexToBytes' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:476:(.text+0x28b6): undefined reference to TMR_TF_init_tag' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_write_tag_mem': /c/Users/sanju/python-mercuryapi/mercury.c:1013:(.text+0x2a4e): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_write': /c/Users/sanju/python-mercuryapi/mercury.c:640:(.text+0x2b0e): undefined reference to TMR_hexToBytes' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:654:(.text+0x2b9e): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_read_tag_mem': /c/Users/sanju/python-mercuryapi/mercury.c:981:(.text+0x2cde): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in function Reader_set_read_plan': /c/Users/sanju/python-mercuryapi/mercury.c:569:(.text+0x2ed0): undefined reference toTMR_RP_init_simple' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:574:(.text+0x2f2b): undefined reference to TMR_RP_set_filter' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:600:(.text+0x2fa7): undefined reference toTMR_TagOp_init_GEN2_ReadData' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:603:(.text+0x2fb6): undefined reference to TMR_RP_set_tagop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:608:(.text+0x2fca): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:619:(.text+0x2ffa): undefined reference to TMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:613:(.text+0x3058): undefined reference toTMR_paramSet' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:606:(.text+0x306c): undefined reference to TMR_RP_set_tagop' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: build/temp.msys-3.5.4-x86_64-cpython-312/mercury.o: in functionReader_read': /c/Users/sanju/python-mercuryapi/mercury.c:712:(.text+0x315d): undefined reference to TMR_TRD_init' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:718:(.text+0x317f): undefined reference toTMR_TRD_MEMBANK_init_data' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:719:(.text+0x3198): undefined reference to TMR_TRD_MEMBANK_init_data' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:720:(.text+0x31b1): undefined reference toTMR_TRD_MEMBANK_init_data' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:721:(.text+0x31ca): undefined reference to TMR_TRD_MEMBANK_init_data' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:689:(.text+0x3326): undefined reference toTMR_strerr' /usr/lib/gcc/x86_64-pc-msys/13.3.0/../../../../x86_64-pc-msys/bin/ld: /c/Users/sanju/python-mercuryapi/mercury.c:725:(.text+0x3346): undefined reference to TMR_strerr' collect2: error: ld returned 1 exit status error: command '/usr/bin/gcc' failed with exit code 1 make: *** [Makefile:8: all] Error 1