ports/170259: [patch][clang] devel/dev86: fix build with clang
Eygene Ryabinkin
rea at FreeBSD.org
Sun Jul 29 13:50:08 UTC 2012
>Number: 170259
>Category: ports
>Synopsis: [patch][clang] devel/dev86: fix build with clang
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 29 13:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Eygene Ryabinkin
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
Code Labs
>Environment:
System: FreeBSD 10.0-CURRENT amd64
>Description:
devel/dev86 fails to build due with clang to the problematic
return type of do_control() inside tok_io.c.
>How-To-Repeat:
Add the following lines to the /etc/make.conf to enable clang,
{{{
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
}}}
and build devel/dev86.
>Fix:
http://codelabs.ru/fbsd/ports/dev86/0.16.18-fix-clang-build.diff
It works for me and passes builds with GCC and clang. QA page:
http://codelabs.ru/fbsd/ports/qa/devel/dev86/0.16.18
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list