[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile pbs ...



move <sys/mman.h> after <sys/stat.h> is OK

but new pb on decode_plugins/ether.c :
I comment <netinet/in.h> line 4, is OK

but other pb on decode_plugins/tcpip.c :
...
Making all in decode_plugins
source='tcpip.c' object='tcpip.lo' libtool=yes  depfile='.deps/tcpip.Plo'
tmpdepfile='.deps/tcpip.TPlo'  depmode=gcc /usr/local/bin/bash ../depcomp
/usr/local/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../include  -I../include -D__PLUGIN__    -g -O2 -Wall -pipe -c -o tcpip.lo
`test -f 'tcpip.c' || echo './'`tcpip.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D__PLUGIN__ -g -O2
-Wall -pipe -c tcpip.c -Wp,-MD,.deps/tcpip.TPlo  -fPIC -DPIC -o tcpip.o
In file included from tcpip.h:7,
                 from tcpip.c:1:
/usr/include/sys/socket.h:52: syntax error before `sa_family_t'
/usr/include/sys/socket.h:52: warning: type defaults to `int' in declaration
of `sa_family_t'
/usr/include/sys/socket.h:52: warning: data definition has no type or storage
class
/usr/include/sys/socket.h:163: syntax error before `u_char'
/usr/include/sys/socket.h:174: syntax error before `u_short'
/usr/include/sys/socket.h:188: syntax error before `u_char'
/usr/include/sys/socket.h:190: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:190: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:190: size of array `__ss_pad1' is too large
/usr/include/sys/socket.h:191: syntax error before `int64_t'
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `u_char' undeclared here (not in a function)
/usr/include/sys/socket.h:192: `int64_t' undeclared here (not in a function)
/usr/include/sys/socket.h:359: syntax error before `pid_t'
/usr/include/sys/socket.h:364: syntax error before `gid_t'
/usr/include/sys/socket.h:399: syntax error before `u_short'
/usr/include/sys/socket.h:407: syntax error before `caddr_t'
/usr/include/sys/socket.h:411: syntax error before `caddr_t'
/usr/include/sys/socket.h:444: syntax error before `recv'
/usr/include/sys/socket.h:444: warning: type defaults to `int' in declaration
of `recv'
/usr/include/sys/socket.h:444: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:445: syntax error before `recvfrom'
/usr/include/sys/socket.h:445: warning: type defaults to `int' in declaration
of `recvfrom'
/usr/include/sys/socket.h:445: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:446: syntax error before `recvmsg'
/usr/include/sys/socket.h:446: warning: type defaults to `int' in declaration
of `recvmsg'
/usr/include/sys/socket.h:446: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:447: syntax error before `send'
/usr/include/sys/socket.h:447: warning: type defaults to `int' in declaration
of `send'
/usr/include/sys/socket.h:447: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:448: syntax error before `sendto'
/usr/include/sys/socket.h:449: warning: type defaults to `int' in declaration
of `sendto'
/usr/include/sys/socket.h:449: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:450: syntax error before `sendmsg'
/usr/include/sys/socket.h:450: warning: type defaults to `int' in declaration
of `sendmsg'
/usr/include/sys/socket.h:450: warning: data definition has no type or
storage class
/usr/include/sys/socket.h:451: syntax error before `off_t'
In file included from tcpip.h:8,
                 from tcpip.c:1:
/usr/include/netinet/in.h:233: syntax error before `in_addr_t'
/usr/include/netinet/in.h:285: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:467,
                 from tcpip.h:8,
                 from tcpip.c:1:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:612: syntax error before `*'
/usr/include/netinet6/in6.h:613: warning: type defaults to `int' in
declaration of `inet6_option_append'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:614: warning: type defaults to `int' in
declaration of `inet6_option_alloc'
/usr/include/netinet6/in6.h:614: warning: data definition has no type or
storage class
/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
*** Error code 1

Could you help me ?

Regards.





Gianni Tedesco wrote:

> On Wed, 2003-02-19 at 12:42, rmkml wrote:
> > line 4 in capdev_plugins/tcpdump.c :
> > #include <sys/mman.h>
> >
> > Could you help me ?
>
> damn! :)
>
> try including <sys/stat.h> and/or <sys/types.h> before that...
>
> --
> // Gianni Tedesco (gianni at scaramanga dot co dot uk)
> lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
> 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D
>
>   ------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: This is a digitally signed message part