Hi All,
I have written an application to receive packets through NFQUEUE
target of iptables.
The application runs OK on a PC but the problem is that I can't
compile it for my android phone.
I am giving the following command to compile it:

arm-none-linux-gnueabi-gcc -Wall -o nfqueue_test nfqueue_test.c -
lnfnetlink -lnetfilter_queue

And I am getting the following error messages :

nfqueue_test.c:3:51: error: libnetfilter_queue/libnetfilter_queue.h:
No such file or directory
nfqueue_test.c:116: warning: 'struct nfq_data' declared inside
parameter list
nfqueue_test.c:116: warning: its scope is only this definition or
declaration, which is probably not what you want
nfqueue_test.c:116: warning: 'struct nfgenmsg' declared inside
parameter list
nfqueue_test.c:116: warning: 'struct nfq_q_handle' declared inside
parameter list
nfqueue_test.c: In function 'nfqueue_cb':
nfqueue_test.c:124: warning: implicit declaration of function
'nfq_get_msg_packet_hdr'
nfqueue_test.c:124: warning: assignment makes pointer from integer
without a cast
nfqueue_test.c:137: error: dereferencing pointer to incomplete type
nfqueue_test.c:139: error: dereferencing pointer to incomplete type
nfqueue_test.c:139: error: dereferencing pointer to incomplete type
nfqueue_test.c:141: warning: implicit declaration of function
'nfq_get_payload'
nfqueue_test.c:148: warning: implicit declaration of function
'nlif_open'
nfqueue_test.c:148: warning: assignment makes pointer from integer
without a cast
nfqueue_test.c:153: warning: implicit declaration of function
'nlif_query'
nfqueue_test.c:155: warning: implicit declaration of function
'nfq_get_indev_name'
nfqueue_test.c:160: warning: implicit declaration of function
'nlif_close'
nfqueue_test.c:164: error: dereferencing pointer to incomplete type
nfqueue_test.c:223: warning: implicit declaration of function
'nfq_set_verdict'
nfqueue_test.c: In function 'netlink_loop':
nfqueue_test.c:247: warning: implicit declaration of function
'nfq_open'
nfqueue_test.c:247: warning: assignment makes pointer from integer
without a cast
nfqueue_test.c:255: warning: implicit declaration of function
'nfq_unbind_pf'
nfqueue_test.c:261: warning: implicit declaration of function
'nfq_bind_pf'
nfqueue_test.c:268: warning: implicit declaration of function
'nfq_create_queue'
nfqueue_test.c:268: warning: assignment makes pointer from integer
without a cast
nfqueue_test.c:276: warning: implicit declaration of function
'nfq_set_mode'
nfqueue_test.c:276: error: 'NFQNL_COPY_PACKET' undeclared (first use
in this function)
nfqueue_test.c:276: error: (Each undeclared identifier is reported
only once
nfqueue_test.c:276: error: for each function it appears in.)
nfqueue_test.c:284: warning: implicit declaration of function
'nfq_nfnlh'
nfqueue_test.c:284: warning: assignment makes pointer from integer
without a cast
nfqueue_test.c:289: warning: implicit declaration of function
'nfnl_fd'
nfqueue_test.c:294: warning: implicit declaration of function
'nfq_handle_packet'
nfqueue_test.c:299: warning: implicit declaration of function
'nfq_destroy_queue'
nfqueue_test.c:300: warning: implicit declaration of function
'nfq_close'


As obvious my cross-compiler is not getting the libnetfilter_queue
library .....
Could any body please tell me how can I compile this application for
android ????

Thanks in advance,
imran


-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to