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

Re: [ns] windows 2000 more compilation errors



Hi Padma,

  I was able to compile ns in win 2000 env and run it too. But nam is not working, its giving unresolved variable for _verison at link time. I hard coded the version[] in main.cc, but the image crashes, once it runs. Is nam supported for windows 2000 ? Can you please let me know ? Or is there any pre-built binary for the latest version of nam. I saw that x-graph is not supported for windows 2000, do you know of any similar plotting utilities, that I can use for windows environment ?

Thanks a lot for your help,

Vijay



 

>From: Padmaparna Haldar
>To: Vijay D
>CC:
>Subject: Re: [ns] windows 2000 more compilation errors
>Date: Mon, 9 Jul 2001 11:50:40 -0700 (PDT)
>
>On Mon, 9 Jul 2001, Vijay D wrote:
>
>
> >
> > Hi Padma,
> >
> >    I don't think, its only from there, we need to take care of the following lines in
> > the makefile.vc too,
> >
> > install: force install-ns install-man install-recursive
> >
> > install-ns: force
> >  $(INSTALL) -m 555 -o bin -g bin ns $(DESTDIR)$(BINDEST)
> >
> > install-man: force
> >  $(INSTALL) -m 444 -o bin -g bin ns.1 $(DESTDIR)$(MANDEST)/man1
> >
> > install-recursive: force  
> >
> >     for i in $(SUBDIRS); do ( cd $$i; $(MAKE) install; ) done
> >  
>
>I see - yes, we need to take install-recursive out from install if we want
>to install ns.
>Thanks for pointing,
>--Padma
>
> >
> > I think this(install-recursive) needs to taken care (removed or commented out) of also.
> > correct me if Iam wrong.
> >
> > Vijay
> >
> > >From: Padmaparna Haldar
> > >To: Vijay D
> > >CC:
> > >Subject: Re: [ns] windows 2000 more compilation errors
> > >Date: Mon, 9 Jul 2001 10:33:52 -0700 (PDT)
> > >
> > >
> > >If you are using the latest 2.1b8a-win version you'll notice that in
> > >makefile.vc 'all' is defined as NS instead of NS *and* all-recursive
> > >(which is where for loop is used to go to each subdir and build each
> > >utility.)
> > >
> > >--Padma
> > >
> > > On Mon, 9 Jul 2001, Vijay D wrote:
> > >
> > >
> > > >
> > > > Hi Padma,
> > > >
> > > >   Thanks for the help, I was able to compile all the files, but faced this problem,
> > when
> > > > attempting to install ns-2. Do you know how to get around the "for" loop used in the
> > > > makefile.vc for nmake for Microsoft VC 5.0. I get the following error,
> > > >
> > > > D:\netsim-1\ns-allinone-2.1b8a\ns-2.1b8a-win>d:\progra~1\DevStudio\vc\bin\nmake
> > > > /f makefile.vc install
> > > >
> > > > Microsoft (R) Program Maintenance Utility   Version 1.62.7022
> > > > Copyright (C) Microsoft Corp 1988-1997. All rights reserved.
> > > >
> > > >         echo -m 555 -o bin -g bin ns @prefix@/bin
> > > > -m 555 -o bin -g bin ns @prefix@/bin
> > > >         echo -m 444 -o bin -g bin ns.1 @prefix@/man/man1
> > > > -m 444 -o bin -g bin ns.1 @prefix@/man/man1
> > > >         for i in  indep-utils/cmu-scen-gen/setdest  indep-utils/webtrace-conv/de
> > > > c  indep-utils/webtrace-conv/epa  indep-utils/webtrace-conv/nlanr  indep-utils/w
> > > > ebtrace-conv/ucb; do ( cd $i; NMAKE install; ) done
> > > > i was unexpected at this time.
> > > > NMAKE : fatal error U1077: 'for' : return code '0x1'
> > > > Stop.
> > > >
> > > > Thanks,
> > > >
> > > > Vijay
> > > >
> > > > >From: Padmaparna Haldar
> > > > >To: Vijay D
> > > > >Subject: Re: [ns] windows 2000 more compilation errors
> > > > >Date: Fri, 6 Jul 2001 17:12:33 -0700 (PDT)
> > > > >
> > > > >
> > > > >Not the latest ns-allinone pkg. You need to download the windows release
> > > > >which has the patches and is called ns-2.1b8a-win.tar.gz and is available
> > > > >directly from http://www.isi.edu/nsnam/dist
> > > > >so download that version and replace it with the ns version you are using
> > > > >in the allinone pkg.
> > > > >
> > > > >--Padma
> > > > >
> > > > > On Fri, 6 Jul 2001, Vijay D
> > > > >wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > > Padma,
> > > >
> > > > > >
> > > >
> > > >    Sorry to bother you again, I downloaded the latest the ns allinone package. I
> > think
> > > > it still has the same problems. The makefile.vc for compiling ns-2 still doesn't
> > contain
> > > > basetrace.cc as you mentioned before. I think its only in Makefile.in, but for
> > windows
> > > > environment I think its not being used, because we directly call "nmake /f
> > makefile.vc"
> > > > , as per the windows installation pade, so I don't understand how this will work.
> > Can
> > > > you please tell help me out here ?
> > > >
> > > > > >
> > > >
> > > > Thanks a lot,
> > > >
> > > > > >
> > > >
> > > > Vijay
> > > >
> > > > > >
> > > >
> > > >
> > > >  
> > > >
> > > > > >
> > > > > >
> > > > >From: Padmaparna Haldar
> > > > > >
> > > > >To: Vijay D
> > > > > >
> > > > >Subject: Re: [ns] windows 2000 more compilation errors
> > > > > >
> > > > >Date: Fri, 6 Jul 2001 10:59:17 -0700 (PDT)
> > > > > >
> > > > >
> > > > > >
> > > > >
> > > > > >
> > > > >This is the older version of makefile.vc which doesn't include files
> > > > > >
> > > > >like basetrace. so please use the newer release I announced.
> > > > > >
> > > > >Hope this helps,
> > > > > >
> > > > >-Padma
> > > > > >
> > > > >On Fri, 6 Jul 2001, Vijay D wrote:
> > > > > >
> > > > >
> > > > > >
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > Hi Padma,
> > > > > >
> > > > > >
> > > > > >
> > > > > >  Do you know which file has this member function BaseTrace, because Iam getting
> > link
> > > > > >
> > > > > > errors,
> > > > > >
> > > > > >
> > > > > >
> > > > > >  -LIBPATH:d:\netsim\ns-allinone-2.1b8a\tk8.3.2\win\Release tk83.lib -LIBPATH:d:\
> > > > > >
> > > > > > netsim\ns-allinone-2.1b8a\tcl8.3.2\win\Release tcl83.lib  libci.lib msvcirt.lib
> > > > > >
> > > > > > msvcrt.lib oldnames.lib kernel32.lib  wsock32.lib advapi32.lib user32.lib gdi32.
> > > > > >
> > > > > > lib comdlg32.lib winspool.lib
> > > > > >
> > > > > > LINK : warning LNK4031: no subsystem specified; CONSOLE assumed
> > > > > >
> > > > > > trace.o : error LNK2001: unresolved external symbol "public: __thiscall BaseTrac
> > > > > >
> > > > > > e::BaseTrace(void)" (??0BaseTrace@@QAE@XZ)
> > > > > >
> > > > > > ns.exe : fatal error LNK1120: 1 unresolved externals
> > > > > >
> > > > > > NMAKE : fatal error U1077: '"d:\program files\devstudio\vc\bin\link.exe"' : retu
> > > > > >
> > > > > > rn code '0x19'
> > > > > >
> > > > > > Stop.
> > > > > >
> > > > > > D:\netsim\ns-allinone-2.1b8a\ns-2.1b8a>
> > > > > >
> > > > > >
> > > > > >
> > > > > > If you can help me, please let me know.
> > > > > >
> > > > > >
> > > > > >
> > > > > > Thank you,
> > > > > >
> > > > > >
> > > > > >
> > > > > > Vijay
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >  
> > > > > >
> > > > > >
> > > > > >
> > > > > > >From: Padmaparna Haldar
> > > > > >
> > > > > > >To: Vijay D
> > > > > >
> > > > > > >CC:
> > > > > >
> > > > > > >Subject: Re: [ns] windows 2000 more compilation errors
> > > > > >
> > > > > > >Date: Thu, 5 Jul 2001 15:35:26 -0700 (PDT)
> > > > > >
> > > > > > >
> > > > > >
> > > > > > >Vijay, we are coming up with a windows release for ns very soon
> > > > > >
> > > > > > >(before this weekend). so watch out for the announcement...
> > > > > >
> > > > > > >
> > > > > >
> > > > > > >--Padma
> > > > > >
> > > > > > >
> > > > > >
> > > > > > >On Thu, 5 Jul 2001, Vijay D wrote:
> > > > > >
> > > > > > >
> > > > > >
> > > > > > >
> > > > > >
> > > > > > > > Hi,
> > > > > >
> > > > > > > >   Can someone help ? I got the following error, while compiling ns-2.
> > > > > >
> > > > > > > >  
> > > > > >
> > > > > > > >         cl -c -Ox -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1
> > -D
> > > > > >
> > > > > > > > INVER=0x0400 -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -Ox -Zm1000 -DNO_TK
> > -Id:\netsim
> > > > > >
> > > > > > > > ns-allinone-2.1b8a\tk8.3.2\win
> > -Id:\netsim\ns-allinone-2.1b8a\tk8.3.2\generic -
> > > > > >
> > > > > > > > d:\netsim\ns-allinone-2.1b8a\tcl8.3.2\win
> > -Id:\netsim\ns-allinone-2.1b8a\tcl8.3
> > > > > >
> > > > > > > > 2\generic  -Id:\netsim\ns-allinone-2.1b8a\otcl-1.0a7
> > -Id:\netsim\ns-allinone-2.
> > > > > >
> > > > > > > > b8a\tclcl-1.0b11  -Id:\netsim\ns-allinone-2.1b8a\tk8.3.2\xlib  -I.
> > -Id:\progra~
> > > > > >
> > > > > > > > \DevStudio\VC\include -Fodiffusion/diffusion.o -Tp diffusion/diffusion.cc
> > > > > >
> > > > > > > > diffusion.cc
> > > > > >
> > > > > > > > diffusion/diffusion.cc(156) : warning C4355: 'this' : used in base member
> > initi
> > > > > >
> > > > > > > > lizer list
> > > > > >
> > > > > > > > diffusion/diffusion.cc(157) : warning C4355: 'this' : used in base member
> > initi
> > > > > >
> > > > > > > > lizer list
> > > > > >
> > > > > > > >         cl -c -Ox -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1
> > -D
> > > > > >
> > > > > > > > INVER=0x0400 -DWIN32 ! -D_WIN32 -D_MT -D_DLL -MD -Ox -Zm1000 -DNO_TK
> > > > > >
> > > > > > > > -Id:\netsim
> > > > > >
> > > > > > > > ns-allinone-2.1b8a\tk8.3.2\win
> > -Id:\netsim\ns-allinone-2.1b8a\tk8.3.2\generic -
> > > > > >
> > > > > > > > d:\netsim\ns-allinone-2.1b8a\tcl8.3.2\win
> > -Id:\netsim\ns-allinone-2.1b8a\tcl8.3
> > > > > >
> > > > > > > > 2\generic  -Id:\netsim\ns-allinone-2.1b8a\otcl-1.0a7
> > -Id:\netsim\ns-allinone-2.
> > > > > >
> > > > > > > > b8a\tclcl-1.0b11  -Id:\netsim\ns-allinone-2.1b8a\tk8.3.2\xlib  -I.
> > -Id:\progra~
> > > > > >
> > > > > > > > \DevStudio\VC\include -Fodiffusion/diff_rate.o -Tp diffusion/diff_rate.cc
> > > > > >
> > > > > > > > diff_rate.cc
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(368) : warning C4244: '=' : conversion from 'int' to
> > 'fl
> > > > > >
> > > > > > > > at', possible loss of data
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(799) : warning C4244: '=' : conversion from 'int' to
> > 'fl
> > > > > >
> > > > > > > > at', possible loss of data
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(1057) : error C2202: 'ParseSubType' : not all control
> > pa
> > > > > >
> > > > > > > > hs return a value
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(1073) : error C2202: 'ParseOrgType' : not all control
> > pa
> > > > > >
> > > > > > > > hs return a value
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(1092) : error C2202: 'ParsePos! Type' : not all
> > control
> > > > > >
> > > > > > > > pa
> > > > > >
> > > > > > > > hs return a value
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(1107) : error C2202: 'ParsePosNodeType' : not all
> > contro
> > > > > >
> > > > > > > >  paths return a value
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(1122) : error C2202: 'ParseNegWinType' : not all
> > control
> > > > > >
> > > > > > > > paths return a value
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(1137) : error C2202: 'ParseNegThrType' : not all
> > control
> > > > > >
> > > > > > > > paths return a value
> > > > > >
> > > > > > > > diffusion/diff_rate.cc(1152) : error C2202: 'ParseNegMaxType' : not all
> > control
> > > > > >
> > > > > > > > paths return a value
> > > > > >
> > > > > > > > NMAKE : fatal error U1077: 'cl' : return code '0x2'
> > > > > >
> > > > > > > > .
> > > > > >
> > > > > > > > thanks,
> > > > > >
> > > > > > > > Vijay
> > > > > >
> > > > > > > >  
> > > > > >
> > > > > > > >
> > > > > >
> > > > > > > >
> > > > > >
> > > > > >
> > > >
> > ______________________________________________________________________________________
> > > > > >
> > > > > > > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > > > > >
> > > > > > > >
> > > > > >
> > > > > > > >
> > > > > >
> > > > > > > >
> > > > > >
> > > > > > >
> > > > > >
> > > > > > >--
> > > > > >
> > > > > > >------------------------------------------------
> > > > > >
> > > > > > >Be true to your work, your word, and your friend.
> > > > > >
> > > > > > >--Thoreau
> > > > > >
> > > > > > >
> > > > > >
> > > > > > >Padmaparna Haldar
> > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > >
> > ___________________________________________________________________________________________
> > > > > >
> > > > > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > > >
> > > > >--
> > > > > >
> > > > >------------------------------------------------
> > > > > >
> > > > >Be true to your work, your word, and your friend.
> > > > > >
> > > > >--Thoreau
> > > > > >
> > > > >
> > > > > >
> > > > >Padmaparna Haldar
> > > > > >
> > > > >
> > > > > >
> > > >
> > > >______________________________________________________________________________________________
> > > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > > >
> > > > > >
> > > > >
> > > > >------------------------------------------------
> > > > >Be true to your work, your word, and your friend.
> > > > >--Thoreau
> > > > >
> > > > >Padmaparna Haldar
> > > > >
> > > >
> > > >______________________________________________________________________________________________
> > > > Get your FREE download of MSN Explorer at http://explorer.msn.com
> > > >
> > > >
> > > >
> > >
> > >--
> > >------------------------------------------------
> > >Be true to your work, your word, and your friend.
> > >--Thoreau
> > >
> > >Padmaparna Haldar
> > >
> >
> > _______________________________________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com
> >
> >
> >
>
>--
>------------------------------------------------
>Be true to your work, your word, and your friend.
>--Thoreau
>
>Padmaparna Haldar
>


Get your FREE download of MSN Explorer at http://explorer.msn.com