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

John Halley Gotway johnhg at rap.ucar.edu
Wed Nov 19 09:24:20 MST 2008


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


More information about the Met_help mailing list