Skip to contentSkip to conversation

Problem building libnetfilter_conntrack

DISCUSSION Chase Venters 2 participants 3 messages Oct 20, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

Hello,
I'm trying to do some experimentation with libnetfilter_conntrack. I
noticed
that r4363 does not build, from what I can tell, for a few reasons:

1. libnetfilter_conntrack is the new name, but the process of renaming the header file does not seem to be complete (include/libnetfilter_conntrack contains libnfnetlink_conntrack.h but Makefile.in says:

Quoted 1 line

pkginclude_HEADERS = libnetfilter_conntrack.h

and libnetfilter_conntrack.c says:

Quoted 1 line

#include <libnetfilter_conntrack/libnetfilter_conntrack.h>

Perhaps libnetfilter_conntrack.h was not checked in?

2. Even when fixing the above, I seem to run into build issues:

Quoted 1 line

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=

\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnetfilter_conntrack\" -DVERSION=\"0.0.20\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_LIBNFNETLINK=1 -I. -I. -I../include
-I/lib/modules/2.6.14-rc5/build/include -fPIC -Wall -g -O2 > -DLIBNETFILTER_CONNTRACK_DIR=\"/usr/local/lib/\" -c libnetfilter_conntrack.c
-MT libnetfilter_conntrack.lo -MD -MP
-MF .deps/libnetfilter_conntrack.TPlo
-fPIC -DPIC -o .libs/libnetfilter_conntrack.o

Quoted 2 lines

libnetfilter_conntrack.c: In function `callback_handler':
libnetfilter_conntrack.c:44: error: dereferencing pointer to

incomplete type

Quoted 1 line

libnetfilter_conntrack.c:56: error: dereferencing pointer to

incomplete type

Quoted 1 line

libnetfilter_conntrack.c:59: error: dereferencing pointer to

incomplete type

Quoted 2 lines

...

I've tried other revisions, and I seem to always run into problems with struct nfct_msg_handler. I'm going to try poking around a bit more myself to see if I can find anything obviously wrong, but I suspect that Subversion may be missing an updated libnetfilter_conntrack.h (from what I can tell,
libnfnetlink_conntrack.h hasn't changed since at least before r4295).

Any advice? Please CC me as I'm not yet a member of netfilter-devel.

Thanks,
Chase

Chase Venters
Development Engineer
w: 214-242-5922
c: 972-679-0094
f: 214-242-5999
[email protected]
www.tekVizion.com

#1 lore raw
Quoted 2 lines · Chase Venters

I'm trying to do some experimentation with libnetfilter_conntrack. I
noticed that r4363 does not build, from what I can tell, for a few reasons:

I forgot to commit some changes to SVN. Please, update your working copy and try again.

--
Pablo

#2 lore raw
Quoted 10 lines · Pablo Neira
Quoted 2 lines · Chase Venters

I'm trying to do some experimentation with libnetfilter_conntrack. I
noticed that r4363 does not build, from what I can tell, for a few reasons:

I forgot to commit some changes to SVN. Please, update your working copy and try again.

--
Pablo

Problem solved.

Thanks a lot!

- Chase

Chase Venters
Development Engineer
w: 214-242-5922
c: 972-679-0094
f: 214-242-5999
[email protected]
www.tekVizion.com