Thank you very much. It got solved by linking libpfring On Mon, Oct 1, 2012 at 5:12 PM, Luca Deri <[email protected]> wrote:
> On 09/30/2012 02:56 PM, ARUN PUSHKAR wrote: > > i am trying to install pf_ring in my ubuntu12.04. i followed every step > given in its user guide and was successfull to execute every step given in > it. but moment i run the examples given in example directory i get > following error:after executing # gcc pfcount.c -lpcap -lpthread > > > You forgot to link against libpfring > > Luca > > any suggession why this is coming . > > /tmp/ccJEMuAO.o: In function print_stats': pfcount.c:(.text+0xe6): > undefined reference topfring_stats' > pfcount.c:(.text+0x307): undefined reference to pfring_format_numbers' > pfcount.c:(.text+0x34e): undefined reference topfring_format_numbers' > pfcount.c:(.text+0x3a4): undefined reference to pfring_format_numbers' > pfcount.c:(.text+0x41f): undefined reference topfring_format_numbers' > pfcount.c:(.text+0x556): undefined reference to pfring_format_numbers' > /tmp/ccJEMuAO.o:pfcount.c:(.text+0x594): more undefined references > topfring_format_numbers' > follow > /tmp/ccJEMuAO.o: In function drop_packet_rule': pfcount.c:(.text+0x813): > undefined reference topfring_handle_hash_filtering_rule' > pfcount.c:(.text+0x930): undefined reference to pfring_add_filtering_rule' > /tmp/ccJEMuAO.o: In functionsigproc': > pfcount.c:(.text+0xa03): undefined reference to pfring_close' > /tmp/ccJEMuAO.o: In functiondummyProcesssPacket': > pfcount.c:(.text+0xe17): undefined reference to pfring_parse_pkt' > pfcount.c:(.text+0x1469): undefined reference topfring_parse_pkt' > /tmp/ccJEMuAO.o: In function packet_consumer_thread': > pfcount.c:(.text+0x18bb): undefined reference topfring_recv' > /tmp/ccJEMuAO.o: In function main': pfcount.c:(.text+0x1c4d): undefined > reference topfring_config' > pfcount.c:(.text+0x1c99): undefined reference to pfring_open' > pfcount.c:(.text+0x1cf8): undefined reference to > pfring_set_application_name' > pfcount.c:(.text+0x1d0d): undefined reference to pfring_version' > pfcount.c:(.text+0x1d8e): undefined reference to > pfring_get_bound_device_address' > pfcount.c:(.text+0x1dd9): undefined reference to > pfring_get_bound_device_ifindex' > pfcount.c:(.text+0x1e21): undefined reference to > pfring_get_num_rx_channels' > pfcount.c:(.text+0x1e68): undefined reference to pfring_set_bpf_filter' > pfcount.c:(.text+0x1ecb): undefined reference topfring_set_cluster' > pfcount.c:(.text+0x1ef9): undefined reference to pfring_set_direction' > pfcount.c:(.text+0x1f12): undefined reference topfring_set_socket_mode' > pfcount.c:(.text+0x1f59): undefined reference to pfring_set_poll_watermark' > pfcount.c:(.text+0x1fa7): undefined reference to > pfring_set_reflector_device' > pfcount.c:(.text+0x1fed): undefined reference to pfring_enable_rss_rehash' > pfcount.c:(.text+0x200b): undefined reference topfring_set_poll_duration' > pfcount.c:(.text+0x207d): undefined reference to pfring_enable_ring' > pfcount.c:(.text+0x209a): undefined reference topfring_close' > pfcount.c:(.text+0x2132): undefined reference to pfring_loop' > pfcount.c:(.text+0x2157): undefined reference topfring_close' > collect2: ld returned 1 exit status > > > -- > Arun Pushkar > 09043404301 > > > > _______________________________________________ > Ntop-misc mailing > [email protected]http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > -- Arun Pushkar 09043404301
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
