#2 Solaris 8 install

closed-postponed
None
5
2002-07-04
2002-05-16
Anonymous
No

Hi All,
I am having trouble getting NCO installed
under solaris 8. I downloaded and installed the
latest NetCDF, installed pvmgetarch, and set up
the environment variables to point to my netcdf
installation. It tries to build, but I get errors
relating to nameser_compat.h:

gcc -ansi -DSUN4SOL2 -DNO_NETCDF_2
-DVERSION='20020516' -DHOSTNAME=''
-DUSER='root' -I/bemsha/work2/netcdf-3.5.0/include
-U_OPENMP -O2 -c
../src/nco/csz.c -o ../obj/csz.o
In file included from /usr/include/arpa/nameser.h:582,
from ../src/nco/csz.c:56:
/usr/include/arpa/nameser_compat.h:94: parse error
before string
constant
make: *** [../obj/csz.o] Error 1

Upon reading this header, I decided it didn't know
the byte order, so I put a

#define BYTE_ORDER BIG_ENDIAN

and I got a little farther:

gcc -ansi -DSUN4SOL2 -DNO_NETCDF_2
-DVERSION='20020516' -DHOSTNAME=''
-DUSER='root' -I/bemsha/work2/netcdf-3.5.0/include
-U_OPENMP -O2 -c
../src/nco/csz.c -o ../obj/csz.o
In file included from /usr/include/arpa/nameser.h:582,
from ../src/nco/csz.c:56:
/usr/include/arpa/nameser_compat.h:123: duplicate
member `rd'
/usr/include/arpa/nameser_compat.h:124: duplicate
member `tc'
/usr/include/arpa/nameser_compat.h:125: duplicate
member `aa'
/usr/include/arpa/nameser_compat.h:126: duplicate
member `opcode'
/usr/include/arpa/nameser_compat.h:127: duplicate
member `qr'
/usr/include/arpa/nameser_compat.h:129: duplicate
member `rcode'
/usr/include/arpa/nameser_compat.h:130: duplicate
member `cd'
/usr/include/arpa/nameser_compat.h:131: duplicate
member `ad'
/usr/include/arpa/nameser_compat.h:132: duplicate
member `unused'
/usr/include/arpa/nameser_compat.h:133: duplicate
member `ra'
make: *** [../obj/csz.o] Error 1

I have gnu make and have not modified the Makefile,
since it looked OK to me.

Regards,
Susanna Gross
please reply to:
sjg@colorado.edu

Discussion

  • Charlie Zender
    Charlie Zender
    2002-05-16

    Logged In: YES
    user_id=6408

    I do not have access to a Solaris 8 platform to figure out
    the problem. I suggest you try adding the -DWIN32 flag
    to the compile line. This should disable the ARPA stuff.
    Let me know how that works

     
  • Logged In: NO

    Indeed, pretending this Sun is a Windows machine did
    permit it to compile. I have not yet been able to
    read the manual, which came in texinfo format only.
    Hopefully that will contain information about how to
    install and test this package. Doing a "make test"
    gave lots of errors.

    Thanks very much for your prompt help!
    Regards,
    Susanna

     
  • Charlie Zender
    Charlie Zender
    2002-05-16

    • status: open --> open-postponed
     
  • Charlie Zender
    Charlie Zender
    2002-07-04

    • assigned_to: nobody --> zender
    • status: open-postponed --> closed-postponed