Date: Sun, 2 Mar 2014 13:43:35 -0500 From: Joe Nosay <superbisquit@gmail.com> To: ports <ports@freebsd.org> Subject: Re: CLang flags query:: I'm wanting to port software to FreeBSD Message-ID: <CA%2BWntOuEXjt5xT7ZvGLwLiQwYxrgavApi0ZT4EFA5hU8vTVcRQ@mail.gmail.com> In-Reply-To: <44fvn4pn7z.fsf@lowell-desk.lan> References: <CA%2BWntOufYoHVT7kpGasMNwnTYNWvaidf4z7Pv8mhaOOJWWfAeA@mail.gmail.com> <20140227022614.GF81440@lor.one-eyed-alien.net> <CA%2BWntOsyKfPQQ2epEekJvDVQFqGaAqvU=dD10veV2njNBpp2RA@mail.gmail.com> <44fvn4pn7z.fsf@lowell-desk.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 27, 2014 at 10:52 AM, Lowell Gilbert < freebsd-ports-local@be-well.ilk.org> wrote: > Joe Nosay <superbisquit@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BWntOuEXjt5xT7ZvGLwLiQwYxrgavApi0ZT4EFA5hU8vTVcRQ>