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

Re: Compile pbs ...



Thanks for your patch,
I will try to test now ...
and tell you if it works fine.

I've found a new pbs (compilation of firecat and stormwall disabled),
on capdev_plugins :

bash-2.05$ make
Making all in src
Making all in doc
Making all in capdev_plugins
source='linux.c' object='linux.lo' libtool=yes  depfile='.deps/linux.Plo'
tmpdepfile='.deps/linux.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 linux.lo `test -f
'linux.c' || echo './'`linux.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 linux.c
-Wp,-MD,.deps/linux.TPlo  -fPIC -DPIC -o linux.o
linux.c:10: features.h: No such file or directory
linux.c:15: asm/types.h: No such file or directory
linux.c:16: linux/if_packet.h: No such file or directory
linux.c:17: linux/if_ether.h: No such file or directory
linux.c:20: linux/if.h: No such file or directory
linux.c:23: asm/system.h: No such file or directory
linux.c:42: `IFNAMSIZ' undeclared here (not in a function)
linux.c:59: field `req' has incomplete type
linux.c: In function `linux_bindif':
linux.c:75: storage size of `addr' isn't known
linux.c:79: `AF_PACKET' undeclared (first use in this function)
linux.c:79: (Each undeclared identifier is reported only once
linux.c:79: for each function it appears in.)
linux.c:75: warning: unused variable `addr'
linux.c: In function `linux_mkreq':
linux.c:103: `TPACKET_HDRLEN' undeclared (first use in this function)
linux.c:99: warning: `siz' might be used uninitialized in this function
linux.c: In function `linux_iface':
linux.c:132: storage size of `ifr' isn't known
linux.c:137: sizeof applied to an incomplete type
linux.c:144: `SIOCGIFINDEX' undeclared (first use in this function)
linux.c:132: warning: unused variable `ifr'
linux.c: In function `lnx_init':
linux.c:178: `PF_PACKET' undeclared (first use in this function)
linux.c:210: `TPACKET_HDRLEN' undeclared (first use in this function)
linux.c:228: `SOL_PACKET' undeclared (first use in this function)
linux.c:228: `PACKET_RX_RING' undeclared (first use in this function)
linux.c: In function `lnx_end':
linux.c:277: storage size of `st' isn't known
linux.c:283: `SOL_PACKET' undeclared (first use in this function)
linux.c:284: `PACKET_STATISTICS' undeclared (first use in this function)
linux.c:277: warning: unused variable `st'
linux.c: In function `lnx_go':
linux.c:311: warning: assignment from incompatible pointer type
linux.c:312: warning: implicit declaration of function `TPACKET_ALIGN'
linux.c:312: dereferencing pointer to incomplete type
linux.c:315: dereferencing pointer to incomplete type
linux.c:316: dereferencing pointer to incomplete type
linux.c:317: dereferencing pointer to incomplete type
linux.c:317: dereferencing pointer to incomplete type
linux.c:318: dereferencing pointer to incomplete type
linux.c:318: dereferencing pointer to incomplete type
linux.c:330: dereferencing pointer to incomplete type
linux.c:332: warning: unreachable code at beginning of switch statement
linux.c:354: dereferencing pointer to incomplete type
linux.c:354: warning: implicit declaration of function `mb'
*** Error code 1

Thanks you for your answer

Regards.






Gianni Tedesco wrote:

> On Thu, 2003-02-13 at 14:01, rmkml wrote:
> > and same pb on src/stormwall.c
> >
> > FreeBSD don't have getopt.h include,
> > FreeBSD use internal fonction libc ...
> > and FreeBSD don't have getopt_long() ...
> >
> > Could You Help Me ?
>
> Try the attached patch - should apply with nothing but offsets. Sorry it
> took a while, been away from internet connected computer since thursday
> :P
>
> Let me know if you encounter any other portability issues, I am very
> keen to support FreeBSD (well, all free operating systems).
>
> --
> // 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: firestorm-getopt.diff
>    firestorm-getopt.diff    Type: text/x-patch
>                         Encoding: quoted-printable
>
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: This is a digitally signed message part