[Met_help] I got compiling error when I build MET using gcc!!!

John Halley Gotway johnhg at rap.ucar.edu
Thu Nov 20 11:08:14 MST 2008


Xie Xin,

After doing some searching, I've found out that Lenny is not actually a stable release of Debian yet.  It's currently in the "testing" phase and no date has been set yet for a "stable" release.  Since
Lenny is not yet a stable release of Debian, MET isn't fully supported on it yet.

However, I was able to get MET to compile on Lenny after making several changes to the include files.  I've attached the set of changes you'll need in the attached tarball.

Here's what you'll need to do:
(1) Unpack the METv1.1 tarball 					> tar -xvzf METv1.1.20080711.tar.gz
(2) Copy the patch tarball into the top-level MET directory 	> cp METv1.1_lenny_patch.tar.gz METv1.1/.
(3) Enter the top-level MET directory 				> cd METv1.1
(4) Unpack the patch tarball 					> tar -xvzf METv1.1_lenny_patch.tar.gz
(5) Build METv1.1 as instructed in the MET users guide.

Also note that you'll need to use NetCDF version 3.6.3 since 3.6.2 doesn't appear to compile on Lenny.

And if you grab any of the other bug fixes from the known issue page of the MET website, you may need to merge those changes with the changes that I've sent you for Lenny.  That hasn't been done yet.

Thanks,
John Halley-Gotway
johnhg at ucar.edu


John Halley Gotway wrote:
> Xie Xin,
> 
> Thanks for sending this information.  MET should definitely be able to compile on Debain Linux.  I realize though that you're one release ahead of us.  In our division at NCAR we're currently on the
> Debian Etch release, which is one behind Lenny.  My guess is that there are some minor differences for MET between Etch and Lenny.
> 
> We've located a machine here that has Lenny installed.  I'll try building MET on it and figure out what changes need to be made.  My goal is to figure this out by the end of the week and get you those
>  changes.
> 
> Thanks,
> John
> 
> Xie Xin wrote:
>> oh I forgot to attach the file the last time.
>>
>> John Halley Gotway,
>>
>> Hi, thank you very much for your reply! I unpacked the MET source code again and got directly "memcpy() not declared" error this time. No "isdigit() not declared" error again. This was quite strange. The Makefile and the log file are in the attachment. I am running a Debian (Lenny) operating system. And my g++ version information are:
>>
>> g++ (Debian 4.3.2-1) 4.3.2
>> Copyright (C) 2008 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>> I am not sure whether my operating system was set up right. I install a base system of debian with a build-essential, gsl and f2c package installed. And I built bufrlib with no error.
>> Thank you much very!
>>
>> Xie Xin
>>
>> xiexin at lasg.iap.ac.cn
>>
>>
>>
>>> Xie Xin,
>>>
>>>
>>>
>>> A few users have reported a similar error but when using the PGI compilers to compile the PB2NC tool.  I'm not aware of other users experiencing the problem you're seeing.
>>>
>>>
>>>
>>> Could you please send me a copy of the Makefile you're using as well as all of the output from "make"?
>>>
>>>
>>>
>>> Please do the following from the top-level METv1.1 directory:
>>>
>>>> make clean
>>>> make >& make_met.log&
>>> And send me a copy of "make_met.log".
>>>
>>>
>>>
>>> Also, can you tell me what type of operating system you're running, and which version of the GNU compilers you're using:
>>>
>>>> g++ --version
>>>
>>> Hopefully we can get this figured out.
>>>
>>>
>>>
>>> Thanks!
>>>
>>> John Halley Gotway
>>>
>>> johnhg at ucar.edu
>>>
>>>
>>>
>>> Xie Xin wrote:
>>>
>>>> hi,
>>>> According to the manual, I have set up all the needed libs and began to
>>>> build MET. I want to use gcc so I cp the Makefile_gnu to Makefile.
>>>> However, I got error when I make.
>>>> *** Making vx_analysis_util Library ***
>>>> /usr/bin/g++ analysis_utils.cc -Wall -Wshadow -static -c -I..
>>>> analysis_utils.cc: In function `int all_digits (const char *)':
>>>> analysis_utils.cc:94: `isdigit' undeclared (first use this function)
>>>> analysis_utils.cc:94: (Each undeclared identifier is reported only once
>>>> for each function it appears in.)
>>>> make[3]: *** [analysis_utils.o] Error 1
>>>> make[2]: *** [vx_analysis_util_all] Error 2
>>>> make[1]: *** [libs] Error 2
>>>> make: *** [all] Error 2
>>>> It seemed that function isdigit was not declared in the header files.
>>>> Then I found that the declaration of isdigit() is in the ctype.h so I
>>>> add #include "ctype.h" in anylysis_utils.cc. But I got another error
>>>> complaining memcpy() was not declared. I wonder if there is a serious
>>>> NOT-DECLARATION bug in your code. Would you give me some suggestion how
>>>> this could be solved?
>>>> Thank you very much!
>>>> Xie Xin
>>>> _______________________________________________
>>>> Met_help mailing list
>>>> Met_help at mailman.ucar.edu
>>>> http://mailman.ucar.edu/mailman/listinfo/met_help
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help
-------------- next part --------------
A non-text attachment was scrubbed...
Name: METv1.1_lenny_patch.tar.gz
Type: application/gzip
Size: 109029 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/met_help/attachments/20081120/2c087fa6/METv1.1_lenny_patch.tar-0001.bin


More information about the Met_help mailing list