Search code examples
linuxshared-librariesocrcompatibility

Shared library compatibility issue


Trying to use the nsocr (an OCR based application) shared library namely libjnsocr.so & it works successfully on a Ubuntu system. When running the same on a RHEL 5.1 box, I get an error as ERROR_DLLNOTLOADED 0x70010002 or Cannot find or load the "NSOCR.dll" file. One of the issues that might be the source is that Ubuntu runs on a recent version of Linux kernel i.e. 4.2 whereas the server where I am running the program is on kernel version 2.6 which is very old. Please let me know if there is some way to make this file compatible for the older kernel. Appreciate any other inputs.


Solution


  • When running the same on a RHEL 5.1 box, I get an error as

    ... Would probably work if you used like Ubuntu 7.04 to create the libraries / the application.

    Say libjnsocr.so depends on e.g. libc6 version 2.11 or later. Redhat 5 has glibc-2.5 ( = libc6-2.5 ) : No chance that any contemporary application can work.