bugIPQ BDB filter - Bugs: bug #30711, Doesn't build on Fedora 12

 
 

bug #30711: Doesn't build on Fedora 12

Submitted by:  None
Submitted on:  Mon 09 Aug 2010 05:50:53 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Alessandro Vesely <ale2003>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 10 Mar 2011 06:33:28 PM UTC, comment #2:

I close it, having not learned what versions of required libraries were used.

Alessandro Vesely <ale2003>
Project AdministratorIn charge of this item.
Mon 09 Aug 2010 08:11:22 AM UTC, comment #1:

The code should compile cleanly, i.e. without warnings. The output Paul posted show both warning and errors. However, I'd need more info about the output of configure, the version of gcc, and the kernel, in order to address them.

Meanwhile, some comments:

dereferencing pointer ‘cur_key.115’ does break
strict-aliasing rules
Yes, it does: cur_key is an alias for the current key. Aliasing should not supposed to be strict. It is possibly implied by O2.

error: ‘INT_MIN’ undeclared here
(not in a function)
This is in an enum definition in netfilter_ipv4.h. Netfilter is somewhat more used than ipqbdb, so I suspect there may be something wrong in the gcc configuration.

libnetfilter_queue.h: No such
file or directory
Missing libnetfilter should have been diagnosed by configure. That test is probably being skipped. Anyway, ipqbdbd needs a fairly recent version of that library.

Alessandro Vesely <ale2003>
Project AdministratorIn charge of this item.
Mon 09 Aug 2010 05:50:53 AM UTC, original submission:

[paul@home ipqbdb-1.02]$ make
make all-recursive
make[1]: Entering directory `/opt/ipqbdb-1.02'
Making all in .
make[2]: Entering directory `/opt/ipqbdb-1.02'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o ibd-ban.o ibd-ban.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o opendb.o opendb.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o opendb2.o opendb2.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o utf8_util.o utf8_util.c
gcc -std=gnu99 -std=c99 -W -Wall -g -O2 -o ibd-ban ibd-ban.o opendb.o opendb2.o utf8_util.o -ldb -lpopt -lm
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o ibd-del.o ibd-del.c
ibd-del.c: In function ‘do_del’:
ibd-del.c:868: warning: dereferencing pointer ‘cur_key.115’ does break strict-aliasing rules
ibd-del.c:868: note: initialized from here
ibd-del.c:892: warning: dereferencing pointer ‘cur_key.115’ does break strict-aliasing rules
ibd-del.c:892: note: initialized from here
ibd-del.c:905: warning: dereferencing pointer ‘cur_key.115’ does break strict-aliasing rules
ibd-del.c:905: note: initialized from here
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o ipv4_util.o ipv4_util.c
gcc -std=gnu99 -std=c99 -W -Wall -g -O2 -o ibd-del ibd-del.o opendb.o opendb2.o utf8_util.o ipv4_util.o -ldb -lpopt -lm -lpcre
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o ibd-white.o ibd-white.c
gcc -std=gnu99 -std=c99 -W -Wall -g -O2 -o ibd-white ibd-white.o opendb.o ipv4_util.o -ldb -lpopt -lm
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o ibd-config.o ibd-config.c
gcc -std=gnu99 -std=c99 -W -Wall -g -O2 -o ibd-config ibd-config.o -ldb -lpopt -lm
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -std=c99 -W -Wall -g -O2 -c -o ibd-judge.o ibd-judge.c
In file included from ibd-judge.c:46:
/usr/include/linux/netfilter_ipv4.h:53: error: ‘INT_MIN’ undeclared here (not in a function)
/usr/include/linux/netfilter_ipv4.h:64: error: ‘INT_MAX’ undeclared here (not in a function)
ibd-judge.c:80:51: error: libnetfilter_queue/libnetfilter_queue.h: No such file or directory
ibd-judge.c:222: warning: ‘struct nfq_data’ declared inside parameter list
ibd-judge.c:222: warning: its scope is only this definition or declaration, which is probably not what you want
ibd-judge.c:222: warning: ‘struct nfgenmsg’ declared inside parameter list
ibd-judge.c: In function ‘packet_cb’:
ibd-judge.c:238: warning: implicit declaration of function ‘nfq_get_payload’
ibd-judge.c:239: warning: implicit declaration of function ‘nfq_get_msg_packet_hdr’
ibd-judge.c:239: warning: initialization makes pointer from integer without a cast
ibd-judge.c:240: error: dereferencing pointer to incomplete type
ibd-judge.c:256: warning: implicit declaration of function ‘nfq_get_timestamp’
ibd-judge.c:265: error: dereferencing pointer to incomplete type
ibd-judge.c: At top level:
ibd-judge.c:306: warning: ‘struct nfq_handle’ declared inside parameter list
ibd-judge.c: In function ‘daemon_loop’:
ibd-judge.c:324: warning: implicit declaration of function ‘nfq_fd’
ibd-judge.c:339: warning: implicit declaration of function ‘nfq_create_queue’
ibd-judge.c:339: warning: initialization makes pointer from integer without a cast
ibd-judge.c:349: warning: implicit declaration of function ‘nfq_set_mode’
ibd-judge.c:349: error: ‘NFQNL_COPY_PACKET’ undeclared (first use in this function)
ibd-judge.c:349: error: (Each undeclared identifier is reported only once
ibd-judge.c:349: error: for each function it appears in.)
ibd-judge.c:352: warning: implicit declaration of function ‘nfq_destroy_queue’
ibd-judge.c:367: warning: implicit declaration of function ‘nfq_handle_packet’
ibd-judge.c:460: warning: implicit declaration of function ‘nfq_set_verdict’
ibd-judge.c:467: warning: implicit declaration of function ‘nfq_set_verdict_mark’
ibd-judge.c:479: error: ‘nfq_errno’ undeclared (first use in this function)
ibd-judge.c: In function ‘main’:
ibd-judge.c:746: warning: implicit declaration of function ‘nfq_open’
ibd-judge.c:746: warning: assignment makes pointer from integer without a cast
ibd-judge.c:754: warning: implicit declaration of function ‘nfq_unbind_pf’
ibd-judge.c:760: warning: implicit declaration of function ‘nfq_bind_pf’
ibd-judge.c:767: warning: passing argument 1 of ‘daemon_loop’ from incompatible pointer type
ibd-judge.c:306: note: expected ‘struct nfq_handle ’ but argument is of type ‘struct nfq_handle
ibd-judge.c:780: warning: implicit declaration of function ‘nfq_close’
make[2]: *** [ibd-judge.o] Error 1
make[2]: Leaving directory `/opt/ipqbdb-1.02'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/ipqbdb-1.02'
make: *** [all] Error 2 [paul@home ipqbdb-1.02]$

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by ale2003 (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 10 Mar 2011 06:33:28 PM UTCale2003Open/ClosedOpen=>Closed
    Mon 09 Aug 2010 08:12:05 AM UTCale2003Assigned toNone=>ale2003

    Back to the top


    Powered by Savane 3.1-cleanup1