Re: yy_current_buffer error in scanner.c

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sun, 6 Jul 2008 16:29:28 -0600 (MDT)

Hi Susan,

Please go to:

http://www.ncl.ucar.edu/Download/build_from_src.shtml#Troubleshooting

and look at the fourth bullet: "[Any version] If you get the following
errors when building the code in the $NCARG/ni/src/ncl directory".

This should solve your problem, I think. You will need to download
that flex.tar.gz file and follow the instructions for building
it.

--Mary

On Wed, 2 Jul 2008, Susan Steele-Dunne wrote:

> Hi,
>
> I'm trying to install NCL and NCAR graphics with Intel fortran
> compiler and gcc under Linux on an Intel 64 bit machine.
>
> When I try to build, I get the following error:
>
> $Entering directory `$NCARG/ncl_ncarg-5.0.0/ni/src/ncl'
>
> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O
> -I../../.././include -I/usr/include -I/usr/include/X11
> -I/usr/include/X11/Xaw -I/usr/include/X11/extensions -I/usr/include/Xm
> -I/usr/include/X11/Xmu -DLinux -DMAJOR=2 -DUSE_NETCDF4 -DSYSV
> -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o
> scanner.o scanner.c
> lex.yy.c: In function 'yy_get_next_buffer':
> lex.yy.c:2099: error: 'yy_current_buffer' undeclared (first use in
> this function)
> lex.yy.c:2099: error: (Each undeclared identifier is reported only once
> lex.yy.c:2099: error: for each function it appears in.)
> make: *** [scanner.o] Error 1
>
> I've read about the wrapit bug
> (http://www.ncl.ucar.edu/Support/install_archives/2008/0053.html), and
> have downloaded wrapit.c to $NCARG/ni/src/mkwrap, and touched it.
> Running 'make all install' in that directory shows that 'wrapit77'
> builds successfully:
>
> NCARG/ni/src/mkwrap# make all install
> gcc -ansi -fPIC -O -I../../.././include -I/usr/include
> -I/usr/include/X11 -I/usr/include/X11/Xaw
> -I/usr/include/X11/extensions -I/usr/include/Xm -I/usr/include/X11/Xmu
> -DLinux -DMAJOR=2 -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE
> -DByteSwapped -DNeedFuncProto -c -o wrapit.o wrapit.c
> gcc -ansi -fPIC -O -o wrapit77 y.tab.o lex.yy.o Symbol.o wrapit.o
> -L/usr/local/ncarg/lib -L/usr/X11R6/lib -L/usr/lib
> -L/opt/intel/fce/10.1.012/lib -lfl
> Installing wrapit77
> installing in ./ni/src/mkwrap
>
> However, if i try to make all install in $NCARG or $NCARG/ni/src/ncl,
> I still get the same lex.yy.c errors shown above. Can anyone help me
> with this?
>
> Thanks in advance,
> Susan
> _______________________________________________
> ncl-install mailing list
> ncl-install_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Sun Jul 06 2008 - 16:29:28 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 22 2008 - 15:20:22 MDT