delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/11/12:32:10

X-Recipient: archive-cygwin AT delorie DOT 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:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=jyB
KqcY9WUlBBDV7wwFPfYWpIGybPyqQOfxezu/NJQ4/fF/X/2ZGB6COAAzVWSv4VD9
n0jJHXfkHGkV/wh6iLc8dkqXWr3lISXumgePNb39En4TmbhCEjEz4Wx5+3s6EGcL
IsZ1HULWX8Mlrpg1SEQuSmAIG7PzEurCxxlf/9Sg=
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:content-type
:content-transfer-encoding:mime-version; s=default; bh=UuOwgkLLL
o10LZEVJzH5zxQzU/k=; b=RcOlX5yd1G1gtXPJf6pf21e8tiYa9cBvWNCSAsMtk
3QFXfI4LKF2c1q+apc0rWYnjCG7uUuH+dPm/wOjFl+p4xoZLl1msgNkvnL0R2Qkp
bAGbF/tmL/PhO1CEkUBkLophxeDqtkJXqE9xvnuUh4PFDX8KHBupaCI81YYArbjo
Bw=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: VSNSBIODMZEDG01.DFO-MPO.GC.CA
From: "DeTracey, Brendan" <Brendan DOT DeTracey AT dfo-mpo DOT gc DOT ca>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Building cdo
Date: Thu, 11 Dec 2014 17:31:41 +0000
Message-ID: <22C6A8A4889F0C45B71BF3272671822E82026F01@SVNSBIOMBX01.ENT.dfo-mpo.ca>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sBBHW3xt011219

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? How do I do this and where do I put the final libsz.dll and corresponding libsz.dll.a?

Pointing me to any documentation would be appreciated. All I have found is Building and Using DLL's in the Cygwin users manual.

Thanks,
Brendan

--
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


- Raw text -


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