Closed l1gi closed 2 months ago
Citing my answer from the still open Tesseract issue: "So you have to find out why on your Solaris system atomic_int is unknown although it claims to support atomics. I suggest to search all include paths for atomic_int."
Please don't open several issues in different repositories for the same issue.
I closed the Tesseract issue.
First, Tesseract does not officially support Solaris. Second, Tesseract is written in C++ and the issue is related to the C standard library in Solaris.
I close the Leptonica issue because the Leptonica build works, but add my solution for the Tesseract build there.
Hello,
while trying to upgrade ghostscript-10.02.1 to ghostscript-10.03.1 on Solaris I have hit an issue with building tesseract which ghostscript bundles. I have created a bug report against ghostcript and against tesseract. It seems that the top level reason why it fails is a header file installed by leptonica, in particular
environ.h
.As suggested in gs bug report I have tried to isolate the issue and found that I see the same behavior while building standalone tesseract.
I can isolate the issue even further using Tessearct build system:
__STDC_VERSION__
is defined as201112L
,__STDC_NO_ATOMICS__
is not defined.The platform in Solaris 11.4 with GCC:
I guess the issue could be somewhere else (GCC?). It seems that there is something defined differently in comparison with Linux.
Could you help me find the root cause of the issue, please? Should you need any input, don't hesitate to ask.
Thank you in advance, Martin Rehak