delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/11/13:04:44

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=w8uCodBTIwsXFosebay23cYis7bA1aGeQVP8ufsx7nB
MSbjsycKgfHHMm4MrnDCc4D5bTOx08C26eOIElufTIHKvIsRG8/NaXt77s+A+Ees
SOQ0D3MJZRludjjAGYeXHmwM68kRvTh1EOrdGkxNxwbGJRZXG89YgvRvMm1h8++o
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=l9zjzWoxFC7c0PvjiW69PEvV1ig=; b=BHJM4AdHoGFdbaWIT
viqat0BWiGIzUBr5slg+S9gv3Pss4h5i2oPNkeREiAs10ChlHq+VDCNw8k96g2Jj
j5LQeWo/8vmj8/8MDNV4ka+Nt2FxuErcsh1e+NrJLQEAkRYQCZm3FsZW6CN+T62N
f8JK3fp20rsQE5JzWSJ1/ic+js=
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=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wg0-f51.google.com
X-Received: by 10.180.74.208 with SMTP id w16mr392014wiv.2.1418321064458; Thu, 11 Dec 2014 10:04:24 -0800 (PST)
Message-ID: <5489DCA4.7040807@gmail.com>
Date: Thu, 11 Dec 2014 19:04:20 +0100
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Building cdo
References: <22C6A8A4889F0C45B71BF3272671822E82026F01 AT SVNSBIOMBX01 DOT ENT DOT dfo-mpo DOT ca>
In-Reply-To: <22C6A8A4889F0C45B71BF3272671822E82026F01@SVNSBIOMBX01.ENT.dfo-mpo.ca>
X-IsSubscribed: yes

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

- Raw text -


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