Opened 9 years ago

Closed 9 years ago

#50329 closed defect (fixed)

gimp2: build fails on 10.6 (error: redefinition of typedef 'boolean' is invalid in C)

Reported by: mojca (Mojca Miklavec) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: snowleopard Cc: blair (Blair Zajac)
Port: gimp2 gimp2-devel gimp3-devel

Description

The buildbot fails with:

In file included from file-mng.c:87:
In file included from /opt/local/include/libmng.h:385:
/opt/local/include/libmng_types.h:208:13: error: redefinition of typedef 'boolean' is invalid in C [-Wtypedef-redefinition]
typedef int boolean;
            ^

(Ticket #38063 with the same subject seems to be unrelated.)

Change History (3)

comment:1 Changed 9 years ago by dbevans (David B. Evans)

Port: gimp2, libmnggimp2 libmng
Status: newassigned

This error seems to have been introduced by the upgrade of libmng to version 2.0.3.

comment:2 Changed 9 years ago by dbevans (David B. Evans)

Port: gimp2-devel gimp3-devel added; libmng removed

Issue also seen with gimp2-devel and gimp3-devel on 10.6.

This typedef redefinition is innocuous and is allowed by newer compilers that support the C11 standard.

Fixed for gimp2 by extending the existing blacklisting to include the offending compilers in r144645. Testing gimp2-devel gimp3-devel now.

comment:3 Changed 9 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

Similar fix for gimp2-devel gimp3-devel committed in r144646. Builds correctly on buildbot.

Note: See TracTickets for help on using tickets.