error compiling nfqnl_test.c

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

 



Hi all!

A newbie question:
When I try to compile "nfqnl_test.c" putting on command line:

"gcc -Wall -o nfqnl_test nfqnl_test.c"

the following error occur:

"
/tmp/cc8hh7RL.o: In function `print_pkt':nfqnl_test.c:(.text+0x15): undefined 
reference to `nfq_get_msg_packet_hdr'
:nfqnl_test.c:(.text+0x73): undefined reference to `nfq_get_nfmark'
:nfqnl_test.c:(.text+0x9a): undefined reference to `nfq_get_indev'
:nfqnl_test.c:(.text+0xc1): undefined reference to `nfq_get_outdev'
:nfqnl_test.c:(.text+0xef): undefined reference to `nfq_get_payload'
/tmp/cc8hh7RL.o: In function `cb':nfqnl_test.c:(.text+0x173): undefined 
reference to `nfq_set_verdict'
/tmp/cc8hh7RL.o: In function `main':nfqnl_test.c:(.text+0x1a5): undefined 
reference to `nfq_open'
:nfqnl_test.c:(.text+0x1fe): undefined reference to `nfq_unbind_pf'
:nfqnl_test.c:(.text+0x252): undefined reference to `nfq_bind_pf'
:nfqnl_test.c:(.text+0x2b6): undefined reference to `nfq_create_queue'
:nfqnl_test.c:(.text+0x317): undefined reference to `nfq_set_mode'
:nfqnl_test.c:(.text+0x357): undefined reference to `nfq_nfnlh'
:nfqnl_test.c:(.text+0x365): undefined reference to `nfnl_fd'
:nfqnl_test.c:(.text+0x392): undefined reference to `nfq_handle_packet'
:nfqnl_test.c:(.text+0x3dd): undefined reference to `nfq_destroy_queue'
:nfqnl_test.c:(.text+0x3f4): undefined reference to `nfq_close'
collect2: ld returned 1 exit status
"

What I must put a command line to compile the "nfqnl_test.c"

Salute
Frank Abel


__________________________________________

XIII Convención Científica de Ingeniería y Arquitectura
28/noviembre al 1/diciembre de 2006
Cujae, Ciudad de la Habana, Cuba
http://www.cujae.edu.cu/eventos/convencion


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux