This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Nicola, >Date: Mon, 30 Sep 1996 08:09:59 -0600 >From: Unidata Support <address@hidden> >Organization: . >To: address@hidden >Subject: 960930: netcdf installation >Keywords: 199609301416.AA27773 In the above message you wrote: > > ------- Forwarded Message > > >To: address@hidden > >From: address@hidden (Nicola D'Agostino) > >Subject: netcdf > >Organization: . > >Keywords: 199609301335.AA27021 > > Dear Sirs, > > I'm trying to install GMT (generic mapping tool) on a sun station. > I get some problems in the installation of netcdf, during the make install. > Can you help me ? > I include the outputs. > > Thank you very much > > Nicola D'Agostino > > ---------------------------------------------------------------------------- > > # uname -a > SunOS geodyn 5.5.1 Generic sun4u sparc SUNW,Ultra-1 > > > # env > DISPLAY=3D:0.0 > HELPPATH=3D/usr/openwin/lib/locale:/usr/openwin/lib/help > HOME=3D/ > HZ=3D100 > LANG=3DC > LD_LIBRARY_PATH=3D/opt/SUNWspro/lib:/lib: > LOGNAME=3Droot > MAIL=3D/var/mail/root > MANPATH=3D/usr/openwin/share/man:/opt/SUNWspro/man:/usr/man: > NOSUNVIEW=3D0 > OPENWINHOME=3D/usr/openwin > PATH=3D/usr/openwin/bin:/usr/bin:/usr/ucb:/etc:/opt/SUNWspro/bin:/usr/sbin:/= > us > r/bin > SHELL=3D/sbin/sh > TERM=3Dsun-cmd > TERMCAP=3Dsun-cmd:te=3D\E[>4h:ti=3D\E[>4l:tc=3Dsun: > TZ=3DMET > WINDOW_TERMIOS=3D > XFILESEARCHPATH=3D/usr/openwin/lib/locale/%L/%T/%N%S:/usr/openwin/lib/%T/%N%= > S > XINITRC=3D/usr/openwin/lib/Xinitrc > > # cat config.log > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:1156: cc -E conftest.c >/dev/null 2>conftest.out > configure:1197: cc -E conftest.c >/dev/null 2>conftest.out > configure:1684: cc -c -O -Kpic conftest.c 1>&5 > configure:1712: cc -o conftest -O conftest.c 1>&5 > configure:1745: cc -o conftest -O conftest.c 1>&5 > configure:1781: cc -o conftest -O conftest.c 1>&5=7F > configure:1845: cc -o conftest -O conftest.c 1>&5 > configure:1875: cc -o conftest -O conftest.c 1>&5 > configure:1960: cc -o conftest -O conftest.c 1>&5 > configure:2169: cc -o conftest -O conftest.c 1>&5 > configure:2218: cc -c -O conftest.c 1>&5 > "configure", line 2213: undefined struct/union member: x_getint > "configure", line 2213: warning: improper pointer/integer combination: op= > "=3D" > configure:2259: cc -c -O conftest.c 1>&5 > configure:2292: cc -c -O conftest.c 1>&5 > "configure", line 2287: warning: const is a keyword in ANSI C > "configure", line 2287: undefined symbol: const > "configure", line 2287: syntax error before or at: charset > configure:2332: cc -c -O -Dconst=3D conftest.c 1>&5 > "configure", line 2325: va_start: argument mismatch > configure:2378: cc -o conftest -O -Dconst=3D conftest.c 1>&5 > configure:2450: cc -E -Dconst=3D conftest.c >/dev/null 2>conftest.out > configure:2484: cc -E -Dconst=3D conftest.c >/dev/null 2>conftest.out > configure:2510: cc -c -O -Dconst=3D conftest.c 1>&5 > "configure", line 2502: identifier redeclared: malloc > current : function() returning pointer to struct {int a, int b} > previous: function() returning pointer to void : > "/usr/include/stdlib.h", > line 201 > > # cat log2 > > making `all' in directory /netcdf-2.4.3/src/port > > `all' is updated. > > returning to directory /netcdf-2.4.3/src > > > making `all' in directory /netcdf-2.4.3/src/xdr > > > returning to directory /netcdf-2.4.3/src > > > making `all' in directory /netcdf-2.4.3/src/libsrc > > cc -c -Kpic -O -Dconst=3D array.c > cc -c -Kpic -O -Dconst=3D attr.c > cc -c -Kpic -O -Dconst=3D cdf.c > cc -c -Kpic -O -Dconst=3D dim.c > cc -c -Kpic -O -Dconst=3D file.c > cc -c -Kpic -O -Dconst=3D iarray.c > cc -c -Kpic -O -Dconst=3D error.c > cc -c -Kpic -O -Dconst=3D globdef.c > cc -c -Kpic -O -Dconst=3D putget.c > cc -c -Kpic -O -Dconst=3D putgetg.c > cc -c -Kpic -O -Dconst=3D sharray.c > case `uname -sv` in \ > 'AIX 3') \ > CFLAGS=3D`echo -Kpic -O | sed 's/-O[23]//g;s/-O//g'`; \ > cc -c $CFLAGS -Dconst=3D string.c; \ > ;; \ > *) \ > cc -c -Kpic -O -Dconst=3D string.c; \ > ;; \ > esac > cc -c -Kpic -O -Dconst=3D var.c > cc -c -Kpic -O -Dconst=3D xdrposix.c > /usr/xpg4/bin/ar rcuv libnetcdf.a array.o attr.o cdf.o dim.o file.o iarray.o > error.o globdef.o putget.o putgetg.o sharray.o string.o var.o xdrposix.o > a - array.o > a - attr.o > a - cdf.o > a - dim.o > a - file.o > a - iarray.o > a - error.o > a - globdef.o > a - putget.o > a - putgetg.o > a - sharray.o > a - string.o > a - var.o > a - xdrposix.o > case "" in \ > '') ;; \ > *) /usr/xpg4/bin/ar rucv libnetcdf.a ;; \ > esac=7F > : libnetcdf.a > > returning to directory /netcdf-2.4.3/src > > > making `all' in directory /netcdf-2.4.3/src/fortran > > ./fortc -L . -O sunos5 common.inc > netcdf.inc > ./fortc -L . -O sunos5 jackets.src > jackets.c > cc -c -Kpic -O -I../libsrc -Dconst=3D jackets.c > /usr/xpg4/bin/ar rcuv ../libsrc/libnetcdf.a jackets.o > a - jackets.o > : ../libsrc/libnetcdf.a > > returning to directory /netcdf-2.4.3/src > > > making `all' in directory /netcdf-2.4.3/src/ncdump > > cc -c -O -I../libsrc -Dconst=3D ncdump.c > cc -c -O -I../libsrc -Dconst=3D vardata.c > cc -c -O -I../libsrc -Dconst=3D dumplib.c > cc -o ncdump -O ncdump.o vardata.o dumplib.o ../libsrc/libnetcdf.a > > returning to directory /netcdf-2.4.3/src > > > making `all' in directory /netcdf-2.4.3/src/ncgen > > cc -c -O -I../libsrc -Dconst=3D main.c > cc -c -O -I../libsrc -Dconst=3D load.c > lex ncgen.l > *** Error code 1 > *** Error code 1 Hmmm... We've never seen a problem with the lex(1) utility before. Would you please do the following: 1. Go into the ncgen/ subdirectory. 2. Execute the command `which lex' or `type lex' (depending on your command-interpreter shell). Trap the output and send it to me. 3. Manually execute the command `lex ncgen.l'. Trap the output and send it to me. 4. Check with your system administrator about lex(1). Is it up-to-date? Has anyone else reported a problem with it? -------- Steve Emmerson <address@hidden>