[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] [Fwd: Error when make nse in FreeBSD 4.4]




Does anyone have the experience make nse in FreeBSD 4.4. I installed the
 ns-allinone-2.1b8a in FreeBSD 4.4. but when I make nse, it came out an 
error message as follows:

c++ -c -O2 -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR 
- DNDEBUG -DHAVE_STL -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -
DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -
DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/usr/X11R6/include  -
I/usr/home/walter/ns-allinone-2.1b8a/tclcl-1.0b11 -I/usr/home/walter/ns-
allinone-2.1b8a/otcl-1.0a7 -I/usr/home/walter/ns-allinone-2.1b8a/include
- I/usr/home/walter/ns-allinone-2.1b8a/include -o emulate/iptap.o 
emulate/iptap.cc

In file included from emulate/iptap.h:41,
                 from emulate/iptap.cc:39:
/usr/include/netinet/ip.h:156: Syntax error befor '['
/usr/include/netinet/ip.h:159: Syntax error before ';'
*** Error code 1

Stop in /usr/home/walter/ns-allinone-2.1b8a/ns-2.1b8a


It seems that the problem comes from the #include <netinet/ip.h>. But this 
is the include source code when we install the operating system, there 
should be no error at all. I compile this header seperately and not syntax 
error report. 

Here after is the codes that report error message. 

line
	union ipt_timestamp {
156:            n_long	ipt_time[1];
		struct	ipt_ta {
			struct in_addr ipt_addr;
159:                    n_long ipt_time;
		} ipt_ta[1];
	} ipt_timestamp;

Do you have any idea what can cause this error message?
Thanks for your help.

Zhanping