[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] ns-allinone-2.1b8 installation problem
Hi,
Thank you for your response.
I do it following your advice. But there are other problems. I attach it
here.
And I attach the result of "./configure" in attach file. When I install
ns-allinone-2.1b7a, there is not problem. I find that the result of
"./configure" in two NS versions are different. Also, I attach it in attach
file.
Please help me.
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 -R../tclcl-1.0b11
-L/export/home/dygao/ns-allinone-2.1b8/tclcl-1.0b11 -ltclcl -R../otcl-1.0a7
-L/export/home/dygao/ns-allinone-2.1b8/otcl-1.0a7 -lotcl -R../lib
-L/export/home/dygao/ns-allinone-2.1b8/lib -ltk8.3 -R../lib
-L/export/home/dygao/ns-allinone-2.1b8/lib -ltcl8.3 -R../zlib-1.1.3
-L/export/home/dygao/ns-allinone-2.1b8/zlib-1.1.3 -lz -R/usr/openwin/lib
-L/usr/openwin/lib -lXext -lX11 -lnsl -ldl -ldl -lm -ldl
Undefined first referenced
symbol in file
socket
/export/home/dygao/ns-allinone-2.1b8/lib/libtcl8.3.a(tclUnixChan.o) (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
getpeername
/export/home/dygao/ns-allinone-2.1b8/lib/libtcl8.3.a(tclUnixChan.o) (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
recv
/export/home/dygao/ns-allinone-2.1b8/lib/libtcl8.3.a(tclUnixChan.o) (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
accept
/export/home/dygao/ns-allinone-2.1b8/lib/libtcl8.3.a(tclUnixChan.o) (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
send
/export/home/dygao/ns-allinone-2.1b8/lib/libtcl8.3.a(tclUnixChan.o) (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
bind
/export/home/dygao/ns-allinone-2.1b8/lib/libtcl8.3.a(tclUnixChan.o) (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
setsockopt
/export/home/dygao/ns-allinone-2.1b8/lib/libtcl8.3.a(tclIOSock.o) (symbol
belongs to implicit dependency /usr/libne-2.1b8/lib -ltcl8.3 -R../zlib-1.1.3
-L/export/home/dygao/ns-allinone-2.1b
8/zlib-1.1.3 -lz -R/usr/openwin/lib -L/usr/openwin/lib -lXext -lX11 -lnsl
-ldl -ldl -lm -ldl
Undefined first referenced
symbol in file
socket /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
getpeername /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
recv /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
accept /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
send /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
bind /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
setsockopt /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclIOSock.o) (symbol belongs to implicit dependency /usr/lib
/libsocket.so.1)
getservbyname /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclIOSock.o) (symbol belongs to implicit dependency /usr/lib
/libsocket.so.1)
getsockopt /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclIOSock.o) (symbol belongs to implicit dependency /usr/lib
/libsocket.so.1)
getsockname /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
listen /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
connect /export/home/dygao/ns-allinone-2.1b8/li
b/libtcl8.3.a(tclUnixChan.o) (symbol belongs to implicit dependency /usr/l
ib/libsocket.so.1)
ld: fatal: Symbol referencing errors. No output written to nam
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `nam'
In your mail:
>On Monday 11 June 2001 20:31, you wrote:
>> > make
>>
>> rm -f nam
>> c++ -o nam \
>> tkcompat.o tkUnixInit.o xwd.o netview.o netmodel.o edge.o
>> ld: fatal: file tkcompat.o: wrong machine type
>
>It looks like tkcompat.o was built for a different machine (Linux on
>x86, Solaris on x86, something). Try to do the following
> make clean ; make
>
>The clean directive should get rid of the .o files, allowing them to
>be rebuilt for your machine when you do the make.
>
>Brian Lee Bowers | RADIANT Team
>[email protected] | Los Alamos National Laboratory
>
--http://www.eyou.com
--�ȶ��ɿ�����ѵ������� �����ʼ� �ƶ���ǩ �������� ����洢...����δ��
> ./configure
loading cache ./config.cache
checking how to run the C preprocessor... (cached) cc -E
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... sparc-sun-solaris2.8
checking target system type... sparc-sun-solaris2.8
checking build system type... sparc-sun-solaris2.8
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... -R../zlib-1.1.3 -L../zlib-1.1.3 -lz
checking for X11 header files
grep: can't open conftest.out
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... -R../lib -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... -R../lib -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... -R../otcl-1.0a7 -L../otcl-1.0a7 -lotcl
checking for tclcl.h... -I../tclcl-1.0b11
checking for libtclcl... -R../tclcl-1.0b11 -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 ""
checking for main in -ldl... (cached) yes
checking for a BSD compatible install... (cached) /usr/bin/install -c
creating ./config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged