Re: wrapit77 & scanner.c Building errors

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 20 Feb 2008 13:03:17 -0700 (MST)

    [Note: I'm cross-posting this to ncl-install since this is more
     of an installation question.]

I believe you are running into a known bug with the file "wrapit.c"
getting clobbered when "wrapit77" is compiled. We will soon have a
detailed document on these build gotchas.

Meanwhile, to fix this problem:

    1. Save the attached "wrapit.c" to the directory $NCARG/ni/src/mkwrap/.

    2. Touch the "wrapit.c" file:

           cd $NCARG/ni/src/mkwrap
           touch wrapit.c

    3. Type "make all install" in the same directory to see if
       "wrapit77" builds successfully.

    4a. If step #3 was successful, then you can restart the build:

         cd $NCARG
         make all install >&! make-output.2

       Note that "make-output.2" can be whatever name you like.

    4b. If step #3 was not successful, then email me.

--Mary

On Wed, 20 Feb 2008, Nestor Waldyd Alvarez Villa wrote:

> Hello:::
>
> When building ncl + ncarg 5.0, the following was prompted:
>
>
> make[4]: Entering directory `/usr/local/src/ncl_ncarg-5.0.0/ni/src/ncl'
> pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O
> -I../../.././include -I/usr/include -I/usr/include/X11
> -I/usr/include/netcdf-3 -I/usr/include/hdf -DLinux -DMAJOR=2 -DSYSV
> -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o
> scanner.o scanner.c
> PGC-W-0136-Function isatty has non-prototype declaration in scope
> (/usr/include/unistd.h: 745)
> PGC-S-0039-Use of undeclared variable yy_current_buffer (lex.yy.c: 2099)
> PGC-S-0055-Illegal operand of indirection operator (*) (lex.yy.c: 2099)
> PGC-S-0059-Struct or union required on left of . or -> (lex.yy.c: 2099)
> PGC/x86-64 Linux 7.0-6: compilation completed with severe errors
> make[4]: *** [scanner.o] Error 2
> make[4]: Leaving directory `/usr/local/src/ncl_ncarg-5.0.0/ni/src/ncl'
> Making install in ./ni/src/mkwrap
> make[4]: Entering directory `/usr/local/src/ncl_ncarg-5.0.0/ni/src/mkwrap'
> pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -O -o wrapit77 y.tab.o lex.yy.o Symbol.o wrapit.o
> -L/usr/local/ncarg/lib -L/usr/lib64 -L/usr/lib64/hdf -L/usr/lib64/X11 -lfl
> wrapit.o: In function `WMakeListNode':
> wrapit.y:(.text+0x0): multiple definition of `WMakeListNode'
> y.tab.o:wrapit.y:(.text+0x0): first defined here
> wrapit.o: In function `FType':
> wrapit.y:(.text+0x20): multiple definition of `FType'
> y.tab.o:wrapit.y:(.text+0x20): first defined here
> wrapit.o: In function `NType':
> wrapit.y:(.text+0xa0): multiple definition of `NType'
> y.tab.o:wrapit.y:(.text+0xa0): first defined here
> wrapit.o: In function `CType':
> wrapit.y:(.text+0x150): multiple definition of `CType'
> y.tab.o:wrapit.y:(.text+0x150): first defined here
> wrapit.o: In function `yyerror':
> wrapit.y:(.text+0x1f0): multiple definition of `yyerror'
> y.tab.o:wrapit.y:(.text+0x1f0): first defined here
> wrapit.o: In function `yyparse':
> wrapit.y:(.text+0x350): multiple definition of `yyparse'
> y.tab.o:wrapit.y:(.text+0x350): first defined here
> wrapit.o: In function `.S01487':
> wrapit.y:(.data+0xc80): multiple definition of `yydefred'
> y.tab.o:wrapit.y:(.data+0xc80): first defined here
> wrapit.o: In function `.S01487':
> wrapit.y:(.data+0xec0): multiple definition of `yysindex'
> y.tab.o:wrapit.y:(.data+0xec0): first defined here
> wrapit.o: In function `.S01487':
> wrapit.y:(.data+0x15a0): multiple definition of `yycheck'
> y.tab.o:wrapit.y:(.data+0x15a0): first defined here
> wrapit.o: In function `.S01487':
> wrapit.y:(.data+0x12e0): multiple definition of `yytable'
> y.tab.o:wrapit.y:(.data+0x12e0): first defined here
>
> :::::: More Errors ::::
>
> wrapit.y:(.text+0x38bc): undefined reference to `WNewArgVal'
> wrapit.y:(.text+0x38f7): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x39aa): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x3a7b): undefined reference to `WNewArgVal'
> wrapit.y:(.text+0x3ad5): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x3b8a): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x3bce): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x3cca): undefined reference to `WNewArgVal'
> wrapit.y:(.text+0x3d2b): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x3dde): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x3e4c): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x3edc): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x4121): undefined reference to `current'
> wrapit.y:(.text+0x41bd): undefined reference to `current'
> wrapit.y:(.text+0x43b1): undefined reference to `current'
> wrapit.y:(.text+0x44be): undefined reference to `WNewAdditionalSrc'
> wrapit.y:(.text+0x44ed): undefined reference to `WNewAdditionalSrc'
> wrapit.y:(.text+0x4550): undefined reference to `current'
> wrapit.y:(.text+0x457f): undefined reference to `NewParamLoc'
> wrapit.y:(.text+0x45c8): undefined reference to `WNewVDef'
> wrapit.y:(.text+0x470a): undefined reference to `DoTotal'
> wrapit.y:(.text+0x480f): undefined reference to `NewParamLoc'
> wrapit.y:(.text+0x4824): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x484b): undefined reference to `current'
> wrapit.y:(.text+0x496f): undefined reference to `NewParamLoc'
> wrapit.y:(.text+0x4984): undefined reference to `DoTotal'
> wrapit.y:(.text+0x49fd): undefined reference to `current'
> wrapit.y:(.text+0x4a58): undefined reference to `NewParamLoc'
> wrapit.y:(.text+0x4a6d): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x4afe): undefined reference to `current'
> wrapit.y:(.text+0x4b59): undefined reference to `NewParamLoc'
> wrapit.y:(.text+0x4b6f): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x4be2): undefined reference to `current'
> wrapit.y:(.text+0x4cf6): undefined reference to `DoTotal'
> wrapit.y:(.text+0x4d40): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x4d99): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x4e26): undefined reference to `DoTotal'
> wrapit.y:(.text+0x4e73): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x4ecf): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x4f95): undefined reference to `DoTotal'
> wrapit.y:(.text+0x4fe0): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x5039): undefined reference to `DoDimsizes'
> wrapit.y:(.text+0x5299): undefined reference to `current'
> wrapit.y:(.text+0x535b): undefined reference to `current'
> wrapit.y:(.text+0x55a9): undefined reference to `current'
> make[4]: *** [wrapit77] Error 2
> make[4]: Leaving directory `/usr/local/src/ncl_ncarg-5.0.0/ni/src/mkwrap'
>
> How can i solve this issue?
>
> Beforehand Thanks,
>
>
> --
>
> Nestor Waldyd Alvarez Villa | Ingeniero Investigador | Grupo de
> Investigaciones Ambientales (GIA)
> Universidad Pontificia Bolivariana | Circular 1 No. 70-01, Bloque 8. Piso 2.
> | Medellín, COLOMBIA
> Tel: (57) (4) 4159015 Ext. 9841 | (57) (4) 415 90 84 | Fax: (57) (4) 4159082
> mailto:nestor.alvarez_at_upb.edu.co | www.upb.edu.co |
> http://convena.upb.edu.co/~gialea/
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Wed Feb 20 2008 - 13:03:17 MST

This archive was generated by hypermail 2.2.0 : Wed Feb 20 2008 - 13:04:58 MST