Opened 3 years ago

Last modified 3 years ago

#62758 closed defect

tiff @4.3.0: version:1:1: error: expected unqualified-id — at Version 2

Reported by: kencu (Ken) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: tiff

Description (last modified by kencu (Ken))

On 10.6.8, building with clang-9.0, we see this:

:info:build In file included from /opt/local/libexec/llvm-9.0/bin/../include/c++/v1/cstddef:37:
:info:build ../version:1:1: error: expected unqualified-id
:info:build 4.3.0

tiff has a header named VERSION that collides with the c++17 header of the same name.

unfortunately simply renaming it to VERSION.txt doesn't work in this case as the Makefile wants to use it later:

:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_macportsofficial_macports-ports_graphics_tiff/tiff/work/tiff-4.3.0-x86_64'
:info:build make[2]: *** No rule to make target `VERSION', needed by `all-am'.  Stop.
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_macportsofficial_macports-ports_graphics_tiff/tiff/work/tiff-4.3.0-x86_64'
:info:build make[1]: *** [all-recursive] Error 1

so it will need some kind of better fix.

Change History (4)

Changed 3 years ago by kencu (Ken)

Attachment: tiff.fail.version.log added

Changed 3 years ago by kencu (Ken)

Attachment: tiff.fail.version2.log added

after renaming VERSION to VERSION.txt

comment:1 Changed 3 years ago by kencu (Ken)

the quicky fix is to build it with clang-5.0, as that has no header named version, while this gets sorted out.

Last edited 3 years ago by kencu (Ken) (previous) (diff)

comment:2 Changed 3 years ago by kencu (Ken)

Description: modified (diff)
Note: See TracTickets for help on using tickets.