From owner-freebsd-ports@FreeBSD.ORG Thu Feb 27 15:52:24 2014 Return-Path: Delivered-To: ports@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 4D915DF5 for ; Thu, 27 Feb 2014 15:52:24 +0000 (UTC) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 219141391 for ; Thu, 27 Feb 2014 15:52:24 +0000 (UTC) Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.41]) by be-well.ilk.org (Postfix) with ESMTP id 59A2033C19; Thu, 27 Feb 2014 10:52:18 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 0DC2F3983C; Thu, 27 Feb 2014 10:52:16 -0500 (EST) From: Lowell Gilbert To: Joe Nosay Subject: Re: CLang flags query:: I'm wanting to port software to FreeBSD References: <20140227022614.GF81440@lor.one-eyed-alien.net> Date: Thu, 27 Feb 2014 10:52:16 -0500 In-Reply-To: (Joe Nosay's message of "Wed, 26 Feb 2014 21:49:18 -0500") Message-ID: <44fvn4pn7z.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain Cc: ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: ports List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 15:52:24 -0000 Joe Nosay writes: > jack_trauma.c:21:9: warning: 'IP_DONTFRAG' macro redefined > #define IP_DONTFRAG 1 > ^ > /usr/include/netinet/in.h:464: > 9: note: previous definition is here > #define IP_DONTFRAG 67 /* don't fragment packet */ > ^ > jack_trauma.c:192:60: error: expected expression > socketfd == socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE); > ^ > jack_trauma.c:353:1: warning: type specifier missing, defaults to 'int' > [-Wimplicit-int] > parse_options(int argc, char** argv){ > > > That is with what I am working. I'm not sure as how to work around it; so, > I want to try different flags. Those errors are actual problems that you need to solve rather than work around. The first one, for example, is normally a socket option. If your program is using it for a socket option, it shouldn't be defined in that code, but use the definition from the system in.h instead. If the program *isn't* using it for a socket option, then it should be named something different.