<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.17063" name=GENERATOR></HEAD>
<BODY>
<DIV>Hello, </DIV>
<DIV> </DIV>
<DIV>I try to build ncl5.1.1 from source code for an Linux
ppc64 system. </DIV>
<DIV>uname -a :</DIV>
<DIV>Linux node01 2.6.9-42.EL #1 SMP Wed Jul 12 23:22:51 EDT 2006 ppc64 ppc64
ppc64 GNU/Linux</DIV>
<DIV> </DIV>
<DIV>gcc --version :</DIV>
<DIV>gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-3)<BR>Copyright (C) 2006 Free
Software Foundation, Inc.<BR>This is free software; see the source for copying
conditions. There is NO<BR>warranty; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.\</DIV>
<DIV> </DIV>
<DIV>gfortran --version<BR>GNU Fortran 95 (GCC) 4.1.0 20060515 (Red Hat
4.1.0-18)<BR>Copyright (C) 2006 Free Software Foundation, Inc.</DIV>
<DIV> </DIV>
<DIV>GNU Fortran comes with NO WARRANTY, to the extent permitted by law.<BR>You
may redistribute copies of GNU Fortran<BR>under the terms of the GNU General
Public License.<BR>For more information about these matters, see the file named
COPYING</DIV>
<DIV> </DIV>
<DIV>xlc -qversion<BR>IBM XL C/C++ Advanced Edition V8.0 for Linux
<BR>Version: 08.00.0000.0001 </DIV>
<DIV> </DIV>
<DIV> xlf -qversion<BR>IBM XL Fortran Advanced Edition V10.1 for
Linux <BR>Version: 10.01.0000.0001 </DIV>
<DIV> </DIV>
<DIV>1. First, I install the HDF4.2r4 from source code, </DIV>
<DIV>export CC=xlc<BR>export CXX=xlC<BR>export CPP=cpp<BR>./configure
--prefix=/data/hxf/wp/code/weimin/HDF4.2r4
--with-szip=/data/hxf/wp/code/weimin/szip-2.1 --disable-shared
--with-zlib=/u<BR>sr/lib --with-jpeg=/data/hxf/wp/code/weimin/jpeg-6b </DIV>
<DIV> </DIV>
<DIV>the configure information as follow:</DIV>
<DIV> </DIV>
<DIV> Configure
Summary<BR>
=================</DIV>
<DIV> </DIV>
<DIV>Compiling
Options:<BR>------------------<BR>
Compilation Mode:
Default<BR>
C Compiler:
xlc<BR>
CFLAGS:
-O<BR>
CPPFLAGS: -I/usr/include/rpc -I/usr/lib/include
-I/data/hxf/wp/code/weimin/jpeg-6b/include
<BR>
LDFLAGS: -L/usr/lib/lib
-L/data/hxf/wp/code/weimin/jpeg-6b/lib<BR>
Shared Libraries:
no<BR>
Static Libraries: yes</DIV>
<DIV> </DIV>
<DIV>Languages:<BR>----------<BR>
Fortran:
Yes<BR>
Fortran Compiler:
g77<BR>
FFLAGS: -Wsign-compare -O3 -fomit-frame-pointer</DIV>
<DIV> </DIV>
<DIV>Features:<BR>---------<BR>
SZIP compression: disabled</DIV>
<DIV> </DIV>
<DIV>HDF support for NetCDF-3
APIs:<BR>------------------------------<BR>
HDF4-NetCDF: Yes</DIV>
<DIV> </DIV>
<DIV>2. Second, make</DIV>
<DIV>make<BR>Making all in hdf<BR>make[1]: Entering directory
`/data/hxf/wp/code/weimin/HDF4.2r4-src/hdf'<BR>Making all in src<BR>make[2]:
Entering directory `/data/hxf/wp/code/weimin/HDF4.2r4-src/hdf/src'<BR>make
all-am<BR>make[3]: Entering directory
`/data/hxf/wp/code/weimin/HDF4.2r4-src/hdf/src'<BR>source='atom.c'
object='atom.lo' libtool=yes \<BR>DEPDIR=.deps depmode=none /bin/sh
../../bin/depcomp \<BR>/bin/sh ../../libtool --tag=CC --mode=compile
xlc -DHAVE_CONFIG_H -I. -I/usr/include/rpc -I/usr/lib/include
-I/data/hxf/wp/code/weimin/jpeg-6b/include -O -c -o atom.lo
atom.c<BR>libtool: compile: xlc -DHAVE_CONFIG_H -I. -I/usr/include/rpc
-I/usr/lib/include -I/data/hxf/wp/code/weimin/jpeg-6b/include -O -c atom.c -o
atom.o<BR>"hdfi.h", line 1460.1: 1506-166 (S) Definition of function No requires
parentheses.<BR>"hdfi.h", line 1460.4: 1506-276 (S) Syntax error: possible
missing '{'?<BR>"hdf.h", line 26.7: 1506-045 (S) Undeclared identifier
uint16.<BR>"hdf.h", line 29.1: 1506-273 (E) Missing type in declaration of
DFdi.<BR>"hdf.h", line 134.9: 1506-166 (S) Definition of function int32 requires
parentheses.<BR>"hdf.h", line 134.15: 1506-276 (S) Syntax error: possible
missing '{'?<BR>"hbitio.h", line 35.7: 1506-045 (S) Undeclared identifier
int32.<BR>"hbitio.h", line 40.18: 1506-045 (S) Undeclared identifier
max_offset.<BR>"hbitio.h", line 41.18: 1506-045 (S) Undeclared identifier
byte_offset.<BR>"hbitio.h", line 43.18: 1506-275 (S) Unexpected text count
encountered.<BR>"hbitio.h", line 43.7: 1506-045 (S) Undeclared identifier
intn.<BR>"hbitio.h", line 45.19: 1506-275 (S) Unexpected text access
encountered.<BR>"hbitio.h", line 45.7: 1506-045 (S) Undeclared identifier
uint8.<BR>"hbitio.h", line 46.19: 1506-275 (S) Unexpected text mode
encountered.<BR>"hbitio.h", line 47.19: 1506-275 (S) Unexpected text bits
encountered.<BR>"hbitio.h", line 48.19: 1506-045 (S) Undeclared identifier
bytep.<BR>"hbitio.h", line 49.19: 1506-045 (S) Undeclared identifier
bytez.<BR>"hbitio.h", line 50.19: 1506-045 (S) Undeclared identifier
bytea.<BR>"hbitio.h", line 52.1: 1506-273 (E) Missing type in declaration of
bitrec_t.<BR>"hbitio.h", line 57.7: 1506-166 (S) Definition of function uint8
requires parentheses.<BR>"hbitio.h", line 57.13: 1506-276 (S) Syntax error:
possible missing '{'?<BR>"hcomp.h", line 33.7: 1506-045 (S) Undeclared
identifier COMP_MODEL_STDIO.<BR>"hcomp.h", line 35.1: 1506-273 (E) Missing type
in declaration of comp_model_t.<BR>"hcomp.h", line 62.8: 1506-166 (S) Definition
of function uint16 requires parentheses.<BR>"hcomp.h", line 62.15: 1506-276 (S)
Syntax error: possible missing '{'?<BR>"hcomp.h", line 85.9: 1506-007 (S)
"struct {...}" is undefined.<BR>"hcomp.h", line 92.1: 1506-273 (E) Missing type
in declaration of model_info.<BR>"hcomp.h", line 99.13: 1506-046 (S) Syntax
error.<BR>"hcomp.h", line 111.13: 1506-046 (S) Syntax error.<BR>make[3]: ***
[atom.lo] Error 1<BR>make[3]: Leaving directory
`/data/hxf/wp/code/weimin/HDF4.2r4-src/hdf/src'<BR>make[2]: *** [all] Error
2<BR>make[2]: Leaving directory
`/data/hxf/wp/code/weimin/HDF4.2r4-src/hdf/src'<BR>make[1]: *** [all-recursive]
Error 1<BR>make[1]: Leaving directory
`/data/hxf/wp/code/weimin/HDF4.2r4-src/hdf'<BR>make: *** [all-recursive] Error
1</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>Thanks in advance for your help. </DIV>
<DIV> </DIV>
<DIV>Wei Min<BR>National Meteorological Information Centre, CMA,
China</DIV></BODY></HTML>