CLang flags query:: I'm wanting to port software to FreeBSD

Joe Nosay superbisquit at gmail.com
Sun Mar 2 18:43:36 UTC 2014


On Thu, Feb 27, 2014 at 10:52 AM, Lowell Gilbert <
freebsd-ports-local at be-well.ilk.org> wrote:

> Joe Nosay <superbisquit at 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.


More information about the freebsd-ports mailing list