ports/172145: mail/filtermail fails to build using clang
Miklos Magyari
magyarimiki at gmail.com
Fri Sep 28 14:30:07 UTC 2012
>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 at 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:
More information about the freebsd-ports-bugs
mailing list