From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 28 14:30:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91FB01065676 for ; Fri, 28 Sep 2012 14:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 69A008FC19 for ; Fri, 28 Sep 2012 14:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q8SEU7KM023021 for ; Fri, 28 Sep 2012 14:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q8SEU7Fk023020; Fri, 28 Sep 2012 14:30:07 GMT (envelope-from gnats) Resent-Date: Fri, 28 Sep 2012 14:30:07 GMT Resent-Message-Id: <201209281430.q8SEU7Fk023020@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Miklos Magyari Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2F52106566C for ; Fri, 28 Sep 2012 14:25:20 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id D36918FC16 for ; Fri, 28 Sep 2012 14:25:20 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q8SEPK2p082951 for ; Fri, 28 Sep 2012 14:25:20 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q8SEPKNi082934; Fri, 28 Sep 2012 14:25:20 GMT (envelope-from nobody) Message-Id: <201209281425.q8SEPKNi082934@red.freebsd.org> Date: Fri, 28 Sep 2012 14:25:20 GMT From: Miklos Magyari To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/172145: mail/filtermail fails to build using clang X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2012 14:30:07 -0000 >Number: 172145 >Category: ports >Synopsis: mail/filtermail fails to build using clang >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 28 14:30:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Miklos Magyari >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD mira 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: mail/filtermail fails to build using clang. [...snip...] flex -+ -i -Prfc -orfc822.cc rfc822.ll clang++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -I.. -I../include -I. -I/usr/local/include -Wall -O2 -pipe -fno-strict-aliasing -MT rfc822.o -MD -MP -MF .deps/rfc822.Tpo -c -o rfc822.o rfc822.cc mv -f .deps/rfc822.Tpo .deps/rfc822.Po clang++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -I.. -I../include -I. -I/usr/local/include -Wall -O2 -pipe -fno-strict-aliasing -MT filtermail.o -MD -MP -MF .deps/filtermail.Tpo -c -o filtermail.o filtermail.cc mv -f .deps/filtermail.Tpo .deps/filtermail.Po clang++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -I.. -I../include -I. -I/usr/local/include -Wall -O2 -pipe -fno-strict-aliasing -MT header.o -MD -MP -MF .deps/header.Tpo -c -o header.o header.cc mv -f .deps/header.Tpo .deps/header.Po clang++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -I.. -I../include -I. -I/usr/local/include -Wall -O2 -pipe -fno-strict-aliasing -MT weeder.o -MD -MP -MF .deps/weeder.Tpo -c -o weeder.o weeder.cc mv -f .deps/weeder.Tpo .deps/weeder.Po clang++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I. -I../include -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -I../intl -I.. -I../include -I. -I/usr/local/include -Wall -O2 -pipe -fno-strict-aliasing -MT preferences.o -MD -MP -MF .deps/preferences.Tpo -c -o preferences.o preferences.cc preferences.cc:86:51: error: expression is not assignable ((Size_score)(Preferences :: size_score)).score = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ preferences.cc:87:51: error: expression is not assignable ((Size_score)(Preferences :: size_score)).size = 0; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ 2 errors generated. gmake[2]: *** [preferences.o] Error 1 gmake[2]: Leaving directory `/usr/ports/mail/filtermail/work/filtermail-0.8.2/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/mail/filtermail/work/filtermail-0.8.2' gmake: *** [all] Error 2 *** [do-build] Error code 1 Stop in /usr/ports/mail/filtermail. >How-To-Repeat: # cd /usr/ports/mail/filtermail # make >Fix: I have managed to compile the port applying the below patch to the source code: --- src/preferences.cc.old 2012-09-28 16:19:14.000000000 +0200 +++ src/preferences.cc 2012-09-28 16:19:49.000000000 +0200 @@ -83,8 +83,8 @@ void Preferences :: init (void) { - ((Size_score)(Preferences :: size_score)).score = 0; - ((Size_score)(Preferences :: size_score)).size = 0; + Preferences :: size_score.score = 0; + Preferences :: size_score.size = 0; } void Preferences :: kill (void) >Release-Note: >Audit-Trail: >Unformatted: