Package Details: nco 4.6.1-1

Git Clone URL: https://aur.archlinux.org/nco.git (read-only)
Package Base: nco
Description: netCDF Operators allow users to manipulate and analyse data stored in NetCDF files
Upstream URL: http://nco.sourceforge.net/
Licenses: GPL
Submitter: graziano
Maintainer: graziano
Last Packager: graziano
Votes: 12
Popularity: 0.008929
First Submitted: 2006-11-23 15:10
Last Updated: 2016-08-18 14:41

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

graziano commented on 2016-08-18 14:46

Fixed the compilation error and bumped for an upstream release.

pezzacolori commented on 2016-08-18 07:30

I get following error when compiling (tried with and without flex package installed)

ncap_lex.o ncap_lex.c
ncap_lex.c:1060:8: error: conflicting types for ‘nco_yyget_leng’
int nco_yyget_leng (void );
^~~~~~~~~~~~~~
ncap_lex.l:104:13: note: previous declaration of ‘nco_yyget_leng’ was here
yy_size_t yyget_leng(void); /* fixes: warning: no previous prototype for `yyget_leng' */
^~~~~~~~~~~~~~
ncap_lex.c: In function ‘yy_get_next_buffer’:
ncap_lex.c:1131:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( n = 0; n < max_size && \
^
ncap_lex.c:2600:3: note: in expansion of macro ‘YY_INPUT’
YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
^~~~~~~~
ncap_lex.c: In function ‘nco_yy_scan_bytes’:
ncap_lex.c:3141:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( i = 0; i < _yybytes_len; ++i )
^
ncap_lex.c: At top level:
ncap_lex.c:3215:5: error: conflicting types for ‘nco_yyget_leng’
int nco_yyget_leng (void)
^~~~~~~~~~~~~~
ncap_lex.l:104:13: note: previous declaration of ‘nco_yyget_leng’ was here
yy_size_t yyget_leng(void); /* fixes: warning: no previous prototype for `yyget_leng' */
^~~~~~~~~~~~~~
ncap_lex.c:2739:16: warning: ‘input’ defined but not used [-Wunused-function]
static int input (void)
^~~~~
make[3]: *** [Makefile:1071: ncap_lex.o] Error 1
make[3]: Leaving directory '/home/pezzatti/aur/nco/src/nco-4.6.0/src/nco'
make[2]: *** [Makefile:382: all-recursive] Error 1
make[2]: Leaving directory '/home/pezzatti/aur/nco/src/nco-4.6.0/src'
make[1]: *** [Makefile:444: all-recursive] Error 1
make[1]: Leaving directory '/home/pezzatti/aur/nco/src/nco-4.6.0'
make: *** [Makefile:376: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
:: failed to build nco package(s)

richli commented on 2016-02-04 22:19

$ makepkg
==> ERROR: license should be an array

graziano commented on 2016-01-31 15:58

The build problem seems to be on antlr2.
Some C++ ABI change ?
If I compile and install the antlr2 package on my laptop from the files in the extra repository, and attempt the build of NCO afterwards, I have a success, and the package tests are all OK.
If you do just a "clean" compile with simple configure/make/make install, the ncap2 program is just not compiled because configure does not find runantl2 (non default runantlr script name to have also antlr3 same box).
And you can trust me you do want the ncap2.
I think I will try to scale this up to the antlr2 package maintainer. FS:47966

blippy commented on 2016-01-31 11:25

PKGBUILD nco 4.5.3-1 doesn't build: ncoTree.o: undefined reference to `antlr::ASTFactory::create
More here: http://pastebin.com/EfcHatfC

I downloaded the recent version, nco-4.5.4, and obtained a clean compile

bnordgren commented on 2013-10-29 01:33

In order to get ncap2 to build, I added

sed -i 's/runantlr/runantlr2/g' configure

to the build function right before the configure command is run.

Anonymous comment on 2012-02-21 22:53

4.0.9 officially released - PKGBUILD now uses official sources.

Anonymous comment on 2012-02-09 10:47

Looks like this was a bug in nco-4.0.8 (i found it but didn't copy the number)

nco-4.0.9 has not been officially released but upstream do release 'preview' debian packages.

Th source is temporarily the '*.orig.gz' tarball from upstream's debian source pkg.

The netcdf4 portions of nco appear to work now.

Anonymous comment on 2012-02-07 19:23

According to nco compile instructions, netcdf4 flag should be --enable-netcdf4

Also, even with that fixed, I can't get netcdf4 to be included.

Anonymous comment on 2010-11-15 17:18

Sorry I'am wrong. Make depends on antlr(2). Corrected for in new pkgrel.

Anonymous comment on 2010-11-15 11:42

updated!
@epsilom antlr(2) is not necessary to build the package

XavierCLL commented on 2010-11-06 16:11

please update and add antlr2 to makedependencie

Anonymous comment on 2010-10-12 21:15

Sorry for late response. The packages depends on udunits2 which is at http://aur.archlinux.org/packages.php?ID=41146.
If you urgently need udunits, simply search for udunits2 and change it to udunits in the PKGBUILD.
This is necessary since the package could either depend on udunits2 or udunits.

jedbrown commented on 2010-09-27 01:52

Please depend on 'udunits' which is now at 2.1.19: http://aur.archlinux.org/packages.php?ID=7617