*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had installed libpcap-1.7.4 from tcpdump.org into my OpenBSD machine but when I running ./configure command for DAQ packages, it cannot detected the libpcap installation.
Why is the error?
Error:
Code:
Checking for pcap_lib_version >= 1.0.0 not found
Error:
Get it from http://www.tcpdump.org
If you followed the instructions (you never posted what you actually did, neither did you show if files were installed properly nor is there any evidence you checked the configure.log) 'make install;' puts libraries in /usr/local/lib and the headers in /usr/local/include. So after you 'ldconfig -mrv /usr/local/lib' then you './configure --with-libpcap-libraries=/usr/local/lib --with-libpcap-includes=/usr/local/include;' and check the log for clues. If unsure post actual log lines that contain clues and not only the final error message because that doesn't help us help you.
If you followed the instructions (you never posted what you actually did, neither did you show if files were installed properly nor is there any evidence you checked the configure.log) 'make install;' puts libraries in /usr/local/lib and the headers in /usr/local/include. So after you 'ldconfig -mrv /usr/local/lib' then you './configure --with-libpcap-libraries=/usr/local/lib --with-libpcap-includes=/usr/local/include;' and check the log for clues. If unsure post actual log lines that contain clues and not only the final error message because that doesn't help us help you.
Thanks for your explanation. I had tried to run with
conftest.c:58:28: error: linux/if_ether.h: No such file or directory
conftest.c:58:29: error: linux/if_packet.h: No such file or directory
conftest.c: In function 'main':
conftest.c:34: error: 'TPACKET2_HDRLEN' undeclared (first use in this function)
conftest.c:34: error: (Each undeclared identifier is reported only once
conftest.c:34: error: for each function it appears in.)
conftest.c:35: error: 'PACKET_TX_RING' undeclared (first use in this function)
conftest.c:35: error: (Each undeclared identifier is reported only once
conftest.c:35: error: for each function it appears in.)
conftest.c:62:20: error: libipq.h: No such file or directory
conftest.c:33:29: error: linux/netfilter.h: No such file or directory
conftest.c:63:51: error: libnetfilter_queue/libnetfilter_queue.h: No such file or directory
conftest.c:36:24: error: net/netmap.h: No such file or directory
conftest.c:36:29: error: net/netmap_user.h: No such file or directory
conftest.c:34:43: error: net/netmap.h: No such file or directory
conftest.c: In function 'main':
conftest.c:44: error: 'NETMAP_API' undeclared (first use in this function)
conftest.c:44: error: (Each undeclared identifier is reported only once
conftest.c:44: error: for each function it appears in.)
/usr/bin/ld: cannot find -ldl
conftest.c:78: error: expected expression before ')' token
My os is OpenBSD 5.7.
How to port Linux IP FIlter related files to OpenBSD.
Please help. Thanks.
Last edited by Peter_APIIT; 08-02-2015 at 08:08 PM.
I would like to install DAQ with afpacket and finally install Snort IPS using afpacket. There is Snort packages from OpenBSD repositories but it does not have afpacket included.
Based on the error at config.log, DAQ with afpacket is only applicable to Linux only. Therefore, I wonder how to port those linux IP Filter header file to OpenBSD?
I really can't see the sense in trying to port Linux AF_PACKET code to OpenBSD sorry and can't really help (wouldn't know where to start for one thing). Rather than splitting over two sites, perhaps concentrate on your more active thread at daemonforums.org ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.