Date: Thu, 28 Aug 2014 20:48:12 -0700 From: Christoph Egger <christoph@debian.org> To: 711247@bugs.debian.org, libpcap@packages.debian.org, freebsd-pf@freebsd.org, debian-bsd@lists.debian.org Subject: pflogd needing pcap-int.h Message-ID: <87iolcvtvn.fsf@mitoraj.siccegge.de>
next in thread | raw e-mail | index | archive | help
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! I'm trying to build pflogd for debian. Unfortunately it depends on pcap-int.h which is kind of awkward for some reasons: - It could add incompatibility wiith changing pcap versions -- potentially unnoticed - I don't really fancy having the pcap-dev package expose internal headers and using a copy sounds even worse in time of up-to-dateness - the pcap-int header somewhat depends on the config.h which we'd need to keep available Below are the error messages when compiling with an empty pcap-int.h do you see a chance of fullfilling pflogd's need with "official" API? Any ideas how a clean solution would look like? Thanks Christoph =2D-=20 /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98try_reset_dump=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:379:23: error: dereferencing pointer to incomplete type hdr.thiszone =3D hpcap->tzoff; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:380:22: error: dereferencing pointer to incomplete type hdr.snaplen =3D hpcap->snapshot; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:382:23: error: dereferencing pointer to incomplete type hdr.linktype =3D hpcap->linktype; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98scan_dump=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:411:24: error: storage size of =E2=80=98ph=E2=80=99 isn=E2=80=99= t known struct pcap_sf_pkthdr ph; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:435:27: error: dereferencing pointer to incomplete type hdr.linktype !=3D hpcap->linktype || ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:411:24: warning: unused variable =E2=80=98ph=E2=80=99 [-Wunused-= variable] struct pcap_sf_pkthdr ph; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98dump_packet_nobuf=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:484:24: error: storage size of =E2=80=98sh=E2=80=99 isn=E2=80=99= t known struct pcap_sf_pkthdr sh; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:484:24: warning: unused variable =E2=80=98sh=E2=80=99 [-Wunused-= variable] /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c: In function =E2=80=98dump_packet=E2=80=99: /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:581:24: error: storage size of =E2=80=98sh=E2=80=99 isn=E2=80=99= t known struct pcap_sf_pkthdr sh; ^ /home/christoph/debian/freebsd-utils/src/sbin/pflogd/../../contrib/pf/pflog= d/pflogd.c:581:24: warning: unused variable =E2=80=98sh=E2=80=99 [-Wunused-= variable] --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJT//f8AAoJEKv/7bJACMb5VHoP/j6anfFATwY6opiDCxHzqpSM 9W4iPt6/f+ZsvR4MVHb9F+NuD07+hsDcp90EnVH6Ym+azx1RJ+G1yIXrmhIPNsol oKHKM8Go5An9jPRK++XnK8PlodHLipsO11nTtXsZwHWyumcze/MEM4YlTztixCWP Os+PosuV0kIHTF4a9sX7BCtEsz47akVM9S/fLbtkGsev/joKps7hTZaZX4Ed+pON lIFaTzywMmiP0Le6C5aL23r+9M58DY24RhYk1umDvlz+q3XIHIiABcb4PFNiLAJL p77G9Ze+lvqtZjHVlzDxtnNX23KI3qPxtKblK/aPSlq1sejBJpQblMBd1I2YL2EE VjNQ/Irs2KGpqtCZXrl5o2wfDHOmHZIa3Wy3IemAvoxvqQHE0aWjQ5qLHlBV4n+b TcW8mNgJuziknUTOu9baTzrer6/zfs511DoFVXFdvu+DsGk2Fag82wT9jO74CSRn 4tGGjCUjpdVNxPTFEE+DXVmdylNARZgUwTy4TzROukAf/KGkt5i9QxlaEdZdAr+H Yu7LeHl8aDiYtYmnPwQIbhF+Ifzf40zBIm5c+O4l3j9rTmfdBmHulHx+Tb8m/+jp HLkDi0PS5e1UWXb2YZc/+rqAuZPQkgMfkxqM3+ed6xDaWZrEmIHU1P0IXduS24Pq LqJ6wHvd0wUso/sg9cAw =p99y -----END PGP SIGNATURE----- --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87iolcvtvn.fsf>