Opened 12 years ago

Closed 12 years ago

#35833 closed defect (duplicate)

exact-image: error: binding of reference to type 'agg::line_profile_aa' to a value of type 'const agg::line_profile_aa' drops qualifiers

Reported by: paoloyx@… Owned by: macports@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: clang Cc: ryandesign (Ryan Carsten Schmidt)
Port: exact-image, antigraingeometry

Description

MacOsX 10.8 (MountainLion), Xcode4.3 Trying to install exact-image 0.8.4, i receive the following error:

PaolinoMac:~ paoloyx$ sudo port install exact-image
--->  Computing dependencies for exact-image
--->  Dependencies to be installed: antigraingeometry
--->  Fetching archive for antigraingeometry
--->  Attempting to fetch antigraingeometry-2.5_3.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/antigraingeometry
--->  Attempting to fetch antigraingeometry-2.5_3.darwin_12.x86_64.tbz2 from http://packages.macports.org/antigraingeometry
--->  Fetching distfiles for antigraingeometry
--->  Verifying checksum(s) for antigraingeometry
--->  Extracting antigraingeometry
--->  Applying patches to antigraingeometry
--->  Configuring antigraingeometry
--->  Building antigraingeometry
--->  Staging antigraingeometry into destroot
--->  Installing antigraingeometry @2.5_3
--->  Activating antigraingeometry @2.5_3
--->  Cleaning antigraingeometry
--->  Fetching archive for exact-image
--->  Attempting to fetch exact-image-0.8.4_0.darwin_12.x86_64.tbz2 from http://lil.fr.packages.macports.org/exact-image
--->  Attempting to fetch exact-image-0.8.4_0.darwin_12.x86_64.tbz2 from http://packages.macports.org/exact-image
--->  Fetching distfiles for exact-image
--->  Verifying checksum(s) for exact-image
--->  Extracting exact-image
--->  Applying patches to exact-image
--->  Configuring exact-image
--->  Building exact-image
Error: org.macports.build for port exact-image returned: command execution failed
Please see the log file for port exact-image for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_exact-image/exact-image/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port exact-image failed
PaolinoMac:~ paoloyx$

Attachments (1)

main.log (47.2 KB) - added by paoloyx@… 12 years ago.
build log file

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by paoloyx@…

Attachment: main.log added

build log file

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Keywords: clang added
Owner: changed from macports-tickets@… to macports@…
Port: antigraingeometry added
Summary: exact-image @0.8.4 won't build on MacOsX Mountain Lionexact-image: error: binding of reference to type 'agg::line_profile_aa' to a value of type 'const agg::line_profile_aa' drops qualifiers

The log says:

:info:build /opt/local/include/agg2/agg_renderer_outline_aa.h:1378:45: error: binding of reference to type 'agg::line_profile_aa' to a value of type 'const agg::line_profile_aa' drops qualifiers

This makes me unsure whether the problem is in exact–image or antigraingeometry. But it might be possible to work around by building exact–image with a different compiler.

comment:2 Changed 12 years ago by paoloyx@…

Ok, the work around found at building exact–image with a different compiler page did the trick, using llvm-gcc-4.2 as compiler. The problem so seems correlated to the clang compiler, used as the default one from XCode 4 onward?

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

I have fixed your WikiFormatting above. Yes, the problem is that the clang compiler, used by MacPorts by default with Xcode 4.2 and later, is more strict than older compilers, and this exposes a programming error in one of these two software packages.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.