www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/07/20:49:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-YMail-OSG: p.ENXI0VM1kPjXlP5O3UbEN111ntbU5Xq.XP7JQyShOmZNGCsvjMFSqD96bw9lwB0Ct8JUKZ1Dw2twG7ydyFzawap4DhpZP.ABHj.5.23TRAcO1V__oOC6QHfF1x9Ds-
X-Mailer: YahooMailRC/1096.28 YahooMailWebService/0.7.218.2
Date: Sun, 7 Sep 2008 17:49:07 -0700 (PDT)
From: Michael Rogers <michael_lloyd_rogers AT yahoo DOT com>
Subject: netcdf 4.0 won't build on cygwin
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <459653.39682.qm@web63008.mail.re1.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m880nspB004820

Is there a current working version of netcdf for cygwin?  It isn't in the cygwin packages.  
I downoaded the distribution from unidata and tried to build it. The configure script knew 
about cygwin so I tried to run ./configure and make.  The configure script ran fine but when
I ran "make check", it ran into name conflicts linking the fortran libraries.  I have g95 and 
tried to build with that first by pointing the variable F90 to my g95 compiler. Then I tried 
without that so it defaulted to g77 and still got the same sort of problem.   

Here's the last few lines from the "make check" output when I try making it with the
g95 compiler defined as F90 (Sorry about the long lines, but the "smart questions"
document said to paste in output like this as is) :

.....
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I.. -I../libsrc -g -O2 -MT fort-varsio.lo -MD -MP -MF .deps/fort-varsio.Tpo -c fort-varsio.c -o fort-varsio.o
/bin/sh ../libtool --tag=CC   --mode=link cc  -g -O2   -o libnetcdff.la  fort-attio.lo fort-control.lo fort-dim.lo fort-genatt.lo fort-geninq.lo fort-genvar.lo fort-lib.lo fort-misc.lo fort-v2compat.lo fort-vario.lo fort-var1io.lo fort-varaio.lo fort-varmio.lo fort-varsio.lo  ../f90/libnetcdff90.la 
libtool: link: rm -fr  .libs/libnetcdff.la .libs/libnetcdff.lib
libtool: link: (cd .libs/libnetcdff.lax/libnetcdff90.a && ar x "/usr/local/downloads/netcdf/netcdf-4.0/fortran/../f90/.libs/libnetcdff90.a")
libtool: link: object name conflicts in archive: .libs/libnetcdff.lax/libnetcdff90.a//usr/local/downloads/netcdf/netcdf-4.0/fortran/../f90/.libs/libnetcdff90.a
make[2]: *** [libnetcdff.la] Error 1
make[2]: Leaving directory `/usr/local/downloads/netcdf/netcdf-4.0/fortran'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/usr/local/downloads/netcdf/netcdf-4.0/fortran'
make: *** [check-recursive] Error 1



    

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019