[ncl-install] FW: wrapit difficulties w/ ncl-5 on CentOS 5

SMAST Support smastsupport at umassd.edu
Wed Jun 18 06:53:39 MDT 2008


I'm having difficulties getting ncl to compile wrapit successfully on my
X86_64 Linux machine.

Attempting to compile the "stock" configuration, I get the following errors:

gcc -ansi -fPIC  -O    -o wrapit77 y.tab.o lex.yy.o Symbol.o wrapit.o
-L/usr/local/share/NCARG-4.4.1/em64t/lib -L/usr/local/lib64  -lfl  
wrapit.o: In function `FType':
wrapit.c:(.text+0x0): multiple definition of `FType'
y.tab.o:y.tab.c:(.text+0x0): first defined here
wrapit.o: In function `NType':
wrapit.c:(.text+0x2f): multiple definition of `NType'
y.tab.o:y.tab.c:(.text+0x2f): first defined here
wrapit.o: In function `CType':
wrapit.c:(.text+0xc6): multiple definition of `CType'
y.tab.o:y.tab.c:(.text+0xc6): first defined here
wrapit.o: In function `WMakeListNode':
wrapit.c:(.text+0x146): multiple definition of `WMakeListNode'
y.tab.o:y.tab.c:(.text+0x146): first defined here
wrapit.o: In function `yyerror':
wrapit.c:(.text+0x2a4): multiple definition of `yyerror'
y.tab.o:y.tab.c:(.text+0x2a4): first defined here
wrapit.o: In function `yyparse':
wrapit.c:(.text+0x2d7): multiple definition of `yyparse'
y.tab.o:y.tab.c:(.text+0x2d7): first defined here
wrapit.o:(.rodata+0x460): multiple definition of `yydefred'
y.tab.o:(.rodata+0x460): first defined here
wrapit.o:(.rodata+0x6a0): multiple definition of `yysindex'
y.tab.o:(.rodata+0x6a0): first defined here
wrapit.o:(.rodata+0xd80): multiple definition of `yycheck'
y.tab.o:(.rodata+0xd80): first defined here
wrapit.o:(.rodata+0xac0): multiple definition of `yytable'
y.tab.o:(.rodata+0xac0): first defined here
wrapit.o:(.rodata+0x880): multiple definition of `yyrindex'
y.tab.o:(.rodata+0x880): first defined here
wrapit.o:(.rodata+0x340): multiple definition of `yylen'
y.tab.o:(.rodata+0x340): first defined here
wrapit.o:(.bss+0x0): multiple definition of `theparam'
y.tab.o:(.bss+0x0): first defined here
wrapit.o:(.rodata+0x220): multiple definition of `yylhs'
y.tab.o:(.rodata+0x220): first defined here
wrapit.o:(.rodata+0xa60): multiple definition of `yygindex'
y.tab.o:(.rodata+0xa60): first defined here
wrapit.o:(.rodata+0x640): multiple definition of `yydgoto'
y.tab.o:(.rodata+0x640): first defined here
y.tab.o: In function `yyparse':
y.tab.c:(.text+0x660): undefined reference to `current'
y.tab.c:(.text+0x747): undefined reference to `current'
y.tab.c:(.text+0x847): undefined reference to `current'
y.tab.c:(.text+0x89f): undefined reference to `current'
y.tab.c:(.text+0x8f3): undefined reference to `current'
y.tab.o:y.tab.c:(.text+0xada): more undefined references to `current' follow
y.tab.o: In function `yyparse':
y.tab.c:(.text+0x10df): undefined reference to `WNewCallRec'
y.tab.c:(.text+0x120c): undefined reference to `current'
y.tab.c:(.text+0x12c5): undefined reference to `WNewVDef'
y.tab.c:(.text+0x135b): undefined reference to `WNewVDef'
y.tab.c:(.text+0x13ad): undefined reference to `current'
y.tab.c:(.text+0x13df): undefined reference to `WNewArgVal'
y.tab.c:(.text+0x14f8): undefined reference to `WNewVDef'
y.tab.c:(.text+0x162f): undefined reference to `WNewVDef'
y.tab.c:(.text+0x1692): undefined reference to `WNewAdditionalSrc'
y.tab.c:(.text+0x171b): undefined reference to `WNewVDef'
y.tab.c:(.text+0x176b): undefined reference to `WNewAdditionalSrc'
y.tab.c:(.text+0x17d8): undefined reference to `WNewAdditionalSrc'
y.tab.c:(.text+0x1838): undefined reference to `current'
y.tab.c:(.text+0x184c): undefined reference to `DoDimsizes'
y.tab.c:(.text+0x18cc): undefined reference to `WNewAdditionalSrc'
y.tab.c:(.text+0x19c3): undefined reference to `current'
y.tab.c:(.text+0x1a1d): undefined reference to `WNewCallRec'
y.tab.c:(.text+0x1b63): undefined reference to `current'
y.tab.c:(.text+0x1c10): undefined reference to `current'
y.tab.c:(.text+0x1c42): undefined reference to `WNewArgVal'
<snipped for brevity sake>
wrapit.c:(.text+0x4231): undefined reference to `DoTotal'
wrapit.c:(.text+0x4311): undefined reference to `NewParamLoc'
wrapit.c:(.text+0x431f): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x4342): undefined reference to `current'
wrapit.c:(.text+0x441f): undefined reference to `NewParamLoc'
wrapit.c:(.text+0x442e): undefined reference to `DoTotal'
wrapit.c:(.text+0x448d): undefined reference to `current'
wrapit.c:(.text+0x44e8): undefined reference to `NewParamLoc'
wrapit.c:(.text+0x44f7): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x4582): undefined reference to `current'
wrapit.c:(.text+0x45d1): undefined reference to `NewParamLoc'
wrapit.c:(.text+0x45e1): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x463a): undefined reference to `current'
wrapit.c:(.text+0x4746): undefined reference to `DoTotal'
wrapit.c:(.text+0x478f): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x47e6): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x4873): undefined reference to `DoTotal'
wrapit.c:(.text+0x48bf): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x4919): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x49df): undefined reference to `DoTotal'
wrapit.c:(.text+0x4a28): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x4a7f): undefined reference to `DoDimsizes'
wrapit.c:(.text+0x4cd0): undefined reference to `current'
wrapit.c:(.text+0x4d76): undefined reference to `current'
wrapit.c:(.text+0x4f72): undefined reference to `current'
collect2: ld returned 1 exit status
make: *** [wrapit77] Error 1



Google is my friend. I found reference to this problem in
http://www.ncl.ucar.edu/Download/build_from_src.shtml ... I downloaded a new
wrapit.c from
http://www.ncl.ucar.edu/Download/wrapit.c 

However, I still have problems with this version of wrapit.c:

gcc -ansi -fPIC  -O  -I../../.././include -I/usr/local/include   -DLinux
-DMAJOR=2 -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
-DNeedFuncProto    -c -o wrapit.o wrapit.c
wrapit.c: In function âWNewFScopeâ:
wrapit.c:35: error: âNclSymâ undeclared (first use in this function)
wrapit.c:35: error: (Each undeclared identifier is reported only once
wrapit.c:35: error: for each function it appears in.)
wrapit.c:36: error: expected â)â before âTableElemâ
wrapit.c: In function âWNewWScopeâ:
wrapit.c:63: error: âNclSymâ undeclared (first use in this function)
wrapit.c:64: error: expected â)â before âTableElemâ
wrapit.c: In function âWNewVDefâ:
wrapit.c:168: error: âarray_â undeclared (first use in this function)
wrapit.c:169: error: expected â)â before âspecâ
wrapit.c: In function âWNewCallRecâ:
wrapit.c:190: error: âsizeoâ undeclared (first use in this function)
wrapit.c:191: error: expected â)â before âfâ
wrapit.c: In function âDoTotalâ:
wrapit.c:225: error: missing terminating " character
wrapit.c:226: error: expected expression before â)â token
wrapit.c:226: error: stray â\â in program
wrapit.c:226: error: stray â\â in program
wrapit.c:226: error: stray â\â in program
wrapit.c:226: error: stray â\â in program
wrapit.c:226: error: stray â\â in program
wrapit.c:226: error: stray â\â in program
wrapit.c:226: error: missing terminating " character
wrapit.c:227: error: expected statement before â)â token
wrapit.c: In function âNewParamLocâ:
wrapit.c:248: error: âstruct _WFargInfoâ has no member named âdiâ
wrapit.c:249: error: expected â)â before âm_sizesâ
wrapit.c: In function âmainâ:
wrapit.c:290: error: âWWrapRecâ has no member named âcâ
wrapit.c:291: error: expected â)â before â_callrecâ
wrapit.c:295: error: âarg_lisâ undeclared (first use in this function)
wrapit.c:296: error: expected â)â before âtâ
wrapit.c:328: error: âstruct _WParamInfoâ has no member named ân_dâ
wrapit.c:329: error: expected â;â before âimsâ
wrapit.c:330: error: missing terminating " character
wrapit.c:331: error: âzesâ undeclared (first use in this function)
wrapit.c:331: error: expected expression before â%â token
wrapit.c:331: error: expected expression before â%â token
wrapit.c:331: error: stray â\â in program
wrapit.c:331: error: missing terminating " character
wrapit.c:332: error: expected â;â before â}â token
wrapit.c:333: error: missing terminating " character
wrapit.c:334: error: âargsâ undeclared (first use in this function)
wrapit.c:334: error: expected expression before â%â token
wrapit.c:334: error: stray â\â in program
wrapit.c:335: error: expected â)â before â;â token
wrapit.c:336: warning: passing argument 2 of âfprintfâ makes pointer from
integer without a cast
wrapit.c:336: error: expected â;â before â}â token
wrapit.c:337: error: missing terminating " character
wrapit.c:338: error: expected expression before â%â token
wrapit.c:338: error: stray â\â in program
wrapit.c:338: error: expected â)â before â;â token
wrapit.c:339: warning: passing argument 2 of âfprintfâ makes pointer from
integer without a cast
wrapit.c:339: error: expected â;â before â}â token
wrapit.c:346: error: âisâ undeclared (first use in this function)
wrapit.c:347: error: expected â)â before âalphaâ
wrapit.c:350: error: âWWrapRecâ has no member named âc_defstâ
wrapit.c:351: error: expected â;â before âringâ
wrapit.c:352: error: âWWrapRecListâ has no member named âtheâ
wrapit.c:353: error: expected â)â before ârecâ
wrapit.c:355: error: âWWrapRecâ has no member named âc_defstâ
wrapit.c:356: error: expected â;â before âringâ
wrapit.c:357: error: âWWrapRecListâ has no member named âtheâ
wrapit.c:358: error: expected â)â before ârecâ
wrapit.c:361: error: âWWrapRecâ has no member named âc_deâ
wrapit.c:362: error: expected â;â before âfstringâ
wrapit.c:368: error: missing terminating " character
wrapit.c:369: error: stray â\â in program
wrapit.c:369: error: expected â)â before string constant
wrapit.c:369: warning: passing argument 2 of âfprintfâ from incompatible
pointer type
wrapit.c:371: error: missing terminating " character
wrapit.c:372: error: stray â\â in program
wrapit.c:372: error: expected â)â before string constant
wrapit.c:372: warning: passing argument 2 of âfprintfâ from incompatible
pointer type
wrapit.c:375: error: missing terminating " character
wrapit.c:376: error: stray â\â in program
wrapit.c:376: error: expected â)â before string constant
wrapit.c:376: warning: passing argument 2 of âfprintfâ from incompatible
pointer type
wrapit.c:379: error: missing terminating " character
wrapit.c:380: error: stray â\â in program
wrapit.c:380: error: expected â)â before string constant
wrapit.c:380: warning: passing argument 2 of âfprintfâ from incompatible
pointer type
make: *** [wrapit.o] Error 1


Can someone point me in the right direction? Thanks.




More information about the ncl-install mailing list