From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jul 5 16:04:21 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D450583A for ; Sat, 5 Jul 2014 16:04:21 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5F4C2656 for ; Sat, 5 Jul 2014 16:04:21 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s65G4LcW007626 for ; Sat, 5 Jul 2014 17:04:21 +0100 (BST) (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191426] [PATCH] net-mgmt/sendip: Fix package build Date: Sat, 05 Jul 2014 16:04:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: adamw@FreeBSD.org X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2014 16:04:21 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191426 Adam Weinberger changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Triage |In Discussion CC| |adamw@FreeBSD.org --- Comment #2 from Adam Weinberger --- For me, that patch BREAKS build, and builds fine without it. cc -o ripng.so -O2 -pipe -mtune=native -march=native -O2 -pipe -Qunused-arguments -fstack-protector -fno-strict-aliasing -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -Werror -Wcast-align -DSENDIP_LIBS=\"/usr/local/lib/sendip\" -shared ripng.c csum.o compact.o rip.c:64:38: error: while loop has empty body [-Werror,-Wempty-body] while(*(q++)!=':') /* do nothing */; *(--q)='\0'; ^ rip.c:64:38: note: put the semicolon on a separate line to silence this warning rip.c:67:45: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!=':') /* do nothing */; *(--q)='\0'; ^ rip.c:67:45: note: put the semicolon on a separate line to silence this warning rip.c:70:45: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!=':') /* do nothing */; *(--q)='\0'; ^ rip.c:70:45: note: put the semicolon on a separate line to silence this warning rip.c:72:45: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!=':') /* do nothing */; *(--q)='\0'; ^ rip.c:72:45: note: put the semicolon on a separate line to silence this warning rip.c:74:45: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!=':') /* do nothing */; *(--q)='\0'; ^ rip.c:74:45: note: put the semicolon on a separate line to silence this warning rip.c:76:46: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!='\0') /* do nothing */; *(--q)='\0'; ^ rip.c:76:46: note: put the semicolon on a separate line to silence this warning 6 errors generated. gmake[1]: *** [rip.so] Error 1 gmake[1]: *** Waiting for unfinished jobs.... ripng.c:80:38: error: while loop has empty body [-Werror,-Wempty-body] while(*(q++)!='/') /* do nothing */; *(--q)='\0'; ^ ripng.c:80:38: note: put the semicolon on a separate line to silence this warning ripng.c:83:45: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!='/') /* do nothing */; *(--q)='\0'; ^ ripng.c:83:45: note: put the semicolon on a separate line to silence this warning ripng.c:86:45: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!='/') /* do nothing */; *(--q)='\0'; ^ ripng.c:86:45: note: put the semicolon on a separate line to silence this warning ripng.c:89:46: error: while loop has empty body [-Werror,-Wempty-body] p=++q; while(*(q++)!='\0') /* do nothing */; *(--q)='\0'; ^ ripng.c:89:46: note: put the semicolon on a separate line to silence this warning ripng.c:105:18: error: implicit conversion from '__uint16_t' (aka 'unsigned short') to 'u_int8_t' (aka 'unsigned char') changes value from 4096 to 0 [-Werror,-Wconstant-conversion] ripopt->metric=htons((u_int16_t)16); ~^~~~~~~~~~~~~~~~~~~~ /usr/include/netinet/in.h:118:18: note: expanded from macro 'htons' #define htons(x) __htons(x) ^~~~~~~~~~ /usr/include/x86/endian.h:127:20: note: expanded from macro '__htons' #define __htons(x) __bswap16(x) ^~~~~~~~~~~~ /usr/include/x86/endian.h:74:3: note: expanded from macro '__bswap16' ((__uint16_t)(__builtin_constant_p(x) ? \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 errors generated. gmake[1]: *** [ripng.so] Error 1 gmake[1]: Leaving directory `/usr/BUILD-ports/head/net-mgmt/sendip/work/sendip-2.5' -- You are receiving this mail because: You are the assignee for the bug.