Re: Problem with ng4ex

From: Ekin Akoglu <ekin_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 17 2010 - 00:29:49 MDT

Mateus,

I am using ncl 5.1.1 binaries under Fedora 12 without problem.

FYI

Ekin

Mateus Teixeira wrote:
> Mary,
>
> I think you're right. Fedora 12 came with gcc and gfortran 4.4.3 and
> I've installed ncl 5.1.1 compiled with gcc 4.3.2.
>
> It appears that I should compile ncl with this different versions of
> gcc compilers
>
> Thanks
>
> Mateus
>
>
>
>
> 2010/3/16 Mary Haley <haley@ucar.edu <mailto:haley@ucar.edu>>
>
> Mateus,
>
> This is odd. It looks like there might be an incompatibility
> between the gfortran you're using, and the gfortran that was used
> to build the NCL/NCARG libraries.
>
> For the record, when you tried the compilation by hand, I think
> you want the "xy01f.f" up front:
>
> gfortran -L/usr/local/ncarg/lib
> -I/usr/local/ncarg/include xy01f.f -lncarg -lncarg_gks -lncarg_c
> -lhlu -lX11 -lXext -lpng -lz -lgfortran
>
>
> What NCL binary did you download, and what version of gcc/gfortran
> do you have:
>
> gcc --version
> gfortran --version
>
> --Mary
>
>
> On Mar 13, 2010, at 1:49 PM, Mateus Teixeira wrote:
>
>> Dear NCL users,
>>
>> I'm trying to run the example presented in
>> http://www.ncl.ucar.edu/Applications/BasicExamples/XyPlot/xy01.shtml
>>
>> but I'm getting the following error message during compilation:
>>
>> $ ng4ex xy01f
>>
>> NCAR Graphics High Level Utility Fortran Example <xy01f>
>>
>> Copying xy01f.f
>> Copying xy01.res
>>
>> Compiling and linking...
>> gfortran -fPIC -fno-second-underscore -fno-range-check -o xy01f
>> xy01f.f -L/usr/local/ncarg/lib -I/usr/local/ncarg/include -lhlu
>> -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lpng -lz -lgfortran -lm
>> /usr/lib/gcc/i686-redhat-linux/4.4.3/../../../crt1.o: In function
>> `_start':
>> (.text+0x18): undefined reference to `main'
>> collect2: ld returned 1 exit status
>> Executing <xy01f>...
>>
>> ./xy01f: Command not found.
>>
>> Finished executing <xy01f>...
>>
>>
>> I've tried to compile it directly with
>>
>> gfortran -L/usr/local/ncarg/lib -I/usr/local/ncarg/include
>> -lncarg -lncarg_gks -lncarg_c -lhlu -lX11 -lXext -lpng -lz
>> -lgfortran xy01f.f
>>
>> but it gaves the following errors:
>>
>> /tmp/ccrkSpMj.o: In function `MAIN__':
>> xy01f.f:(.text+0xc6): undefined reference to `nhlfinitialize_'
>> xy01f.f:(.text+0xe1): undefined reference to `nhlfrlcreate_'
>> xy01f.f:(.text+0xec): undefined reference to `nhlfrlclear_'
>> xy01f.f:(.text+0x11e): undefined reference to `nhlfrlsetstring_'
>> xy01f.f:(.text+0x150): undefined reference to `nhlfrlsetstring_'
>> xy01f.f:(.text+0x176): undefined reference to `nhlfappclass_'
>> .....
>>
>>
>> Maybe is it a installation problem?
>>
>> I'm using NCL 5.1.1.
>>
>>
>> Best regards,
>>
>> --
>> Mateus da Silva Teixeira
>> Meteorologista
>> Instituto de Pesquisas Meteorológicas - IPMet
>> Universidade Estadual Paulista - UNESP
>> Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP
>> 17033-360
>> Bauru - SP - Brasil
>> Fone: +55 14 3103-6030 / fax: 3203-3649
>>
>> Registered Linux User #466740 (http://counter.li.org/)
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> --
> Mateus da Silva Teixeira
> Meteorologista
> Instituto de Pesquisas Meteorológicas - IPMet
> Universidade Estadual Paulista - UNESP
> Av. Luis Edmundo Carrijo Coube, 14-01 - Cx. Postal 281 - CEP 17033-360
> Bauru - SP - Brasil
> Fone: +55 14 3103-6030 / fax: 3203-3649
>
> Registered Linux User #466740 (http://counter.li.org/)
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean.
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Mar 17 00:30:44 2010

This archive was generated by hypermail 2.1.8 : Wed Mar 17 2010 - 13:00:16 MDT