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.
Mark, >Date: Tue, 15 Nov 2005 14:20:02 -0700 >From: Mark Seefeldt <address@hidden> >Organization: University of Colorado >To: Steve Emmerson <address@hidden> >Subject: Re: 20051114: netcdf-perl-1.2.3 The above message contained the following: > I am doing the installation using sudo, which seems to not behave as > well with multiple commands on a single line. Must be a non-standard user-shell. > Therefore I set the > environment variables in the file CUSTOMIZE. I then followed your > steps, and noticed an error in the make step. I have attached the > configure.log, make.log, and CUSTOMIZE files. [snip] > making `all' in directory /usr/local/udunits-1.12.4/src/udunits > > make[1]: Entering directory `/usr/local/udunits-1.12.4/src/udunits' > make[2]: Entering directory `/usr/local/udunits-1.12.4/src/udunits' > c89 -c -O2 -I../lib -I../port/misc -DpgiFortran udunits.c > udunits.c: In function `main': > udunits.c:95: error: `_POSIX_MAX_INPUT' undeclared (first use in this > function) > udunits.c:95: error: (Each undeclared identifier is reported only once > udunits.c:95: error: for each function it appears in.) > make[2]: *** [udunits.o] Error 1 > make[2]: Leaving directory `/usr/local/udunits-1.12.4/src/udunits' > make[1]: *** [program] Error 2 > make[1]: Leaving directory `/usr/local/udunits-1.12.4/src/udunits' > make: *** [udunits/all] Error 1 Looks like your compiler needs help. Instead of c89(1), try gcc(1): modify CC in CUSTOMIZE, do a "make distclean", and reattempt the build. Regards, Steve Emmerson