Compile grads2 without netcdf
James T. Potemra
jimp at HAWAII.EDU
Wed Feb 13 21:16:52 EST 2008
I'm wondering if my problem is related to this thread. I'm building
from source
on a RedHat EL4 machine. I've already got all the supplibs built for
other purposes
and just link them into the supplibs directory. I can successfully
compile either
with netcdf support or hdf support but not both. When trying both I get
the follow
compiler error at the very last step. BTW, ./configure --without-nc
seems to turn
off netcdf builds.
Jim
gcc -g -O -o grads grads.o gxsubs.o gxmeta.o gxchpl.o gxcntr.o
gxstrm.o gxwmap.o gxshad.o gaexpr.o gafunc.o gautil.o gagx.o gscrpt.o
gamach.o bufrstn.o gabufr.o gabufrtbl.o gxX.o gxdxwd.o galloc.o
gaddes-c.o gacfg-c.o gaio-c.o gauser-c.o gasdf-c.o -L.././supplibs/lib
-L/usr/X11R6/lib -lX11 .././supplibs/lib/libreadline.a
.././supplibs/lib/libgd.a .././supplibs/lib/libpng12.a
.././supplibs/lib/libz.a .././supplibs/lib/libnetcdf.a
.././supplibs/lib/libudunits.a .././supplibs/lib/libmfhdf.a
.././supplibs/lib/libdf.a .././supplibs/lib/libjpeg.a
.././supplibs/lib/libudunits.a .././supplibs/lib/libz.a
.././supplibs/lib/libsz.a .././supplibs/lib/libgrib2c.a
.././supplibs/lib/libpng12.a .././supplibs/lib/libz.a
.././supplibs/lib/libjasper.a -ltermcap -lm
.././supplibs/lib/libmfhdf.a(putget.o)(.text+0x19dc): In function
`ncvarput1':
: multiple definition of `ncvarput1'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xa14):/usr/local/netcdf-3.6.2/libsrc/v2i.c:681:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarput1' changed from 63 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 113 in
.././supplibs/lib/libmfhdf.a(putget.o)
.././supplibs/lib/libmfhdf.a(putget.o)(.text+0x1a50): In function
`ncvarget1':
: multiple definition of `ncvarget1'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xa54):/usr/local/netcdf-3.6.2/libsrc/v2i.c:705:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarget1' changed from 63 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 87 in
.././supplibs/lib/libmfhdf.a(putget.o)
.././supplibs/lib/libmfhdf.a(putget.o)(.text+0x28b4): In function
`ncvarput':
: multiple definition of `ncvarput'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xa94):/usr/local/netcdf-3.6.2/libsrc/v2i.c:730:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarput' changed from 68 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 134 in
.././supplibs/lib/libmfhdf.a(putget.o)
.././supplibs/lib/libmfhdf.a(putget.o)(.text+0x293c): In function
`ncvarget':
: multiple definition of `ncvarget'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xad8):/usr/local/netcdf-3.6.2/libsrc/v2i.c:758:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarget' changed from 76 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 108 in
.././supplibs/lib/libmfhdf.a(putget.o)
.././supplibs/lib/libmfhdf.a(putget.o)(.text+0x29a8): In function
`ncrecinq':
: multiple definition of `ncrecinq'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xf60):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1117:
first defined here
/usr/bin/ld: Warning: size of symbol `ncrecinq' changed from 141 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 292 in
.././supplibs/lib/libmfhdf.a(putget.o)
.././supplibs/lib/libmfhdf.a(putget.o)(.text+0x2e4c): In function
`ncrecput':
: multiple definition of `ncrecput'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x1030):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1166:
first defined here
/usr/bin/ld: Warning: size of symbol `ncrecput' changed from 62 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 402 in
.././supplibs/lib/libmfhdf.a(putget.o)
.././supplibs/lib/libmfhdf.a(putget.o)(.text+0x2fe0): In function
`ncrecget':
: multiple definition of `ncrecget'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xff0):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1149:
first defined here
/usr/bin/ld: Warning: size of symbol `ncrecget' changed from 62 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 87 in
.././supplibs/lib/libmfhdf.a(putget.o)
.././supplibs/lib/libmfhdf.a(putgetg.o)(.text+0xb54): In function
`ncvarputg':
: multiple definition of `ncvarputg'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xbf4):/usr/local/netcdf-3.6.2/libsrc/v2i.c:862:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarputg' changed from 115 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 166 in
.././supplibs/lib/libmfhdf.a(putgetg.o)
.././supplibs/lib/libmfhdf.a(putgetg.o)(.text+0xbfc): In function
`ncvargetg':
: multiple definition of `ncvargetg'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xc68):/usr/local/netcdf-3.6.2/libsrc/v2i.c:904:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvargetg' changed from 115 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 140 in
.././supplibs/lib/libmfhdf.a(putgetg.o)
.././supplibs/lib/libmfhdf.a(putgetg.o)(.text+0xc88): In function
`ncvarputs':
: multiple definition of `ncvarputs'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xb24):/usr/local/netcdf-3.6.2/libsrc/v2i.c:787:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarputs' changed from 103 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 119 in
.././supplibs/lib/libmfhdf.a(putgetg.o)
.././supplibs/lib/libmfhdf.a(putgetg.o)(.text+0xd00): In function
`ncvargets':
: multiple definition of `ncvargets'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xb8c):/usr/local/netcdf-3.6.2/libsrc/v2i.c:824:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvargets' changed from 103 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 84 in
.././supplibs/lib/libmfhdf.a(putgetg.o)
.././supplibs/lib/libmfhdf.a(var.o)(.text+0x1ac): In function
`NC_var_shape':
: multiple definition of `NC_var_shape'
.././supplibs/lib/libnetcdf.a(var.o)(.text+0x584):/usr/local/netcdf-3.6.2/libsrc/var.c:361:
first defined here
/usr/bin/ld: Warning: size of symbol `NC_var_shape' changed from 454 in
.././supplibs/lib/libnetcdf.a(var.o) to 583 in
.././supplibs/lib/libmfhdf.a(var.o)
.././supplibs/lib/libmfhdf.a(var.o)(.text+0x3f4): In function `ncvardef':
: multiple definition of `ncvardef'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x90c):/usr/local/netcdf-3.6.2/libsrc/v2i.c:613:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvardef' changed from 81 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 684 in
.././supplibs/lib/libmfhdf.a(var.o)
.././supplibs/lib/libmfhdf.a(var.o)(.text+0x76c): In function `ncvarid':
: multiple definition of `ncvarid'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x960):/usr/local/netcdf-3.6.2/libsrc/v2i.c:630:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarid' changed from 72 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 169 in
.././supplibs/lib/libmfhdf.a(var.o)
.././supplibs/lib/libmfhdf.a(var.o)(.text+0x864): In function `ncvarinq':
: multiple definition of `ncvarinq'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x9a8):/usr/local/netcdf-3.6.2/libsrc/v2i.c:652:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarinq' changed from 105 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 280 in
.././supplibs/lib/libmfhdf.a(var.o)
.././supplibs/lib/libmfhdf.a(var.o)(.text+0x97c): In function `ncvarrename':
: multiple definition of `ncvarrename'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xcdc):/usr/local/netcdf-3.6.2/libsrc/v2i.c:942:
first defined here
/usr/bin/ld: Warning: size of symbol `ncvarrename' changed from 64 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 491 in
.././supplibs/lib/libmfhdf.a(var.o)
.././supplibs/lib/libmfhdf.a(array.o)(.text+0xd4): In function `nctypelen':
: multiple definition of `nctypelen'
.././supplibs/lib/libnetcdf.a(putget.o)(.text+0x0):/usr/local/netcdf-3.6.2/libsrc/putget.c:51:
first defined here
/usr/bin/ld: Warning: size of symbol `nctypelen' changed from 59 in
.././supplibs/lib/libnetcdf.a(putget.o) to 93 in
.././supplibs/lib/libmfhdf.a(array.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0x10c): In function
`NC_findattr':
: multiple definition of `NC_findattr'
.././supplibs/lib/libnetcdf.a(attr.o)(.text+0x540):/usr/local/netcdf-3.6.2/libsrc/attr.c:320:
first defined here
/usr/bin/ld: Warning: size of symbol `NC_findattr' changed from 166 in
.././supplibs/lib/libnetcdf.a(attr.o) to 114 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0x454): In function `ncattput':
: multiple definition of `ncattput'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xd1c):/usr/local/netcdf-3.6.2/libsrc/v2i.c:962:
first defined here
/usr/bin/ld: Warning: size of symbol `ncattput' changed from 71 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 228 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0x538): In function `ncattname':
: multiple definition of `ncattname'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xe4c):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1044:
first defined here
/usr/bin/ld: Warning: size of symbol `ncattname' changed from 66 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 217 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0x614): In function `ncattinq':
: multiple definition of `ncattinq'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xd64):/usr/local/netcdf-3.6.2/libsrc/v2i.c:981:
first defined here
/usr/bin/ld: Warning: size of symbol `ncattinq' changed from 95 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 333 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0x764): In function
`ncattrename':
: multiple definition of `ncattrename'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xe90):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1062:
first defined here
/usr/bin/ld: Warning: size of symbol `ncattrename' changed from 66 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 867 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0xac8): In function `ncattcopy':
: multiple definition of `ncattcopy'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xe08):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1026:
first defined here
/usr/bin/ld: Warning: size of symbol `ncattcopy' changed from 68 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 472 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0xca0): In function `ncattdel':
: multiple definition of `ncattdel'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xed4):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1079:
first defined here
/usr/bin/ld: Warning: size of symbol `ncattdel' changed from 65 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 421 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(attr.o)(.text+0xe48): In function `ncattget':
: multiple definition of `ncattget'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xdc4):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1007:
first defined here
/usr/bin/ld: Warning: size of symbol `ncattget' changed from 66 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 304 in
.././supplibs/lib/libmfhdf.a(attr.o)
.././supplibs/lib/libmfhdf.a(cdf.o)(.text+0x26c): In function `ncinquire':
: multiple definition of `ncinquire'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x6fc):/usr/local/netcdf-3.6.2/libsrc/v2i.c:474:
first defined here
/usr/bin/ld: Warning: size of symbol `ncinquire' changed from 113 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 206 in
.././supplibs/lib/libmfhdf.a(cdf.o)
.././supplibs/lib/libmfhdf.a(dim.o)(.text+0xc0): In function `ncdimdef':
: multiple definition of `ncdimdef'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x7e0):/usr/local/netcdf-3.6.2/libsrc/v2i.c:531:
first defined here
/usr/bin/ld: Warning: size of symbol `ncdimdef' changed from 81 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 621 in
.././supplibs/lib/libmfhdf.a(dim.o)
.././supplibs/lib/libmfhdf.a(dim.o)(.text+0x3bc): In function `ncdimid':
: multiple definition of `ncdimid'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x834):/usr/local/netcdf-3.6.2/libsrc/v2i.c:551:
first defined here
/usr/bin/ld: Warning: size of symbol `ncdimid' changed from 65 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 171 in
.././supplibs/lib/libmfhdf.a(dim.o)
.././supplibs/lib/libmfhdf.a(dim.o)(.text+0x468): In function `ncdiminq':
: multiple definition of `ncdiminq'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x878):/usr/local/netcdf-3.6.2/libsrc/v2i.c:570:
first defined here
/usr/bin/ld: Warning: size of symbol `ncdiminq' changed from 82 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 147 in
.././supplibs/lib/libmfhdf.a(dim.o)
.././supplibs/lib/libmfhdf.a(dim.o)(.text+0x4fc): In function `ncdimrename':
: multiple definition of `ncdimrename'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x8cc):/usr/local/netcdf-3.6.2/libsrc/v2i.c:594:
first defined here
/usr/bin/ld: Warning: size of symbol `ncdimrename' changed from 64 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 447 in
.././supplibs/lib/libmfhdf.a(dim.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x12c): In function
`NC_check_id':
: multiple definition of `NC_check_id'
.././supplibs/lib/libnetcdf.a(nc.o)(.text+0xd0):/usr/local/netcdf-3.6.2/libsrc/nc.c:68:
first defined here
/usr/bin/ld: Warning: size of symbol `NC_check_id' changed from 50 in
.././supplibs/lib/libnetcdf.a(nc.o) to 59 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x364): In function `nccreate':
: multiple definition of `nccreate'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x5cc):/usr/local/netcdf-3.6.2/libsrc/v2i.c:400:
first defined here
/usr/bin/ld: Warning: size of symbol `nccreate' changed from 65 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 58 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x3a0): In function `ncopen':
: multiple definition of `ncopen'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x610):/usr/local/netcdf-3.6.2/libsrc/v2i.c:414:
first defined here
/usr/bin/ld: Warning: size of symbol `ncopen' changed from 65 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 58 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x3dc): In function `ncsync':
: multiple definition of `ncsync'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x770):/usr/local/netcdf-3.6.2/libsrc/v2i.c:500:
first defined here
/usr/bin/ld: Warning: size of symbol `ncsync' changed from 56 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 434 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x590): In function `ncabort':
: multiple definition of `ncabort'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x7a8):/usr/local/netcdf-3.6.2/libsrc/v2i.c:514:
first defined here
/usr/bin/ld: Warning: size of symbol `ncabort' changed from 56 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 531 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x7f4): In function `ncredef':
: multiple definition of `ncredef'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x654):/usr/local/netcdf-3.6.2/libsrc/v2i.c:428:
first defined here
/usr/bin/ld: Warning: size of symbol `ncredef' changed from 56 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 763 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x121c): In function `ncendef':
: multiple definition of `ncendef'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x68c):/usr/local/netcdf-3.6.2/libsrc/v2i.c:441:
first defined here
/usr/bin/ld: Warning: size of symbol `ncendef' changed from 56 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 128 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x129c): In function `ncclose':
: multiple definition of `ncclose'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0x6c4):/usr/local/netcdf-3.6.2/libsrc/v2i.c:454:
first defined here
/usr/bin/ld: Warning: size of symbol `ncclose' changed from 56 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 304 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(file.o)(.text+0x13cc): In function `ncsetfill':
: multiple definition of `ncsetfill'
.././supplibs/lib/libnetcdf.a(v2i.o)(.text+0xf18):/usr/local/netcdf-3.6.2/libsrc/v2i.c:1098:
first defined here
/usr/bin/ld: Warning: size of symbol `ncsetfill' changed from 72 in
.././supplibs/lib/libnetcdf.a(v2i.o) to 348 in
.././supplibs/lib/libmfhdf.a(file.o)
.././supplibs/lib/libmfhdf.a(globdef.o)(.data+0x4): multiple definition
of `ncopts'
.././supplibs/lib/libnetcdf.a(v2i.o)(.data+0x0):/usr/local/netcdf-3.6.2/libsrc/v2i.c:80:
first defined here
.././supplibs/lib/libmfhdf.a(globdef.o)(.bss+0x0): multiple definition
of `ncerr'
.././supplibs/lib/libnetcdf.a(v2i.o)(.bss+0x0):/usr/local/netcdf-3.6.2/libsrc/v2i.c:80:
first defined here
.././supplibs/lib/libjasper.a(jas_stream.o)(.text+0x2b3): In function
`jas_stream_tmpfile':
/usr/local/degrib-1.84/src/jpeg2000/src/libjasper/base/jas_stream.c:414:
warning: the use of `tmpnam' is dangerous, better use `mkstemp'
collect2: ld returned 1 exit status
make[2]: *** [grads] Error 1
make[2]: Leaving directory `/usr/local/grads-2.0.a1/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/grads-2.0.a1/src'
make: *** [all-recursive] Error 1
Oliver König wrote:
> Hello
> COLA/IGESA says at: http://sidata.org/grads/gadoc/supplibs.htm
> "Be sure to use the --disable-netcdf configure option when building for GrADS
> version 2.0."
>
> I tried:
> ./configure --with-netcdf=no
> ./configure --disable-netcdf
> ./configure --without-netcdf
>
> None of that worked and the configuration summary always says:
> + netcdf enabled
>
> Is it really necessary to disable netcdf for grads 2.0 and if so how do I do
> it?
>
> Thanks,
> --
> Oliver König
>
>
More information about the gradsusr
mailing list