Skip to content

compiler error on debian 8.2 #1

@ovidiusas

Description

@ovidiusas
make[1]: Entering directory '/usr/local/src/rtpbreak/src'
%
%  Compiling rtpbreak v1.3a
%
%  CC...................: cc
%  CFLAGS...............: -Wall -O3  
%  LDFLAGS..............: 
%  LIBS.................: -lpcap -lnet 
%  DEFS.................: 
%
cc -c -DVERSION=\"1.3a\" -Wall -O3    main.c
main.c: In function ‘dissect_udp’:
main.c:207:23: error: invalid application of ‘sizeof’ to incomplete type ‘struct udphdr’
   if (pktlen < sizeof(struct udphdr))
                       ^
main.c:212:25: error: invalid application of ‘sizeof’ to incomplete type ‘struct udphdr’
   len = pktlen - sizeof(struct udphdr);
                         ^
main.c:214:44: error: invalid application of ‘sizeof’ to incomplete type ‘struct udphdr’
   if (len != ntohs(pktudp->uh_ulen)-sizeof(struct udphdr))
                                            ^
main.c: In function ‘sig_stats_handler’:
main.c:1365:7: warning: variable ‘s’ set but not used [-Wunused-but-set-variable]
   int s;
       ^
Makefile:15: recipe for target 'all' failed
make[1]: *** [all] Error 1
make[1]: Leaving directory '/usr/local/src/rtpbreak/src'
Makefile:14: recipe for target 'build' failed
make: *** [build] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions