Re: _yy* undefined reference problem.

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 25 2010 - 10:33:36 MDT

I think the lex file in the libictrans directory is screwed up.

Cd to that directory (ncarview/src/lib/libictrans) and
copy the lex.yy_linux.c file over lex.yy.c and type
"make all install" in that same directory.

I'm doing a build right now on Cygwin and am trying gfortran instead
of g77.
This will be necessary because in V5.2.0, we will have F90 code, and
you will
need gfortran to compile it.

For V5.1.1, however, you can try g77, but I prefer gfortran.

If you use gfortran, then you should change "-lg2c" in the $NCARG/
config/Cygwin
file to "-lgfortran".

--Mary

On Mar 25, 2010, at 5:49 AM, Andrey Leskin wrote:

> Good day!
>
> I'm trying to build NCL 5.1.1 from source code. I have a WinXP SP2
> machine with CygWin 1.7.1 installed on it.
>
> I made some changes with CYGWIN config file, like changing
> CtoFLibraries variabl to:
> #define CtoFLibraries '-L/lib/gcc/i686-pc-cygwin/3.4.4' -lg2c -lm -
> lrpclib
>
> That's all changes I made.
> When I try to make Everything, I get the following errors:
>
> gcc -ansi -O -o ictrans main.o ../../../.././ncarview/src/lib/
> libictrans/libictrans.o ../../../.././ncarview/src/lib/libctrans/
> libctrans.o -L../../../.././ncarview/src/lib/libcgm -lcgm -
> L../../../.././ncarview/src/lib/libncarg_ras -lncarg_ras -
> L../../../.././common/src/libncarg_c -lncarg_c -L/usr/local/ncarg/
> lib -L/usr/local/lib -L/usr/X11R6/lib -lXpm -lX11 -lXext -lmfhdf -
> ldf -ljpeg -lz '-L/lib/gcc/i686-pc-cygwin/3.4.4' -lg2c -lm -lrpclib
> ../../../.././ncarview/src/lib/libictrans/libictrans.o:lex_stuff.c:
> (.text+0x4537): undefined reference to `_yylsp'
> ../../../.././ncarview/src/lib/libictrans/libictrans.o:lex_stuff.c:
> (.text+0x453c): undefined reference to `_yyolsp'
> ...
> ../../../.././ncarview/src/lib/libictrans/libictrans.o:lex_stuff.c:
> (.text+0x46b0): undefined reference to `_yyoutput'
>
> All error messages are about _yy* stuff. I've already tried to use
> flex of different version (2.5.35, 2.5.3), and differnt versions of
> gcc compiler (4.3.4, 3.4.4). I have a g77 compiler version 3.4.4.
>
> Hope for your fast response.
>
> Best regards,
> Andrey Leskin
> Software Developer
> ____________________________________________
>
> RDC ScanEx
> Department of Software Development
> 5/22 Rossolimo Street, Moscow, 119021, Russia
>
> Web: www.ScanEx.com
> E-Mail: aleskin@scanex.ru
> Phone: +7 (495) 739-73-85

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Thu Mar 25 10:34:52 2010

This archive was generated by hypermail 2.1.8 : Thu Apr 01 2010 - 11:31:26 MDT