Bug 193331

Summary: graphics/libcdr-0.0.16_1 fails to build with clang on 9.2-RELEASE
Product: Ports & Packages Reporter: Joseph Mingrone <jrm>
Component: Individual Port(s)Assignee: FreeBSD Office Team <office>
Status: Closed Overcome By Events    
Severity: Affects Some People CC: arved, ctyz1999+bugzilla
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
Patch to add compiler:c++11-lib to USES none

Description Joseph Mingrone freebsd_committer 2014-09-04 19:37:14 UTC
The poudriere build log can be found here:
http://pkg.awarnach.mathstat.dal.ca/data/9amd64-default/2014-09-04_14h06m17s/logs/errors/libcdr-0.0.16_1.log

A workaround is to build with gcc47/g++47 by adding

.if !empty(.CURDIR:M/usr/ports/graphics/libcdr) && exists(/usr/local/bin/gcc47)
CC=gcc47
CXX=g++47
CPP=cpp47
.endif

to /etc/make.conf.
Comment 1 Tilman Keskinoz freebsd_committer 2014-09-05 14:41:11 UTC
Over to maintainer group
Comment 2 Joseph Mingrone freebsd_committer 2014-09-05 16:18:25 UTC
Created attachment 146877 [details]
Patch to add compiler:c++11-lib to USES

Adding compiler:c++11-lib to USES in the Makefile does the trick on 9.  I'm not sure about 10.  Thanks nox@.  Patch attached.
Comment 3 CraigW 2015-02-13 22:54:03 UTC
(In reply to Joseph Mingrone from comment #2)

This fixes the clang build on 9.3 for me as well.

FreeBSD 9.3-STABLE #0 r278642

FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
Target: x86_64-unknown-freebsd9.3
Thread model: posix
Selected GCC installation: 

Can anyone get this committed.
Comment 4 Jan Beich freebsd_committer 2016-11-24 11:04:40 UTC
Was this fixed by ports r422711?