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

Newbie allinone install problems




Greetings,

I have downloaded the Ns-allinone current release 2.1b4a
from the ns website.  I gunzip & tar xvf the release
on either:

SunOS opus 5.6 Generic_105181-06 sun4u sparc SUNW,Ultra-60

or 

SunOS b6000 5.5.1 Generic_103640-17 sun4m sparc SUNW,SPARCstation-5

I type ./install and everything looks like it is building 
nicely until I get to the otcl portion.  I find some comment
lines that the compiler doen't like and fix them.  I then
start the building over again and get to xgraph.  I got what
looked like comment errors again (ie had // but seemed to like
/* ... */ better :-) ).  Restarted the build and got some more
errors at xgraph at which time I downloaded the xgraph src by itself and
put it into the allinone dir.  I still get errors as seen below.
I also get errors further down in the build for other
directories.  

Bottom line to this is I can't seem to get the allinone
package to build on either a 2.6 platform or a 2.5.1 sun platform.
I checked for the patches but nothing seems to help.

Any and all help is greatly appreciated.  Please email me
directly with any ideas or what I'm doing wrong at
[email protected].

Thanks,

Jim



error output of last try at a build:

.
.  everything looks fine at this point
.
checking for tk.h... -I../tkbox/include
checking for libtk8.0... -R../tkbox/lib -L../tkbox/lib -ltk8.0
checking for tk.tcl... ../tkbox/lib/tk8.0
checking for otcl.h... -I../otcl
checking for libotcl1.0a2... -R../otcl -L../otcl -lotcl
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... (cached) yes
checking for XShmAttach in -lXext... (cached) yes
No explicit static compilation flag; setting V_STATIC to ""
checking for main in -ldl... (cached) yes
checking for a BSD compatible install... ./install-sh -c
creating ./config.status
creating Makefile
rm -f embedded-tcl.cc
./tcl2c++ et_tcl ../tclbox/lib/tcl8.0/init.tcl ../tclbox/lib/tcl8.0/history.tcl ../tclbox/lib/tcl8.0/word.tcl ../tclbox/lib/tcl8.0/http2.0/http.tcl > embedded-tcl.cc
c++ -c -O2 -DNO_TK -DHAVE_SNPRINTF  -DNDEBUG -mv8 -msupersparc -D__svr4__ -DUSE_SHM -DHAVE_LIBOTCL1_0A2 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H  -I. -I../otcl -I../tkbox/include -I../tclbox/include  -o embedded-tcl.o embedded-tcl.cc
rm -f embedded-tk.cc
./tcl2c++ et_tk ../tclbox/lib/tcl8.0/init.tcl ../tclbox/lib/tcl8.0/history.tcl ../tclbox/lib/tcl8.0/word.tcl ../tclbox/lib/tcl8.0/http2.0/http.tcl ../tkbox/lib/tk8.0/tk.tcl ../tkbox/lib/tk8.0/clrpick.tcl ../tkbox/lib/tk8.0/comdlg.tcl ../tkbox/lib/tk8.0/button.tcl ../tkbox/lib/tk8.0/dialog.tcl ../tkbox/lib/tk8.0/entry.tcl ../tkbox/lib/tk8.0/focus.tcl ../tkbox/lib/tk8.0/listbox.tcl ../tkbox/lib/tk8.0/menu.tcl ../tkbox/lib/tk8.0/palette.tcl ../tkbox/lib/tk8.0/scale.tcl ../tkbox/lib/tk8.0/tearoff.tcl ../tkbox/lib/tk8.0/text.tcl ../tkbox/lib/tk8.0/optMenu.tcl ../tkbox/lib/tk8.0/scrlbar.tcl > embedded-tk.cc
c++ -c -O2 -DNO_TK -DHAVE_SNPRINTF  -DNDEBUG -mv8 -msupersparc -D__svr4__ -DUSE_SHM -DHAVE_LIBOTCL1_0A2 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H  -I. -I../otcl -I../tkbox/include -I../tclbox/include  -o embedded-tk.o embedded-tk.cc
rm -f libtclcl.a
ar rc libtclcl.a Tcl.o Tcl2.o idlecallback.o iohandler.o timer.o rate-variable.o tracedvar.o embedded-tcl.o embedded-tk.o embedded-tclobj.o  
ranlib libtclcl.a
tclcl has been installed successfully.
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/openwin/lib/X11/config
cc -O -Xc -xF -xcg92    -I/usr/openwin/include  -Dsun -Dsparc -DSVR4 -DSYSV       -c xgraph.c -o xgraph.o
"./xgraph.h", line 150: identifier redeclared: sprintf
	current : function() returning pointer to char
	previous: function(pointer to char, pointer to const char, ...) returning int : "/usr/include/stdio.h", line 258
"xgraph.c", line 109: warning: argument #1 is incompatible with prototype:
	prototype: pointer to function(pointer to struct _XDisplay {}, pointer to struct {int type, pointer to struct _XDisplay {..} display, u... : "/usr/openwin/include/X11/Xlib.h", line 1952
	argument : pointer to function() returning void
"xgraph.c", line 121: undefined symbol: HUGE
"xgraph.c", line 645: warning: using out of scope declaration: NewWindow
"xgraph.c", line 834: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(ulong, int, pointer to void) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)} : "./xtb.h", line 71
	argument : pointer to function(ulong, int, pointer to char) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)}
"xgraph.c", line 838: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(ulong, int, pointer to void) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)} : "./xtb.h", line 71
	argument : pointer to function(ulong, int, pointer to char) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)}
"xgraph.c", line 844: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(ulong, int, pointer to void) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)} : "./xtb.h", line 71
	argument : pointer to function(ulong, int, pointer to char) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)}
"xgraph.c", line 851: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(ulong, int, pointer to void) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)} : "./xtb.h", line 71
	argument : pointer to function(ulong, int, pointer to char) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)}
"xgraph.c", line 858: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(ulong, int, pointer to void) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)} : "./xtb.h", line 71
	argument : pointer to function(ulong, int, pointer to char) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)}
"xgraph.c", line 866: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(ulong, int, pointer to void) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)} : "./xtb.h", line 71
	argument : pointer to function(ulong, int, pointer to char) returning enum xtb_hret_defn {XTB_STOP(2), XTB_HANDLED(1), XTB_NOTDEF(0)}
"xgraph.c", line 1125: warning: improper pointer/integer combination: op "="
cc: acomp failed for xgraph.c
make: *** [xgraph.o] Error 2
Can not create xgraph; But xgraph is an optional package, continue...
Making cweb
gcc -g   -c ctangle.c -o ctangle.o
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
gcc -g -o ctangle ctangle.o common.o 
gcc -g   -c cweave.c -o cweave.o
gcc -g -o cweave cweave.o common.o
ln: cannot create cweave: File exists
ln: cannot create ctangle: File exists
Making sgb
cc -g -I/usr/local/sgb/include  test_io.c gb_io.o -o test_io
cc -g -I/usr/local/sgb/include  test_graph.c gb_graph.o -o test_graph
cc -g -I/usr/local/sgb/include  test_flip.c gb_flip.o -o test_flip
./test_io
OK, the gb_io routines seem to work!
./test_graph
....................................................................................................Hey, I allocated 10000000 bytes successfully. Terrific...
OK, the gb_graph routines seem to work!
./test_flip
OK, the gb_flip routines seem to work!
make gb_sort.o
make[1]: Entering directory `/project/ttp-pd3/ns/ns-allinone-2.1b4a/sgb'
make[1]: `gb_sort.o' is up to date.
make[1]: Leaving directory `/project/ttp-pd3/ns/ns-allinone-2.1b4a/sgb'
make lib
make[1]: Entering directory `/project/ttp-pd3/ns/ns-allinone-2.1b4a/sgb'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/project/ttp-pd3/ns/ns-allinone-2.1b4a/sgb'
make test_sample
make[1]: Entering directory `/project/ttp-pd3/ns/ns-allinone-2.1b4a/sgb'
cc -g -I/usr/local/sgb/include   -L. -L/usr/local/lib  test_sample.c -lgb -lgb -o test_sample
make[1]: Leaving directory `/project/ttp-pd3/ns/ns-allinone-2.1b4a/sgb'
./test_sample > sample.out
diff test.gb test.correct
diff sample.out sample.correct
rm test.gb sample.out test_io test_graph test_flip test_sample
echo "Congratulations --- the tests have all been passed."
Congratulations --- the tests have all been passed.
touch certified
gcc  -I../include -L../lib  -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
gcc  -I../include -L../lib  -DFBSD -o ../bin/sgb2alt sgb2alt.o  -lm -lgb 
gcc  -I../include -L../lib  -DFBSD -o ../bin/edriver edriver.o eval.o -lm -lgb
gcc: eval.o: No such file or directory
make: *** [edriver] Error 1
gcc  -I../include -L../lib    -c sgb2comns.c -o sgb2comns.o
sgb2comns.c: In function `sgb2hierns':
sgb2comns.c:143: parse error before `/'
sgb2comns.c: In function `print_flat':
sgb2comns.c:432: parse error before `/'
sgb2comns.c:446: parse error before `/'
make: *** [sgb2comns.o] Error 1
loading cache ./config.cache
No .configure file found in current directory
Continuing with default options...
checking host system type... sparc-sun-solaris2.6
checking target system type... sparc-sun-solaris2.6
checking build system type... sparc-sun-solaris2.6
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 how to run the C preprocessor... (cached) gcc -E
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) yes
checking for gethostbyname in -lnsl... (cached) yes
checking for getnodebyname in -ldnet_stub... (cached) no
checking for tcl.h... -I../tclbox/include
checking for libtcl8.0... -R../tclbox/lib -L../tclbox/lib -ltcl8.0
checking for init.tcl... ../tclbox/lib/tcl8.0
checking for tclsh8.0... (cached) tclsh8.0
checking for tk.h... -I../tkbox/include
checking for libtk8.0... -R../tkbox/lib -L../tkbox/lib -ltk8.0
checking for tk.tcl... ../tkbox/lib/tk8.0
checking for otcl.h... -I../otcl
checking for libotcl1.0a3... -R../otcl -L../otcl -lotcl
checking for tclcl.h... -I../tclcl
checking for libtclcl1.0b7... -R../tclcl -L../tclcl -ltclcl
checking for tcl2c++... ../tclcl
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... (cached) yes
checking for XShmAttach in -lXext... (cached) yes
checking for Dbg.h... -I/usr/local/include
checking for libtcldbg... no
checking dmalloc... not requested with --with-dmalloc
checking for perl... /usr/local/bin
checking for getrusage... (cached) yes
checking for sbrk... (cached) yes
Explicitly disabling static compilation
checking for main in -ldl... (cached) yes
checking for a BSD compatible install... ./install-sh -c
creating ./config.status
creating Makefile
c++ -c -g -Wall -DNO_TK -DTCLCL_CLASSINSTVAR  -DNDEBUG -mv8 -msupersparc -D__svr4__ -DUSE_SHM -DHAVE_DBG_H -DHAVE_LIBTCLCL1_0B7 -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A3 -DHAVE_OTCL_H -DHAVE_LIBTK8_0 -DHAVE_TK_H -DHAVE_LIBTCL8_0 -DHAVE_TCL_H   -DSTDC_HEADERS=1 -DHAVE_STRING_H=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_0=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_0=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_0A3=1 -DHAVE_TCLCL_H=1 -DHAVE_LIBTCLCL1_0B7=1 -DHAVE_DBG_H=1 -DHAVE_GETRUSAGE=1 -DHAVE_SBRK=1 -DHAVE_LIBDL=1  -I. -I/usr/local/include -I../tclcl -I../otcl -I../tkbox/include -I../tclbox/include  -o tcp-vegas.o tcp-vegas.cc
agent.h: In method `void VegasTcpAgent::output(int, int = 0)':
agent.h:92: method `class Packet * Agent::allocpkt() const' is protected
tcp-vegas.cc:392: within this context
agent.h:91: method `void Agent::idle()' is protected
tcp-vegas.cc:419: within this context
make: *** [tcp-vegas.o] Error 1
Ns make failed! Exiting ...