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

Re: Compile pbs ...



On Wed, 2003-02-19 at 14:12, rmkml wrote:
> I comment <sys/socket.h> and <netinet/in.h> in decode_plugins/tcpip.h,
> compiled OK
> 
> but other pbs :
> ...
> Making all in decode_plugins
> source='ip.c' object='ip.lo' libtool=yes  depfile='.deps/ip.Plo'
> tmpdepfile='.deps/ip.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 ip.lo
> `test -f 'ip.c' || echo './'`ip.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D__PLUGIN__ -g -O2
> -Wall -pipe -c ip.c -Wp,-MD,.deps/ip.TPlo  -fPIC -DPIC -o ip.o
> In file included from tcpip.h:9,
>                  from ip.c:1:
> /usr/include/arpa/inet.h:89: warning: parameter has incomplete type
> /usr/include/arpa/inet.h:92: warning: parameter has incomplete type
> /usr/include/arpa/inet.h:96: warning: parameter has incomplete type
> ip.c: In function `ipv4_dprint':
> ip.c:26: storage size of `s' isn't known
> ip.c:26: storage size of `d' isn't known
> ip.c:33: type of formal parameter 1 is incomplete
> ip.c:34: type of formal parameter 1 is incomplete
> ip.c:26: warning: unused variable `d'
> ip.c:26: warning: unused variable `s'
> *** Error code 1

#include <sys/types.h> above sys/socket.h in decode_plugins/tcpip.h

Just realised that most of this stuff is covered in freebsd man pages,
they differ in includes from the linux ones, which kinda sucks as I
thought they were standard across the board, that will be something to
keep an eye out for in future.

-- 
// 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

Attachment: signature.asc
Description: This is a digitally signed message part