Quote:
Originally Posted by tmsherazi
Thanks dear sir i have successfully installed aquasim, i run the hop_by_hop_VBF_example.tcl,
sir what meant of this command "sudo cp ns-aqua /usr/local/bin", and i cant find the location of ns-aqua folder, the aquasim folder is placed at desktop.
sir please give me some tips to write the tcl script for dbr routing protocol. i want to compare the different routing protocols working in underwater wireless sensor network. is there any source from where tcl file of different routing protocol will be available.
|
Kindly help me out to solve my problem with installation Aqua-sim.
Part of result:
example.c:34: error: parameter ‘dictionary’ is initialized
example.c:35: error: expected declaration specifiers before ‘uLong’
example.c:37: error: expected ‘)’ before ‘*’ token
example.c:39: error: expected declaration specifiers or ‘...’ before ‘Byte’
example.c:39: error: expected declaration specifiers or ‘...’ before ‘uLong’
example.c:41: error: expected ‘)’ before ‘*’ token
example.c:42: error: expected ‘)’ before ‘*’ token
example.c:44: error: expected ‘)’ before ‘*’ token
example.c:46: error: expected ‘)’ before ‘*’ token
example.c:48: error: expected ‘)’ before ‘*’ token
example.c:49: error: expected ‘)’ before ‘*’ token
example.c:51: error: expected ‘)’ before ‘*’ token
example.c:52: error: expected ‘)’ before ‘*’ token
example.c:60: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Byte’
example.c:61: error: expected declaration specifiers before ‘uLong’
example.c:62: error: old-style parameter declarations in prototyped function definition
example.c:64: error: ‘uLong’ undeclared (first use in this function)
example.c:64: error: (Each undeclared identifier is reported only once
example.c:64: error: for each function it appears in.)
example.c:64: error: expected ‘;’ before ‘len’
example.c:66: error: ‘compr’ undeclared (first use in this function)
example.c:66: error: ‘comprLen’ undeclared (first use in this function)
example.c:66: error: expected ‘)’ before ‘Bytef’
example.c:66: error: ‘hello’ undeclared (first use in this function)
example.c:66: error: ‘len’ undeclared (first use in this function)
example.c:67: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:67: error: ‘stderr’ undeclared (first use in this function)
example.c:67: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:69: warning: incompatible implicit declaration of built-in function ‘strcpy’
example.c:69: error: ‘uncompr’ undeclared (first use in this function)
example.c:71: error: ‘uncomprLen’ undeclared (first use in this function)
example.c:72: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:72: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:75: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:76: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:78: warning: incompatible implicit declaration of built-in function ‘printf’
example.c: In function ‘test_gzio’:
example.c:87: error: expected declaration specifiers before ‘Byte’
example.c:88: error: expected declaration specifiers before ‘uLong’
example.c:94: warning: incompatible implicit declaration of built-in function ‘strlen’
example.c:94: error: ‘hello’ undeclared (first use in this function)
example.c:95: error: ‘gzFile’ undeclared (first use in this function)
example.c:95: error: expected ‘;’ before ‘file’
example.c:98: error: ‘file’ undeclared (first use in this function)
example.c:100: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:100: error: ‘stderr’ undeclared (first use in this function)
example.c:101: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:105: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:106: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:109: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:110: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:117: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:118: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:120: warning: incompatible implicit declaration of built-in function ‘strcpy’
example.c:123: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:124: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:127: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:128: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:130: warning: incompatible implicit declaration of built-in function ‘printf’
example.c:135: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:137: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:141: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:142: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:146: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:147: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:152: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:153: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:156: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:157: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:159: warning: incompatible implicit declaration of built-in function ‘printf’
example.c: In function ‘test_deflate’:
example.c:170: error: expected declaration specifiers before ‘Byte’
example.c:171: error: expected declaration specifiers before ‘uLong’
example.c:173: error: ‘z_stream’ undeclared (first use in this function)
example.c:173: error: expected ‘;’ before ‘c_stream’
example.c:175: error: ‘uLong’ undeclared (first use in this function)
example.c:175: error: expected ‘;’ before ‘len’
example.c:177: error: ‘c_stream’ undeclared (first use in this function)
example.c:177: error: ‘alloc_func’ undeclared (first use in this function)
example.c:177: error: expected ‘;’ before numeric constant
example.c:178: error: ‘free_func’ undeclared (first use in this function)
example.c:178: error: expected ‘;’ before numeric constant
example.c:179: error: ‘voidpf’ undeclared (first use in this function)
example.c:179: error: expected ‘;’ before numeric constant
example.c:182: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:182: error: ‘stderr’ undeclared (first use in this function)
example.c:182: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:184: error: ‘Bytef’ undeclared (first use in this function)
example.c:184: error: expected expression before ‘)’ token
example.c:187: error: ‘len’ undeclared (first use in this function)
example.c:190: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:190: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:197: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:197: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:201: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:201: warning: incompatible implicit declaration of built-in function ‘exit’
example.c: In function ‘test_inflate’:
example.c:208: error: expected declaration specifiers before ‘Byte’
example.c:209: error: expected declaration specifiers before ‘uLong’
example.c:212: error: ‘z_stream’ undeclared (first use in this function)
example.c:212: error: expected ‘;’ before ‘d_stream’
example.c:214: warning: incompatible implicit declaration of built-in function ‘strcpy’
example.c:216: error: ‘d_stream’ undeclared (first use in this function)
example.c:216: error: ‘alloc_func’ undeclared (first use in this function)
example.c:216: error: expected ‘;’ before numeric constant
example.c:217: error: ‘free_func’ undeclared (first use in this function)
example.c:217: error: expected ‘;’ before numeric constant
example.c:218: error: ‘voidpf’ undeclared (first use in this function)
example.c:218: error: expected ‘;’ before numeric constant
example.c:225: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:225: error: ‘stderr’ undeclared (first use in this function)
example.c:225: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:231: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:231: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:235: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:235: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:237: error: ‘hello’ undeclared (first use in this function)
example.c:238: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:239: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:241: warning: incompatible implicit declaration of built-in function ‘printf’
example.c: In function ‘test_large_deflate’:
example.c:249: error: expected declaration specifiers before ‘Byte’
example.c:250: error: expected declaration specifiers before ‘uLong’
example.c:252: error: ‘z_stream’ undeclared (first use in this function)
example.c:252: error: expected ‘;’ before ‘c_stream’
example.c:255: error: ‘c_stream’ undeclared (first use in this function)
example.c:255: error: ‘alloc_func’ undeclared (first use in this function)
example.c:255: error: expected ‘;’ before numeric constant
example.c:256: error: ‘free_func’ undeclared (first use in this function)
example.c:256: error: expected ‘;’ before numeric constant
example.c:257: error: ‘voidpf’ undeclared (first use in this function)
example.c:257: error: expected ‘;’ before numeric constant
example.c:260: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:260: error: ‘stderr’ undeclared (first use in this function)
example.c:260: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:263: error: ‘uInt’ undeclared (first use in this function)
example.c:263: error: expected ‘;’ before ‘comprLen’
example.c:269: error: expected ‘;’ before ‘uncomprLen’
example.c:271: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:271: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:273: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:274: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:280: error: expected ‘;’ before ‘comprLen’
example.c:282: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:282: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:287: error: expected ‘;’ before ‘uncomprLen’
example.c:289: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:289: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:293: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:294: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:297: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:297: warning: incompatible implicit declaration of built-in function ‘exit’
example.c: In function ‘test_large_inflate’:
example.c:304: error: expected declaration specifiers before ‘Byte’
example.c:305: error: expected declaration specifiers before ‘uLong’
example.c:308: error: ‘z_stream’ undeclared (first use in this function)
example.c:308: error: expected ‘;’ before ‘d_stream’
example.c:310: warning: incompatible implicit declaration of built-in function ‘strcpy’
example.c:312: error: ‘d_stream’ undeclared (first use in this function)
example.c:312: error: ‘alloc_func’ undeclared (first use in this function)
example.c:312: error: expected ‘;’ before numeric constant
example.c:313: error: ‘free_func’ undeclared (first use in this function)
example.c:313: error: expected ‘;’ before numeric constant
example.c:314: error: ‘voidpf’ undeclared (first use in this function)
example.c:314: error: expected ‘;’ before numeric constant
example.c:317: error: ‘uInt’ undeclared (first use in this function)
example.c:317: error: expected ‘;’ before ‘comprLen’
example.c:320: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:320: error: ‘stderr’ undeclared (first use in this function)
example.c:320: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:324: error: expected ‘;’ before ‘uncomprLen’
example.c:327: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:327: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:331: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:331: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:334: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:335: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:337: warning: incompatible implicit declaration of built-in function ‘printf’
example.c: In function ‘test_flush’:
example.c:345: error: expected declaration specifiers before ‘Byte’
example.c:346: error: expected declaration specifiers before ‘uLong’
example.c:348: error: ‘z_stream’ undeclared (first use in this function)
example.c:348: error: expected ‘;’ before ‘c_stream’
example.c:350: error: ‘uInt’ undeclared (first use in this function)
example.c:350: error: expected ‘;’ before ‘len’
example.c:352: error: ‘c_stream’ undeclared (first use in this function)
example.c:352: error: ‘alloc_func’ undeclared (first use in this function)
example.c:352: error: expected ‘;’ before numeric constant
example.c:353: error: ‘free_func’ undeclared (first use in this function)
example.c:353: error: expected ‘;’ before numeric constant
example.c:354: error: ‘voidpf’ undeclared (first use in this function)
example.c:354: error: expected ‘;’ before numeric constant
example.c:357: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:357: error: ‘stderr’ undeclared (first use in this function)
example.c:357: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:359: error: ‘Bytef’ undeclared (first use in this function)
example.c:359: error: expected expression before ‘)’ token
example.c:364: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:364: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:366: error: subscripted value is neither array nor pointer
example.c:367: error: ‘len’ undeclared (first use in this function)
example.c:371: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:371: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:374: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:374: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:376: error: invalid type argument of ‘unary *’
example.c: In function ‘test_sync’:
example.c:383: error: expected declaration specifiers before ‘Byte’
example.c:384: error: expected declaration specifiers before ‘uLong’
example.c:387: error: ‘z_stream’ undeclared (first use in this function)
example.c:387: error: expected ‘;’ before ‘d_stream’
example.c:389: warning: incompatible implicit declaration of built-in function ‘strcpy’
example.c:391: error: ‘d_stream’ undeclared (first use in this function)
example.c:391: error: ‘alloc_func’ undeclared (first use in this function)
example.c:391: error: expected ‘;’ before numeric constant
example.c:392: error: ‘free_func’ undeclared (first use in this function)
example.c:392: error: expected ‘;’ before numeric constant
example.c:393: error: ‘voidpf’ undeclared (first use in this function)
example.c:393: error: expected ‘;’ before numeric constant
example.c:399: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:399: error: ‘stderr’ undeclared (first use in this function)
example.c:399: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:402: error: ‘uInt’ undeclared (first use in this function)
example.c:402: error: expected ‘;’ before ‘uncomprLen’
example.c:405: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:405: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:407: error: expected ‘;’ before ‘comprLen’
example.c:409: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:409: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:413: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:415: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:418: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:418: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:420: warning: incompatible implicit declaration of built-in function ‘printf’
example.c: In function ‘test_dict_deflate’:
example.c:427: error: expected declaration specifiers before ‘Byte’
example.c:428: error: expected declaration specifiers before ‘uLong’
example.c:430: error: ‘z_stream’ undeclared (first use in this function)
example.c:430: error: expected ‘;’ before ‘c_stream’
example.c:433: error: ‘c_stream’ undeclared (first use in this function)
example.c:433: error: ‘alloc_func’ undeclared (first use in this function)
example.c:433: error: expected ‘;’ before numeric constant
example.c:434: error: ‘free_func’ undeclared (first use in this function)
example.c:434: error: expected ‘;’ before numeric constant
example.c:435: error: ‘voidpf’ undeclared (first use in this function)
example.c:435: error: expected ‘;’ before numeric constant
example.c:438: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:438: error: ‘stderr’ undeclared (first use in this function)
example.c:438: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:441: error: expected ‘)’ before ‘Bytef’
example.c:441: error: ‘dictionary’ undeclared (first use in this function)
example.c:442: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:442: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:444: error: ‘dictId’ undeclared (first use in this function)
example.c:446: error: ‘uInt’ undeclared (first use in this function)
example.c:446: error: expected ‘;’ before ‘comprLen’
example.c:448: error: ‘Bytef’ undeclared (first use in this function)
example.c:448: error: expected expression before ‘)’ token
example.c:449: error: expected ‘;’ before ‘strlen’
example.c:453: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:454: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:457: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:457: warning: incompatible implicit declaration of built-in function ‘exit’
example.c: In function ‘test_dict_inflate’:
example.c:464: error: expected declaration specifiers before ‘Byte’
example.c:465: error: expected declaration specifiers before ‘uLong’
example.c:468: error: ‘z_stream’ undeclared (first use in this function)
example.c:468: error: expected ‘;’ before ‘d_stream’
example.c:470: warning: incompatible implicit declaration of built-in function ‘strcpy’
example.c:472: error: ‘d_stream’ undeclared (first use in this function)
example.c:472: error: ‘alloc_func’ undeclared (first use in this function)
example.c:472: error: expected ‘;’ before numeric constant
example.c:473: error: ‘free_func’ undeclared (first use in this function)
example.c:473: error: expected ‘;’ before numeric constant
example.c:474: error: ‘voidpf’ undeclared (first use in this function)
example.c:474: error: expected ‘;’ before numeric constant
example.c:477: error: ‘uInt’ undeclared (first use in this function)
example.c:477: error: expected ‘;’ before ‘comprLen’
example.c:480: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:480: error: ‘stderr’ undeclared (first use in this function)
example.c:480: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:483: error: expected ‘;’ before ‘uncomprLen’
example.c:489: error: ‘dictId’ undeclared (first use in this function)
example.c:490: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:491: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:493: error: expected ‘)’ before ‘Bytef’
example.c:493: error: ‘dictionary’ undeclared (first use in this function)
example.c:496: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:496: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:500: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:500: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:502: error: ‘hello’ undeclared (first use in this function)
example.c:503: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:504: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:506: warning: incompatible implicit declaration of built-in function ‘printf’
example.c: In function ‘main’:
example.c:518: error: ‘Byte’ undeclared (first use in this function)
example.c:518: error: ‘compr’ undeclared (first use in this function)
example.c:518: error: ‘uncompr’ undeclared (first use in this function)
example.c:519: error: ‘uLong’ undeclared (first use in this function)
example.c:519: error: expected ‘;’ before ‘comprLen’
example.c:520: error: expected ‘;’ before ‘uncomprLen’
example.c:523: error: subscripted value is neither array nor pointer
example.c:524: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:524: error: ‘stderr’ undeclared (first use in this function)
example.c:525: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:528: warning: incompatible implicit declaration of built-in function ‘fprintf’
example.c:531: warning: incompatible implicit declaration of built-in function ‘printf’
example.c:534: error: expected expression before ‘)’ token
example.c:535: error: expected expression before ‘)’ token
example.c:541: warning: incompatible implicit declaration of built-in function ‘exit’
example.c:543: error: ‘comprLen’ undeclared (first use in this function)
example.c:543: error: ‘uncomprLen’ undeclared (first use in this function)
make: *** [example.o] Error 1
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.13
============================================================
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see
www.Scriptics.com
to see if they have a fix for your platform.
Please help me .