ports/172216: mail/altermime fails to build using clang
Miklos Magyari
magyarimiki at gmail.com
Mon Oct 1 18:00:13 UTC 2012
>Number: 172216
>Category: ports
>Synopsis: mail/altermime 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: Mon Oct 01 18:00:12 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/altermime fails to build using clang:
[...snip...]
===> Building for altermime-0.3.11.a1
clang -Wall -Werror -g -I. -O2 -c strstack.c
clang -Wall -Werror -g -I. -O2 -c mime_alter.c
clang -Wall -Werror -g -I. -O2 -c ffget.c
ffget.c:553:20: error: equality comparison with extraneous parentheses [-Werror,-Wparentheses-equality]
if ( (*crlfpos == '\r') )
~~~~~~~~~^~~~~~~
ffget.c:553:20: note: remove extraneous parentheses around the comparison to silence this warning
if ( (*crlfpos == '\r') )
~ ^ ~
ffget.c:553:20: note: use '=' to turn this equality comparison into an assignment
if ( (*crlfpos == '\r') )
^~
=
1 error generated.
*** [ffget.o] Error code 1
Stop in /usr/ports/mail/altermime/work/altermime-0.3.11.a1.
*** [do-build] Error code 1
Stop in /usr/ports/mail/altermime.
*** [/usr/ports/mail/altermime/work/.build_done.altermime._usr_local] Error code 1
Stop in /usr/ports/mail/altermime.
>How-To-Repeat:
# cd /usr/ports/mail/altermime
# make
>Fix:
A source patch under files/
# cat files/patch-::ffget.c
--- ffget.c.orig 2012-10-01 19:45:30.000000000 +0200
+++ ffget.c 2012-10-01 19:45:51.000000000 +0200
@@ -550,7 +550,7 @@
// if we have another \r after it, in which case, we
// turn on SINGLE_DELIMETER_MODE.
- if ( (*crlfpos == '\r') )
+ if ( *crlfpos == '\r' )
{
f->linebreak = FFGET_LINEBREAK_CR;
snprintf(f->lastbreak,sizeof(f->lastbreak),"\r");
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list