LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 08-01-2015, 03:14 AM   #1
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Rep: Reputation: 31
Libpcap installed but no detected


Dear All,

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
Please help. Thanks.
 
Old 08-01-2015, 10:17 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,774

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
You probably need to install the libpcap-devel package. It contains the header files that the compiler needs.
 
Old 08-02-2015, 04:11 AM   #3
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by rknichols View Post
You probably need to install the libpcap-devel package. It contains the header files that the compiler needs.
Do you know where to download the libpcap-devel files for OpenBSD?
 
Old 08-02-2015, 04:36 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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.
 
1 members found this post helpful.
Old 08-02-2015, 11:31 AM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <BSD> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 08-02-2015, 07:58 PM   #6
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by unSpawn View Post
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

Code:
  
./configure --with-libpcap-libraries=/usr/local/lib --with-libpcap-includes=/usr/local/include --enable-afpacket-module=yes
but afpacket and nfq was not configured successfully.

Config.log shows:

Quote:
conftest.c:11:28: error: ac_nonexistent.h: No such file or directory

| /* confdefs.h */
| #define PACKAGE_NAME "daq"
| #define PACKAGE_TARNAME "daq"
| #define PACKAGE_VERSION "2.0.6"
| #define PACKAGE_STRING "daq 2.0.6"
| #define PACKAGE_BUGREPORT "snort-team@sourcefire.com"
| #define PACKAGE_URL ""
| #define PACKAGE "daq"
| #define VERSION "2.0.6"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>

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.
 
Old 08-03-2015, 07:02 AM   #7
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
Quote:
Originally Posted by Peter_APIIT View Post
My os is OpenBSD 5.7.
How to port Linux IP FIlter related files to OpenBSD.

Please help. Thanks.
What exactly are you trying to achieve?
 
Old 08-03-2015, 09:56 PM   #8
Peter_APIIT
Member
 
Registered: Dec 2006
Posts: 606

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by cynwulf View Post
What exactly are you trying to achieve?
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?

Please help. Thanks.
 
Old 08-04-2015, 03:15 PM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
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 ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libpcap installed but where!? (debian) borgy95 Linux - Software 3 03-03-2016 05:07 PM
ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h) not found OtagoHarbour Linux - Newbie 12 08-28-2012 01:59 PM
"cannot stat `libpcap.so.1.0.0':" error during make of Libpcap 1.0.0 on Fedora 9 myriad_moments Linux - Software 4 04-09-2010 02:02 AM
tcpip not installed/detected tuneout Slackware 1 02-17-2006 08:01 PM
Says Failed dependency even when libpcap.so.0 installed. X-Unix Mandriva 2 09-13-2004 11:19 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration