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

Re: Compile pbs ...



I removed capdev_linux.la on capdev_plugins/Makefile,
ok sorry

but new error :
...
Making all in capdev_plugins
source='tcpdump.c' object='tcpdump.lo' libtool=yes
depfile='.deps/tcpdump.Plo' tmpdepfile='.deps/tcpdump.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__
-I/usr/include/pcap -I/usr/local/include/pcap    -g -O2 -Wall -pipe -c -o
tcpdump.lo `test -f 'tcpdump.c' || echo './'`tcpdump.c
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include -D__PLUGIN__
-I/usr/include/pcap -I/usr/local/include/pcap -g -O2 -Wall -pipe -c tcpdump.c
-Wp,-MD,.deps/tcpdump.TPlo  -fPIC -DPIC -o tcpdump.o
In file included from tcpdump.c:4:
/usr/include/sys/mman.h:141: syntax error before `mode_t'
/usr/include/sys/mman.h:147: syntax error before `off_t'
*** Error code 1

line 4 in capdev_plugins/tcpdump.c :
#include <sys/mman.h>

Could you help me ?

Regards.




Gianni Tedesco wrote:

> On Wed, 2003-02-19 at 11:20, rmkml wrote:
> > stormwall is compiled,
>
> Great!
>
> > but how compile capdev_plugins with freebsd ?
>
> Can you remove capdev_linux from the capdev_plugins makefiles?
>
> open capdev_plugins/Makefile and look for a line similar to:
>
> plugin_LTLIBRARIES = capdev_linux.la capdev_tcpdump.lan etc...
>
> and remove capdev_linux.la from the line.
>
> --
> // 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