X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=tr9zhAHm9dX3NAEczMoo1Atm6r9gY
	fwq7yY+3Ni6RejyzxwcEPevuHSb0cXMzitoe5kv2H8hcsRqMN0/a643UFGFm7NUg
	MjzfWLHxjbz8vV/lfUfxK3DABZrynEH6BvMLZZW5lFCDL4Qmo1Gbz9QKJZ9Z8IkW
	22AD2XD1VZ/JoU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=MJOr4pzSBtdqkh/6yjfvB6god1w=; b=bmy
	iMztslce0/IV1mNkP0OU7Pa7VZrcmKc0I5jqFR1P/kTiGvgcpdXAs0hfT31UctBx
	qdLXtkPqNaF8RJsOZ1/mwQn1p0+q1HJ/AhzgBx21s5c8CWtMT3Y3ZIggk+2KZp13
	NZ/Eh94qLG2E1FJ6CtCa1Gk37fszOCF5DqtwGX10=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2
X-HELO: VSNSBIODMZEDG01.DFO-MPO.GC.CA
From: "DeTracey, Brendan" <Brendan.DeTracey@dfo-mpo.gc.ca>
To: Marco Atzeri <marco.atzeri@gmail.com>,
        "cygwin@cygwin.com"	<cygwin@cygwin.com>
Subject: RE: Building cdo
Date: Thu, 11 Dec 2014 18:45:31 +0000
Message-ID: <22C6A8A4889F0C45B71BF3272671822E82026F55@SVNSBIOMBX01.ENT.dfo-mpo.ca>
References: <22C6A8A4889F0C45B71BF3272671822E82026F01@SVNSBIOMBX01.ENT.dfo-mpo.ca> <5489DCA4.7040807@gmail.com>
In-Reply-To: <5489DCA4.7040807@gmail.com>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sBBJ67a5019733

Thanks Marcos
I tried re-running the cdo make and it still picked up libsz.la
Will re-running configure automatically pick up the shared instead of the static? 

> -----Original Message-----
> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On
> Behalf Of Marco Atzeri
> Sent: December-11-14 2:04 PM
> To: cygwin@cygwin.com
> Subject: Re: Building cdo
> 
> 
> On 12/11/2014 6:31 PM, DeTracey, Brendan wrote:
> > Hi,
> >
> > I am trying to build cdo (https://code.zmaw.de/projects/cdo) from source and
> have a common problem:
> > *** Warning: This system can not link to static lib archive
> /usr/local/lib/libsz.la.
> > *** I have the capability to make that library automatically link in
> > when
> > *** you link to this library.  But I can only do this if you have a
> > *** shared version of the library, which you do not appear to have.
> >
> > I looked at my build of libsz (from hdf's szip
> http://www.hdfgroup.org/HDF5/release/obtain5.html#extlibs ) and even though
> I specified --enable-shared it did not build the shared libraries. Why is this?
> >
> > I looked at libsz.la and manually built a dll from the object files:
> > gcc -shared -o libsz.dll rice.o sz_api.o encoding.o but copying the
> > resulting libsz.dll to /use/local/lib is not enough for the cdo build
> > to recognize it as the shared library. It still tries to link to libsz.la Do I need
> *.dll.a for libsz?
> 
> yes
> 
> 
> > How do I do this and where do I put the final libsz.dll and corresponding
> libsz.dll.a?
> 
> gcc -shared -Wl,--enable-auto-import -Wl,--enable-auto-image-base \
>     -o cygsz.dll -Wl,--out-implib=libsz.dll.a  \
>      rice.o sz_api.o encoding.o
> 
> cygsz.dll     in /usr/local/bin
> libsz.dll.a   in /usr/local/lib
> 
> 
> > Pointing me to any documentation would be appreciated. All I have found is
> Building and Using DLL's in the Cygwin users manual.
> 
> same as reported
> https://cygwin.com/cygwin-ug-net/dll.html#dll-build
> 
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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


