[MacPorts] #33032: Bad character in line 1 of tesseract-3.01/ccutil/strngs.h
#33032: Bad character in line 1 of tesseract-3.01/ccutil/strngs.h --------------------------------------------------------+------------------- Reporter: jlg@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: strngs.h:1: error: stray '\191' in program | Port: tesseract 3.0.1 --------------------------------------------------------+------------------- The strngs.h file in this build (at least for the PPC version) has an invisible first character that kills the compile. A "set list" in vi won't show the invisible first character, but if you cat the file you should be able to see it. I fixed it by copying the contents of strngs.h and pasting into a new file, then renaming the new file to strngs.h. The log errors will look like: :info:build strngs.h:1: error: stray '\239' in program :info:build strngs.h:1: error: stray '\187' in program :info:build strngs.h:1: error: stray '\191' in program -- Ticket URL: <https://trac.macports.org/ticket/33032> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33032: tesseract: Bad character in line 1 of tesseract-3.01/ccutil/strngs.h -------------------------+-------------------------------------------------- Reporter: jlg@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: tesseract -------------------------+-------------------------------------------------- Changes (by ryandesign@…): * keywords: strngs.h:1: error: stray '\191' in program => * owner: macports-tickets@… => emer@… * port: tesseract 3.0.1 => tesseract Old description:
The strngs.h file in this build (at least for the PPC version) has an invisible first character that kills the compile. A "set list" in vi won't show the invisible first character, but if you cat the file you should be able to see it. I fixed it by copying the contents of strngs.h and pasting into a new file, then renaming the new file to strngs.h.
The log errors will look like: :info:build strngs.h:1: error: stray '\239' in program :info:build strngs.h:1: error: stray '\187' in program :info:build strngs.h:1: error: stray '\191' in program
New description: The strngs.h file in this build (at least for the PPC version) has an invisible first character that kills the compile. A "set list" in vi won't show the invisible first character, but if you cat the file you should be able to see it. I fixed it by copying the contents of strngs.h and pasting into a new file, then renaming the new file to strngs.h. The log errors will look like: {{{ :info:build strngs.h:1: error: stray '\239' in program :info:build strngs.h:1: error: stray '\187' in program :info:build strngs.h:1: error: stray '\191' in program }}} -- -- Ticket URL: <https://trac.macports.org/ticket/33032#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33032: tesseract: build failure because ccutil/strngs.h has UTF-8 BOM -------------------------+-------------------------------------------------- Reporter: jlg@… | Owner: emer@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: tesseract -------------------------+-------------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) Comment: That stray character is the [http://en.wikipedia.org/wiki/Byte_order_mark#UTF-8 UTF-8 BOM], and I agree, a BOM does not belong in source files. The gcc-4.2 on my Snow Leopard Mac didn't complain about it; I guess it's the gcc-4.0 that's on Leopard and Tiger that's not happy about it. We can remove the BOM easily enough. -- Ticket URL: <https://trac.macports.org/ticket/33032#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#33032: tesseract: build failure because ccutil/strngs.h has UTF-8 BOM --------------------------+------------------------------------------------- Reporter: jlg@… | Owner: emer@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: Port: tesseract | --------------------------+------------------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: r89376 -- Ticket URL: <https://trac.macports.org/ticket/33032#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts