From owner-freebsd-ports@FreeBSD.ORG Sun Mar 2 18:43:36 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 8FBA4475 for ; Sun, 2 Mar 2014 18:43:36 +0000 (UTC) Received: from mail-oa0-x235.google.com (mail-oa0-x235.google.com [IPv6:2607:f8b0:4003:c02::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5727C1BDD for ; Sun, 2 Mar 2014 18:43:36 +0000 (UTC) Received: by mail-oa0-f53.google.com with SMTP id j17so1577506oag.40 for ; Sun, 02 Mar 2014 10:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=zI7rBnLP7yeILQZIzjaqUH0tebCnNyGY1vsPIcuQwy8=; b=RD/fwaq8sTqVzvOkKzjqS4eBbfCxkwqFKvboEbalJjRATJFKt6DGt8YsDrp0m+U2Ak i0UkG6/DpC/05Qlka3VYGmCaKOu/9wJHfVBFx4PnD7hg/N09vJZnJqBnCOQNYWft05g2 r/rwAwNnXQqKV/8vAtRXQDrAVKISCsh7VCg7p7HTwj1fhrCV//F6uA32S5PDnJWpxV+L tTNAMuIew5Om7wLkaPSDINrcLwP45lTrZ4uFNqHWDd1FadtirQRJR3ULjscOcIDPXPmw QL2+OOK2K20mkDLxvtzazSQ6LuFFxAC4CWrxrtd67P8dfdZHPmfisNM/qnC12gESYOdl fn9Q== MIME-Version: 1.0 X-Received: by 10.182.117.195 with SMTP id kg3mr23605415obb.17.1393785815741; Sun, 02 Mar 2014 10:43:35 -0800 (PST) Received: by 10.182.78.71 with HTTP; Sun, 2 Mar 2014 10:43:35 -0800 (PST) In-Reply-To: <44fvn4pn7z.fsf@lowell-desk.lan> References: <20140227022614.GF81440@lor.one-eyed-alien.net> <44fvn4pn7z.fsf@lowell-desk.lan> Date: Sun, 2 Mar 2014 13:43:35 -0500 Message-ID: Subject: Re: CLang flags query:: I'm wanting to port software to FreeBSD From: Joe Nosay To: ports Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Mar 2014 18:43:36 -0000 On Thu, Feb 27, 2014 at 10:52 AM, Lowell Gilbert < freebsd-ports-local@be-well.ilk.org> wrote: > 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. > Thanks for all of the input. The project is being reworked to fix the code.