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.
>From: Steve Ochani <address@hidden> >Organization: SUNY Nassau >Keywords: 200402182003.i1IK3BrV028667 McIDAS-X SuSe 9.0 libsdi.a make Steve, >Thanks for your response. > >I tried the following after getting the previously mentioned error when >building with g77. > > mcidas2003/src> touch BitUtil.o Bk11Data.o crc16.o GVAR.o m0tenoff.o MSAT.o N > CDF.o >nexrutil.o POES.o SDIConv.o SDIUtil.o TIP.o servutil.o > mcidas2003/src> make libsdi.a >update libsdi.a: done > > >then > > mcidas2003/src> make all For reference, this should have been: make all VENDOR=-g77 >########################################## >Wed Feb 18 17:00:28 EST 2004: BUILD BEGIN >########################################## > >compile giniutil.c: done >update libmcidas.a: done >link decoder: FAILED (See '/home/mcidas/mcidas2003/src/makel > og' for details.) > >make: *** [decoder] Error 1 > > >then > > > mcidas2003/src> tail -15 makelog > >./mccomp -O -g77 -I. -I../netcdf/libsrc -I../hdf/hdf/src -I../hdf/mfhdf/libsrc > -I../jpeg -I../zlib -c >giniutil.c >mccomp: Using default optimizations >rm -f giniutil.o >gcc -c -I/usr/X11R6/include -O -I. -I../netcdf/libsrc -I../hdf/hdf/src -I../hd > f/mfhdf/libsrc -I../jpeg - >I../zlib giniutil.c >compile giniutil.c: done >./mcar libmcidas.a giniutil.o >update libmcidas.a: done >./mccomp -O -s -g77 -o decoder decoder.o -L. -lsdi -lmcidas >mccomp: Using default optimizations >g77 -s -O -o decoder decoder.o -L. -L/usr/X11R6/lib -lsdi -lmcidas -ldl -lm >decoder.o(.text+0x1592): In function `end_of_line': >: undefined reference to `wnvblk_' >collect2: ld returned 1 exit status >link decoder: FAILED > > >Is this a problem with Bk11Data.o now? Yes. wnvblk_ is a routine contained in Bk11Data.c. The fact that ld is complaining about an undefined reference to wnvblk_ seems to say that Bk11Data.o was not added to libsdi.a. Try adding it by hand, running ranlib, and then retry the make: cd mcidas2003/src ar r libsdi.a Bk11Data.o ranlib libsdi.a make all VENDOR=-g77 Cheers, Tom -- NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publically available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.