[ns] [bug] cannot find pcap.h on SuSE 7.3

Christof Brandauer cbrand@gmx.at
Tue Apr 23 10:40:02 2002


[Bug Report]

-----------------------------
Category:  Installation Failure
Package:   ns 2.1b9
OS:        Linux - SuSE 7.3
Environment Variables:
LD_LIBRARY_PATH=
TCL_LIBRARY=
TK_LIBRARY=

-----------------------------
Description:

Description of Problem:
i tried to install ns-allinone-2.1b9 on a SuSE 7.3 system.  there is one
problem when it comes to compilation of nse because t
he pcap.h header file cannot be found.

How Easily Reproducible:
(e.g. every time, intermittent, once only, etc.)

every time

Steps to Reproduce:
(describe the minimal set of steps necessary to trigger the bug)
1. run the install script on a SuSE 7.3 box
2.
3.


Actual Results:
(describe what the application did after performing the above steps)

emulate/net-pcap.cc:60: pcap/pcap.h: No such file or directory

Expected Results:
(describe what the application should have done, were the bug not present)


Additional Information:
(the following infomation is helpful to debug:
 1. simulation script, detailed output files, packet trace
 2. patch file if you modify some source code
 3. a backtrace from gdb if you get a segment fault
 If they are big files, PLEASE put them in your web space and
 include the URL here.)

on the SuSE 7.3 box the pcap header file is installed in /usr/include and
not in /usr/include/pcap.

the quick hack is to change the path in ~ns-2.1b9/emulate/net-pcap.cc

--- net-pcap.cc.orig_b9 Tue Apr 23 12:52:04 2002
+++ net-pcap.cc Tue Apr 23 13:00:05 2002
@@ -57,10 +57,10 @@

 #ifdef __cplusplus
 extern "C" {
-#include <pcap/pcap.h>
+#include <pcap.h>
 }
 #else
-#include <pcap/pcap.h>
+#include <pcap.h>
 #endif

 #include "config.h"

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net