All of lore.kernel.org
 help / color / mirror / Atom feed
* error compiling nfqnl_test.c
@ 2006-05-21 19:15 Frank Abel Cancio Bello
  2006-05-22 14:06 ` Sebastien Tricaud
  0 siblings, 1 reply; 6+ messages in thread
From: Frank Abel Cancio Bello @ 2006-05-21 19:15 UTC (permalink / raw)
  To: netfilter

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-05-22 16:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-21 19:15 error compiling nfqnl_test.c Frank Abel Cancio Bello
2006-05-22 14:06 ` Sebastien Tricaud
2006-05-22 14:42   ` Frank Abel Cancio Bello
2006-05-22 14:48     ` Rodrigo Montoro
2006-05-22 16:44       ` Frank Abel Cancio Bello
2006-05-22 14:49     ` Sietse van Zanen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.