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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=qRu2Q4yXz4txVQXI nDK8al5/E+usysdZqRXik+Dytz7TYCRo5FZJ0z1eGFfc3eLUCTlCplZqHA8QOC3z e3FxVUAyJLuX8CB3KMBbr+NtyFSrULy1x6px9B9WnjYvApCmZMf1VX2GTLUX5EhT WxfpiX3il1tAEiZyeHr1mDKlaaQ= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=aa9vxOKS5+2jlL5sOjuUKR tUnCg=; b=AkRToiLbfb3EE6+qmWYJ7T1RCGiZpZV11Mf6I8PwdNoa72ppl+2HzZ jupoNjnRsqYsmAIBUvZdorW6qbYxxEOkmikF5bI/wDgqPmlI0tEZLaMWiJmVc0l0 pHXQDciHVQNr5mPyMkhL9FcWVYEcphvOsu06zWYin8j6PZC8zKfpA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FOREIGN_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.1 spammy=auf, diese, HX-Received:448b, wurde X-HELO: mail-wm1-f42.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=3Byqnx6/trsGmANnAn4CwyM7DdCzvnURiSLRo1ve5YY=; b=CHrOIzq8rD6HOpUEAsTfvgZTFSzd/5O5JVWTh1aUsPX6jFfSkA8VROATn4KZIP3V2E v1JOosTOaDXzet1Zd4BoQ640CsavgEdEMIcdC2Cz1pvsvRdJdUP87PH2xDoSH+yc6zpZ ARxfjQDqHBzISzyujB8G/YJz4l2t+OKEvDfGbRNWw6CfR0HkMG1X6i9Y8zkJbQYp5zis zBZYdWslDS+prU0fSCkTq5A+gKUgZ8UaNxpOkrDLxJiOzWHeNTj13rAyP4d4Mcb6Fzqn Q/5xOcvpzlkcta/TBfeEw/mrrwMks8qwz3ySzU6Vp+nzvFIGnw+ATxNWcLgru8KyJE8y o7LA== Subject: Re: Compile gsoap as shared library - undefined references To: cygwin AT cygwin DOT com References: From: Marco Atzeri Message-ID: <378469b3-97de-b0bb-6664-d6f9db0dc8ee@gmail.com> Date: Mon, 1 Jul 2019 14:47:18 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x61Cm2NG021764 Am 01.07.2019 um 11:09 schrieb Wilhelm Eger: > Hello there! > > This is my first post to the cygwin mailing list. Hence, I hope, this > is the right place to post my problem. It seems to be a mixture of > packaging / compiling / linking / porting problem. However, I was > thinking that starting in this list is more appropriate than in e.g. > the packagers list. > > I would like to compile gsoap as a shared library to use it in another > project (kopano-core). Please note that static linking works fine. > However, I would like to achieve a shared library of gsoap. gsoap > itself provides only static compilation. However, the major > distributions deliver it as shared library. That's where I have > started: > > gSoap: https://sourceforge.net/projects/gsoap2/ > OpenSuse Patches for shared library: > https://build.opensuse.org/package/show/home:mrbadguy/gsoap > > Please find my respective patches plus cygport package attached to this mail. > > Unfortunately, the package does not build. In fact, it fails at > linking the shared library due to undefined references. Please not > that I have updated the OpenSuse patches by adding '-no-undefined' to > the libtool chain. Further, I have added 'mcmodel=large' to the CFLAGS > to work around relocation problems. > > Still, undefined references are found: > /bin/sh ../libtool --tag=CC --mode=link gcc -mcmodel=large > -DCYGWIN -ggdb -O2 -pipe -Wall -Werror=format-security > -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong > --param=ssp-buffer-size=4 -D_GNU_SOURCE -Wno-attributes > -fdebug-prefix-map=/home/eger/gsoap-shared/gsoap-2.8.84-1.x86_64/build=/usr/src/debug/gsoap-2.8.84-1 > -fdebug-prefix-map=/home/eger/gsoap-shared/gsoap-2.8.84-1.x86_64/src/gsoap-2.8=/usr/src/debug/gsoap-2.8.84-1 > -release 2.8.84 -Wl,--version-script=gsoap.sym -no-undefined -o > libgsoap.la -rpath /usr/lib libgsoap_la-stdsoap2.lo libgsoap_la-dom.lo > libtool: link: gcc -shared .libs/libgsoap_la-stdsoap2.o > .libs/libgsoap_la-dom.o -mcmodel=large -ggdb -O2 > -fstack-protector-strong -Wl,--version-script=gsoap.sym -o > .libs/cyggsoap-2-8-84.dll -Wl,--enable-auto-image-base -Xlinker > --out-implib -Xlinker .libs/libgsoap.dll.a > .libs/libgsoap_la-stdsoap2.o:stdsoap2.c:(.rdata$.refptr.soap_fault_detail[.refptr.soap_fault_detail]+0x0): > undefined reference to `soap_fault_detail' which library provide soap_fault_detail ? Maybe the package will build multiple dlls and you need to add the dependencies ? Marco --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft. https://www.avast.com/antivirus -- 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