LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 11-01-2006, 09:56 AM   #1
tbaror
Member
 
Registered: Apr 2006
Posts: 33

Rep: Reputation: 0
Question iptables with libnfnetlink


Hello All,

I am trying to build firewall (CentOs 4.4) based on iptables 1.3.6 with Snort to act as IPS for that i need to install libnfnetlink(0.0.16).
when i am trying to compile right after the "./configure" stage the "make" failed and getting errors.
The error might related to the fact that i omitted the "--with-kernel=" option if yes i dont know the path to the kernel.
Since i am newbie with linux i will be more than glad to get help with this topic.

thanks in Advance
Code:
*********error during compilation****************
usr/include/linux/netlink.h:22: error: syntax error before "__u32"
/usr/include/linux/netlink.h:28: error: syntax error before "__u32"
/usr/include/linux/netlink.h:30: error: syntax error before "nlmsg_flags"
/usr/include/linux/netlink.h:31: error: syntax error before "nlmsg_seq"
/usr/include/linux/netlink.h:32: error: syntax error before "nlmsg_pid"
/usr/include/linux/netlink.h:82: error: field `msg' has incomplete type
In file included from libnfnetlink.c:42:
../include/libnfnetlink/libnfnetlink.h:36: error: field `nlh' has incomplete type
libnfnetlink.c:73: error: field `local' has incomplete type
libnfnetlink.c:74: error: field `peer' has incomplete type
libnfnetlink.c: In function `nfnl_dump_packet':
libnfnetlink.c:84: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:85: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:86: error: dereferencing pointer to incomplete type
libnfnetlink.c:86: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:96: error: dereferencing pointer to incomplete type
libnfnetlink.c:96: error: dereferencing pointer to incomplete type
libnfnetlink.c:97: error: dereferencing pointer to incomplete type
libnfnetlink.c:97: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_send':
libnfnetlink.c:288: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_fill_hdr':
libnfnetlink.c:337: error: dereferencing pointer to incomplete type
libnfnetlink.c:339: error: dereferencing pointer to incomplete type
libnfnetlink.c:339: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:340: error: dereferencing pointer to incomplete type
libnfnetlink.c:341: error: dereferencing pointer to incomplete type
libnfnetlink.c:342: error: dereferencing pointer to incomplete type
libnfnetlink.c:343: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_parse_hdr':
libnfnetlink.c:355: error: dereferencing pointer to incomplete type
libnfnetlink.c:355: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:358: error: dereferencing pointer to incomplete type
libnfnetlink.c:358: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:367: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c: In function `nfnl_recv':
libnfnetlink.c:376: error: storage size of 'peer' isn't known
libnfnetlink.c:379: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:395: error: dereferencing pointer to incomplete type
libnfnetlink.c:376: warning: unused variable `peer'
libnfnetlink.c: In function `nfnl_listen':
libnfnetlink.c:422: error: storage size of 'nladdr' isn't known
libnfnetlink.c:465: error: dereferencing pointer to incomplete type
libnfnetlink.c:467: error: dereferencing pointer to incomplete type
libnfnetlink.c:468: error: dereferencing pointer to incomplete type
libnfnetlink.c:480: error: dereferencing pointer to incomplete type
libnfnetlink.c:485: error: dereferencing pointer to incomplete type
libnfnetlink.c:486: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:422: warning: unused variable `nladdr'
libnfnetlink.c: In function `nfnl_talk':
libnfnetlink.c:519: error: storage size of 'nladdr' isn't known
libnfnetlink.c:524: error: dereferencing pointer to incomplete type
libnfnetlink.c:538: error: dereferencing pointer to incomplete type
libnfnetlink.c:541: error: dereferencing pointer to incomplete type
libnfnetlink.c:569: error: dereferencing pointer to incomplete type
libnfnetlink.c:570: error: dereferencing pointer to incomplete type
libnfnetlink.c:571: error: dereferencing pointer to incomplete type
libnfnetlink.c:583: error: dereferencing pointer to incomplete type
libnfnetlink.c:584: error: dereferencing pointer to incomplete type
libnfnetlink.c:593: error: dereferencing pointer to incomplete type
libnfnetlink.c:594: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:601: error: dereferencing pointer to incomplete type
libnfnetlink.c:609: error: dereferencing pointer to incomplete type
libnfnetlink.c:519: warning: unused variable `nladdr'
libnfnetlink.c: In function `nfnl_addattr_l':
libnfnetlink.c:645: error: dereferencing pointer to incomplete type
libnfnetlink.c:646: error: dereferencing pointer to incomplete type
libnfnetlink.c:651: error: dereferencing pointer to incomplete type
libnfnetlink.c:655: error: dereferencing pointer to incomplete type
libnfnetlink.c:655: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_get_msg_first':
libnfnetlink.c:829: error: dereferencing pointer to incomplete type
libnfnetlink.c:829: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:829: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_get_msg_next':
libnfnetlink.c:853: error: dereferencing pointer to incomplete type
libnfnetlink.c:854: error: dereferencing pointer to incomplete type
libnfnetlink.c:862: error: dereferencing pointer to incomplete type
libnfnetlink.c:862: error: dereferencing pointer to incomplete type
libnfnetlink.c:862: warning: left-hand operand of comma expression has no effectlibnfnetlink.c:864: error: dereferencing pointer to incomplete type
libnfnetlink.c:864: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:864: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_check_attributes':
libnfnetlink.c:900: error: dereferencing pointer to incomplete type
libnfnetlink.c:901: error: dereferencing pointer to incomplete type
libnfnetlink.c:917: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:918: error: dereferencing pointer to incomplete type
libnfnetlink.c:923: error: dereferencing pointer to incomplete type
libnfnetlink.c:924: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:925: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `__nfnl_handle_msg':
libnfnetlink.c:950: error: dereferencing pointer to incomplete type
libnfnetlink.c:951: error: dereferencing pointer to incomplete type
libnfnetlink.c:959: error: dereferencing pointer to incomplete type
libnfnetlink.c:959: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c: In function `nfnl_handle_packet':
libnfnetlink.c:980: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:984: error: dereferencing pointer to incomplete type
libnfnetlink.c:985: error: invalid application of `sizeof' to incomplete type `nlmsghdr'
libnfnetlink.c:985: error: dereferencing pointer to incomplete type
libnfnetlink.c:988: error: dereferencing pointer to incomplete type
make[1]: *** [libnfnetlink.lo] Error 1
make[1]: Leaving directory `/root/Desktop/IPTABLES/libnfnetlink-0.0.16/src'
make: *** [all-recursive] Error 1

Last edited by unSpawn; 11-04-2006 at 09:50 AM. Reason: //moderator encloses errorlog in BB tags
 
Old 11-04-2006, 09:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,457
Blog Entries: 54

Rep: Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897Reputation: 2897
Hello and welcome to LQ. Hope you like it here.

The kernel source usually resides in /usr/src/linux which is a symbolic link to the version of the (currently running) kernel of which you installed the corresponding kernel-devel RPM. NB: this is not a Linux Security question but one about compiling software (the fact the software might be security related does not matter) and as such this thread will be moved to the Linux Software forum RSN. No need to apologise, it's OK, you're new here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 08:20 PM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM


All times are GMT -5. The time now is 03:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration