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

[ns] nam and nse build failure



Hi
I am unable to build nam and nse on FreeBSD 4.3 i386.
With Nam I get the following error:


============================================================
* Build nam-1.0a10
============================================================
loading cache ./config.cache
checking how to run the C preprocessor... (cached) cc
-E
checking for ANSI C header files... (cached) yes
No .configure file found in current directory
Continuing with default options...
checking host system type... i386-unknown-freebsd4.3
checking target system type... i386-unknown-freebsd4.3
checking build system type... i386-unknown-freebsd4.3
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a
cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++ 
            checking whether the C++ compiler (c++  )
works... yes
checking whether the C++ compiler (c++  ) is a
cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... (cached) no
checking for socket in -lsocket... (cached) no
checking for gethostbyname in -lnsl... (cached) yes
checking for dcgettext in -lintl... (cached) no
checking for getnodebyname in -ldnet_stub... (cached)
no
checking that c++ can handle -O2... yes
checking standard STL is available... yes
checking for zlib.h... -I../zlib-1.1.3
checking for libz1.1.3... -L../zlib-1.1.3 -lz
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... (cached) no
checking for libXext.a
checking for tcl.h... -I../include
checking for libtcl8.3... -L../lib -ltcl8.3
checking for init.tcl... ../lib/tcl8.3
checking for tclsh8.3.2... (cached) ../bin/tclsh8.3
checking for tk.h... -I../include
checking for libtk8.3... -L../lib -ltk8.3
checking for tk.tcl... ../lib/tk8.3
checking for libtcldbg... no
checking for otcl.h... -I../otcl-1.0a7
checking for libotcl1.0a7... -L../otcl-1.0a7 -lotcl
checking for tclcl.h... -I../tclcl-1.0b11
checking for libtclcl... -L../tclcl-1.0b11 -ltclcl
checking for tcl2c++... ../tclcl-1.0b11
checking return type of random... long
checking for int8_t... (cached) yes
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for u_int8_t... (cached) yes
checking for u_int16_t... (cached) yes
checking for u_int32_t... (cached) yes
checking for strtoq... (cached) yes
checking for strtoll... (cached) yes
checking size of long... (cached) 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... (cached) yes
checking which kind of 64-bit int to use... int64_t
checking for snprintf... (cached) yes
No explicit static compilation flag; setting V_STATIC
to ""
no dynamic load lib
checking for a BSD compatible install... (cached)
/usr/bin/install -c
updating cache ./config.cache
creating ./config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged
rm -f nam
c++   -o nam  tkcompat.o tkUnixInit.o xwd.o netview.o
netmodel.o edge.o packet.o node.o main.o  trace.o
queue.o drop.o animation.o agent.o feature.o  route.o
transform.o paint.o state.o monitor.o anetmodel.o 
random.o rng.o view.o graphview.o netgraph.o
tracehook.o lan.o psview.o group.o editview.o tag.o
address.o animator.o  wnetmodel.o nam_stream.o
enetmodel.o testview.o parser.o  trafficsource.o
gen/version.o gen/nam_tcl.o 
-L/root/ns-allinone-2.1b8/tclcl-1.0b11 -ltclcl
-L/root/ns-allinone-2.1b8/otcl-1.0a7 -lotcl
-L/root/ns-allinone-2.1b8/lib -ltk8.3
-L/root/ns-allinone-2.1b8/lib -ltcl8.3
-L/root/ns-allinone-2.1b8/zlib-1.1.3 -lz 
-L/usr/X11R6/lib -lXext -lX11  -lnsl -lm
/usr/libexec/elf/ld: cannot find -lnsl
*** Error code 1

Stop in /root/ns-allinone-2.1b8/nam-1.0a10.
Nam make failed! Continue ...
******************************************************


Has someone else come across the same problem? I will
be grateful if they can help me.



Further, when I tried to build nse for emulation
support, I got the following error:

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/root/ns-allinone-2.1b8/tclcl-1.0b11
-I/root/ns-allinone-2.1b8/otcl-1.0a7
-I/root/ns-allinone-2.1b8/include
-I/root/ns-allinone-2.1b8/include -o emulate/iptap.o
emulate/iptap.cc
In file included from /usr/include/netinet6/in6.h:76,
                 from /usr/include/netinet/in.h:475,
                 from emulate/iptap.h:40,
                 from emulate/iptap.cc:39:
/usr/include/sys/queue.h:260: warning: `LIST_HEAD'
redefined
lib/bsd-list.h:98: warning: this is the location of
the previous definition
/usr/include/sys/queue.h:269: warning: `LIST_ENTRY'
redefined
lib/bsd-list.h:104: warning: this is the location of
the previous definition
/usr/include/sys/queue.h:284: warning: `LIST_INIT'
redefined
lib/bsd-list.h:111: warning: this is the location of
the previous definition
/usr/include/sys/queue.h:292: warning:
`LIST_INSERT_AFTER' redefined
lib/bsd-list.h:119: warning: this is the location of
the previous definition
/usr/include/sys/queue.h:299: warning:
`LIST_INSERT_BEFORE' redefined
lib/bsd-list.h:126: warning: this is the location of
the previous definition
/usr/include/sys/queue.h:306: warning:
`LIST_INSERT_HEAD' redefined
lib/bsd-list.h:133: warning: this is the location of
the previous definition
/usr/include/sys/queue.h:315: warning: `LIST_REMOVE'
redefined
lib/bsd-list.h:140: warning: this is the location of
the previous definition
In file included from emulate/iptap.h:41,
                 from emulate/iptap.cc:39:
/usr/include/netinet/ip.h:156: syntax error before `['
/usr/include/netinet/ip.h:159: syntax error before `;'
*** Error code 1
****************************************************

It fails to recognize the type n_long in ip.h. I have
attached ip.h with this mail. Please advise.

Thanks
Anurag                                                
                



                                            

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

ip.h