Solaris 86 hproto.h", line 402: syntax

From: Wolfgang Cohrs <wolfgang.cohrs_at_nyahnyahspammersnyahnyah>
Date: Wed, 18 Mar 2009 15:13:52 +0100

Hello,
i use cc: Sun C 5.9 SunOS_i386 Patch 124868-05 2008/05/13 on a SunOS
5.10 Generic_127128-11 i86pc i386 i86pc.
i have HDF4.2r4 installed without any problem
also NCAR Graphics* *without NCL
but with NCL i have this error

cc -Xt -O -I../../../.././include -I/usr/openwin/include
-I/usr/dt/include -I/usr/include -I/opt/HDF4.2r4/include
-I/opt/netCDF_util-1.1/include -DBuildRasterHDF -DSUN
-DBuildRasterHPPCL -DBuildRasterNrif -DBuildRasterSun -DBuildRasterXWD
-DBuildRasterAVS -DBuildRasterSGI -DBuildRasterAbekas
-DBuildRasterBinary -DBuildRasterYUV -DNGTMPDIR='"tmp"' -DPC -DSUN
-Bdynamic -D_POSIX_SOURCE -DSYSV -D_XOPEN_SOURCE -D__EXTENSIONS__
-DByteSwapped -Di386 -lfsu -DNeedFuncProto -c memory.c
cc -Xt -O -I../../../.././include -I/usr/openwin/include
-I/usr/dt/include -I/usr/include -I/opt/HDF4.2r4/include
-I/opt/netCDF_util-1.1/include -DBuildRasterHDF -DSUN
-DBuildRasterHPPCL -DBuildRasterNrif -DBuildRasterSun -DBuildRasterXWD
-DBuildRasterAVS -DBuildRasterSGI -DBuildRasterAbekas
-DBuildRasterBinary -DBuildRasterYUV -DNGTMPDIR='"tmp"' -DPC -DSUN
-Bdynamic -D_POSIX_SOURCE -DSYSV -D_XOPEN_SOURCE -D__EXTENSIONS__
-DByteSwapped -Di386 -lfsu -DNeedFuncProto -c hdf.c
"/opt/HDF4.2r4/include/hproto.h", line 402: syntax error before or at: char
"/opt/HDF4.2r4/include/hproto.h", line 402: function cannot return
function or array
"/opt/HDF4.2r4/include/hproto.h", line 402: warning: old-style
declaration or incorrect type for: strdup
"/opt/HDF4.2r4/include/hproto.h", line 402: identifier redeclared: strdup
        current : function() returning int
        previous: function(pointer to const char) returning pointer to
char : "/usr/include/string.h", line 90
"/opt/HDF4.2r4/include/hproto.h", line 402: syntax error before or at: )
"/opt/HDF4.2r4/include/hproto.h", line 402: warning: syntax error:
empty declaration
cc: acomp failed for hdf.c
*** Error code 2
make: Fatal error: Command failed for target `hdf.o'
Current working directory
/csys/nobackup1_MET/wcohrs/ncl_ncarg-5.1.0/ncarview/src/lib/libncarg_ras

Wolfgang

-- 
Wolfgang Cohrs 
Stiftung Alfred-Wegener-Institut fuer Polar- und Meeresforschung
Postfach 120161 D 27515 Bremerhaven
mailto:Wolfgang.Cohrs_at_awi.de
http://www.awi.de/People/show?wcohrs

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Wed Mar 18 2009 - 08:13:52 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 18 2009 - 14:50:42 MDT