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

No Subject



Hi everybody,

I tried to build ns through building "from all the
pieces" according to the specification shown on
webpage www.isi.edu/nsnam/ns/ns-build.html, however,
when I run "make" after finish "./configure" for oTcl,
a problem happened.

========
$ make 

rm -f libotcl.a otcl.o gcc -c -g -O2 -DNDEBUG
-DHAVE_STL -DUSE_SHM -I. -I
~/NS/tk8.3.2/generic 
~/NS/tcl8.3.2/generic -I/include  otcl.c 
/usr/ccs/bin/ar cq libotcl.a otcl.o : libotcl.a 
rm -f libotcl.so otcl.o so_locations 
gcc -c -g -O2 -DNDEBUG -DHAVE_STL -DUSE_SHM -fpic -I.
-I ~/NS/tk8.3.2/generic 
-I ~/NS/tcl8.3.2/generic -I/include otcl.c
/usr/ccs/bin/ld -G -z text -o libotcl.so otcl.o
rm -f libotcl.so
gcc -o otclsh  -g -O2 -I. -I ~/NS/tk8.3.2/generic -I
~/NS/tcl8.3.2/generic -I/include  otclAppInit.c \ -L.
-lotcl -R/usr/local/lib -L/opt/local/lib -ltk
-R/usr/local/lib -L/opt/local/lib -ltcl -lXext -lX11 
-lsocket -lnsl -lintl -ldl -lm 
Undefined                            first referenced 
  symbol                                 in file 
Tcl_DeleteCommandFromToken         ./libotcl.a(otcl.o)
Tcl_CreateNamespace                ./libotcl.a(otcl.o)
Tcl_AddObjErrorInfo                ./libotcl.a(otcl.o)

TclFreeObj                         ./libotcl.a(otcl.o)
Tcl_ProcObjCmd                     ./libotcl.a(otcl.o)

Tcl_FindCommand                    ./libotcl.a(otcl.o)

Tcl_GetString                      ./libotcl.a(otcl.o)

Tcl_NewStringObj                   ./libotcl.a(otcl.o)

ld: fatal: Symbol referencing errors. No output
written to otclsh 
make: *** [otclsh] Error 1 
===========================

Can somebody else give me any suggestions for this
problem since I am a new hand for ns? 

P.S I also checked the ns-problem list, there is a
similar problem. It writes "building everything in
gcc, don't mix gcc/g++ and cc/ld". I am still confused
how to do it?

Sincerely,
Yiran



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/