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: Don Hayward <address@hidden> >Organization: Mote Marine Laboratory >Keywords: 199508301834.AA27836 netCDF Solaris 2.4 gcc Hi Don, > I'm using gcc 2.7.0 , gnu make 3.74 on sunos5.4. make all fails on some > functions. I've included the output below. Any help will be appreciated. ... > gcc -traditional -O -c -I. -DNDEBUG -Dconst= -DNO_STDARG -O uddummy.c The compiler flags seem to be all wrong for gcc. When I run the "configure" script with the environment variable CC set to gcc, the Makefiles are created to invoke the compiler with: gcc -O -c -I. -DNDEBUG -O uddummy.c and the "make all" runs to completion with no errors. I'm using gcc 2.6.3 on sunos 5.4 with the standard make in /usr/ccs/bin/make. I doubt that the differences between gcc 2.7.0 and gcc 2.6.3 have anything to do with the problem you are seeing. Did you run the "configure" script to create the Makefiles? Did you first instruct the "configure" script to use gcc by either setting the CC environment variable or editing the CUSTOMIZE file, as instructed in the INSTALL document? Do you have any other environment variables set that might change the way programs are compiled? If none of these questions lead to a resolution of the problem, we will need to see the config.status file created when you run the "configure" script to try to diagnose the problem. ______________________________________________________________________________ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu