LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 11-11-2010, 08:44 AM   #1
ashok.alluri8011
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 0
hiii .....problem in installin ns-2.28 on fedora 12 with gcc-4.4.4


hiii guyss problem in installin ns-2.28 on fedora 12 with gcc-4.4.4

Code:
./sctp/sctp.h:214: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:226: warning: ‘typedef’ was ignored in this declaration
In file included from trace/trace.cc:43:
./sctp/sctp.h:247: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:253: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:258: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:265: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:267: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:276: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:291: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:372: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:378: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:419: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:430: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:438: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:445: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:451: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:462: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:481: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:486: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:492: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:499: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:505: warning: ‘typedef’ was ignored in this declaration
./sctp/sctp.h:632: error: extra qualification ‘SctpAgent::’ on member ‘DumpSendBuffer’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
trace/trace.cc:185: warning: deprecated conversion from string constant to ‘char*’
make: *** [trace/trace.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
i am in desperate need of solutin


thanx in advance

Last edited by XavierP; 11-13-2010 at 12:46 PM.
 
Old 11-11-2010, 03:44 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
Welcome to LQ. .. .. ..

Ref. your received message : It's about ns-allinone-2.28.
Required information : Please specify your Linux OS.
Like Ubuntu 10.10 , Fedora 14 , CentOS 5.5 . etc.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

From your errors : Seems like a wrong compiler is used ?

Please read the other ns228 threads ... Example, posts #10-#11 here
http://www.linuxquestions.org/questi...failed-732164/

.. and here for the Ubuntu requirements
http://www.linuxquestions.org/questi...9-10-a-782356/
..
 
Old 11-12-2010, 02:03 AM   #3
ashok.alluri8011
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0
im using fedora 12 .....

thank u
 
Old 11-12-2010, 02:09 AM   #4
ashok.alluri8011
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0
patch -p0 < tk-8.4-lastevent.patch


for above command im getting error like

atching file generic/tk.h
Hunk #1 FAILED at 635.
1 out of 1 hunk FAILED -- saving rejects to file generic/tk.h.rej

how to solve it...

and whatever there in below post #4 i hav already gone through it. But i did not understand it.sorry for that...
http://www.linuxquestions.org/questi...2-34-a-824556/



thanx....
 
Old 11-12-2010, 02:56 AM   #5
ashok.alluri8011
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0
I ALSO FOLLWED THE STEPS IN #10 in the following link TO DOIT AGAIN BUT THIS TIME DIFFERENT ERROR
Im using fedora 12
http://www.linuxquestions.org/questi...failed-732164/


Code:
error is
otcl.c:21:20: error: tclInt.h: No such file or directory
otcl.c:75: error: expected specifier-qualifier-list before ‘CallFrame’
otcl.c: In function ‘OTclDeleteProc’:
otcl.c:616: warning: assignment makes pointer from integer without a cast
otcl.c: At top level:
otcl.c:750: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
otcl.c: In function ‘ListProcArgs’:
otcl.c:764: error: ‘Proc’ undeclared (first use in this function)
otcl.c:764: error: (Each undeclared identifier is reported only once
otcl.c:764: error: for each function it appears in.)
otcl.c:764: error: ‘proc’ undeclared (first use in this function)
otcl.c:769: error: ‘CompiledLocal’ undeclared (first use in this function)
otcl.c:769: error: ‘args’ undeclared (first use in this function)
otcl.c: In function ‘ListProcDefault’:
otcl.c:806: error: ‘Proc’ undeclared (first use in this function)
otcl.c:806: error: ‘proc’ undeclared (first use in this function)
otcl.c:815: error: ‘CompiledLocal’ undeclared (first use in this function)
otcl.c:815: error: ‘ap’ undeclared (first use in this function)
otcl.c: In function ‘ListProcBody’:
otcl.c:856: error: ‘Proc’ undeclared (first use in this function)
otcl.c:856: error: ‘proc’ undeclared (first use in this function)
otcl.c: In function ‘PrimitiveOInit’:
otcl.c:893: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:894: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:899: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:900: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:902: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:903: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:907: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:909: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:909: error: ‘Interp’ undeclared (first use in this function)
otcl.c:909: error: expected expression before ‘)’ token
otcl.c:910: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:911: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:912: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:912: error: ‘Proc’ undeclared (first use in this function)
otcl.c:912: error: expected expression before ‘)’ token
otcl.c:913: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:913: error: expected expression before ‘)’ token
otcl.c:914: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:916: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:917: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:918: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:919: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:920: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:921: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘PrimitiveODestroyNoFree’:
otcl.c:973: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:976: error: ‘Var’ undeclared (first use in this function)
otcl.c:976: error: ‘vp’ undeclared (first use in this function)
otcl.c:976: error: expected expression before ‘)’ token
otcl.c:983: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:983: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:986: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:989: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:997: error: expected expression before ‘)’ token
otcl.c:1001: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:1017: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:1018: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘PrimitiveOCreate’:
otcl.c:1033: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:1035: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘PrimitiveCCreate’:
otcl.c:1172: error: ‘struct OTclObject’ has no member named ‘variables’
otcl.c:1174: error: ‘struct OTclObject’ has no member named ‘variables’
otcl.c: In function ‘OTclODestroyMethod’:
otcl.c:1258: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:1261: error: ‘Var’ undeclared (first use in this function)
otcl.c:1261: error: ‘vp’ undeclared (first use in this function)
otcl.c:1261: error: expected expression before ‘)’ token
otcl.c:1268: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:1268: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:1272: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘OTclOInfoMethod’:
otcl.c:1351: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘OTclOInstVarOne’:
otcl.c:1443: error: ‘Interp’ undeclared (first use in this function)
otcl.c:1443: error: ‘iPtr’ undeclared (first use in this function)
otcl.c:1443: error: expected expression before ‘)’ token
otcl.c:1454: error: ‘CallFrame’ undeclared (first use in this function)
otcl.c:1454: error: ‘saved’ undeclared (first use in this function)
otcl.c:1457: error: ‘OTclObject’ has no member named ‘variables’
otcl.c:1458: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘OTclSetInstVar’:
otcl.c:1971: error: ‘Interp’ undeclared (first use in this function)
otcl.c:1971: error: ‘iPtr’ undeclared (first use in this function)
otcl.c:1971: error: expected expression before ‘)’ token
otcl.c:1972: error: ‘CallFrame’ undeclared (first use in this function)
otcl.c:1972: error: ‘saved’ undeclared (first use in this function)
otcl.c:1975: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘OTclGetInstVar’:
otcl.c:1984: error: ‘Interp’ undeclared (first use in this function)
otcl.c:1984: error: ‘iPtr’ undeclared (first use in this function)
otcl.c:1984: error: expected expression before ‘)’ token
otcl.c:1985: error: ‘CallFrame’ undeclared (first use in this function)
otcl.c:1985: error: ‘saved’ undeclared (first use in this function)
otcl.c:1988: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘OTclUnsetInstVar’:
otcl.c:1997: error: ‘Interp’ undeclared (first use in this function)
otcl.c:1997: error: ‘iPtr’ undeclared (first use in this function)
otcl.c:1997: error: expected expression before ‘)’ token
otcl.c:1998: error: ‘CallFrame’ undeclared (first use in this function)
otcl.c:1998: error: ‘saved’ undeclared (first use in this function)
otcl.c:2001: error: ‘OTclObject’ has no member named ‘variables’
otcl.c: In function ‘Otcl_Init’:
otcl.c:2152: warning: assignment makes pointer from integer without a cast
make: *** [libotcl.so] Error 1
otcl-1.9 make failed! Exiting ...

thanx in advance

Last edited by XavierP; 11-13-2010 at 12:47 PM. Reason: The more code tags that are used, the happier I get
 
Old 11-12-2010, 08:12 AM   #6
ashok.alluri8011
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0
This is the error im getting when im trying to install ns-2.28 alone

Code:
config.status: creating Makefile
gcc -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_9 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_4=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_4=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_9=1  -I. -I/home/mtech/onemore/ns-allinone-2.28/otcl-1.9 -I/home/mtech/onemore/ns-allinone-2.28/include -I/home/mtech/onemore/ns-allinone-2.28/include -o tcl2c++.o tcl2c++.c
rm -f tcl2c++
g++   -o tcl2c++ tcl2c++.o
g++ -c  -DNO_TK  -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_9 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H  -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_SNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_STRTOQ=1 -DHAVE_STRTOLL=1 -DSIZEOF_LONG=4 -DHAVE_INT64=1 -DHAVE_TCL_H=1 -DHAVE_LIBTCL8_4=1 -DHAVE_TK_H=1 -DHAVE_LIBTK8_4=1 -DHAVE_OTCL_H=1 -DHAVE_LIBOTCL1_9=1  -I. -I/home/mtech/onemore/ns-allinone-2.28/otcl-1.9 -I/home/mtech/onemore/ns-allinone-2.28/include -I/home/mtech/onemore/ns-allinone-2.28/include -o Tcl.o Tcl.cc
Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:180: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:419: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:507: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:509: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:564: error: invalid conversion from ‘const char*’ to ‘char*’
Tcl.cc:569: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:601: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.16 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems




I tried in many ways as knudfl Guru suggested ........... but i could not solve the problem. so I itried to install ns-2.28 alone still im facing problems .........

please hepl me......

thanx in advance.......

ashok.alluri8011@gmail.com is my mail address u can also directly mail me the solution...............

Last edited by XavierP; 11-13-2010 at 12:47 PM. Reason: You can't see me, but I'm really smiling
 
Old 11-12-2010, 11:56 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,279

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
An answer to post # 6 :

Ref. #3 http://www.linuxquestions.org/questi...10-a-782356/#3

mkdir include ( If not present.)
cd include/
ln -s ../tcl8.4.18/generic/tclInt.h
ln -s ../tcl8.4.18/generic/tclIntDecls.h
( These two links may already be present.)

.....

Post # 7 :
Ref. #10 http://www.linuxquestions.org/questi...led-732164/#10

Without a correct compiled tcl tk otcl : no tclcl

And are you sure it's all linked correctly together ?
.....

Also please consider using the ns228-gcc40.patch :
Provides a correct ns2. Post # 11 :
http://www.linuxquestions.org/questi...failed-732164/
..

Also : My results are created with gcc / g++ version 4.4.2.
May be different with version 4.4.4 ?
..

Last edited by knudfl; 11-12-2010 at 12:19 PM.
 
Old 11-13-2010, 12:48 PM   #8
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
ns2, ns228


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hiii deepak_cd LinuxQuestions.org Member Intro 1 06-29-2010 05:22 AM
Hiii All ramdotram LinuxQuestions.org Member Intro 1 06-18-2009 06:44 AM
hiii all jakesjohn LinuxQuestions.org Member Intro 3 08-22-2008 08:04 AM
hiii guees carmelo_debian LinuxQuestions.org Member Intro 1 06-01-2008 10:20 AM


All times are GMT -5. The time now is 04:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration