X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60807385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1680638170; bh=sCf9OI6DQSNH8ex1gWEmEtd4hOLR99KYQ25jvmQM44E=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=gSZGgur+HO9hlGlg4D3tFTYiGvvkvt8jJAROdJ06ayA8yr1COqO2xa9MvYCdspRsV 5p0vQ76Ka1jYqIRGiL3ciwPBUZanQc0akxtboYHHburP6hw7PdGoEGakI1Kpm5BwxC p3NCITG6xq88yk2WAvjU3iV7EcARUSKVqLfsjLXw= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B50133858C52 X-Authority-Analysis: v=2.4 cv=e5oV9Il/ c=1 sm=1 tr=0 ts=642c80c9 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=7392p9bmP1SmsWvOWsUA:9 a=QEXdDO2ut3YA:10 Message-ID: Date: Tue, 4 Apr 2023 13:55:53 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: Getting Error while connect to DB2 from Cygwin 64-bit Content-Language: en-CA To: cygwin AT cygwin DOT com References: <1241716147 DOT 20230404105439 AT yandex DOT ru> Organization: Inglis In-Reply-To: <1241716147.20230404105439@yandex.ru> X-CMAE-Envelope: MS4xfGOL9t0cERNXpaSTcebJvEDlUUdIlkqloi3uKA3R/nQffOKB26JwWs82JqgkfFr1+OjA455jKnIWzu4ZnL7HMVraBK84Og6I0G95dy1Qqb2QP01r7BN1 Dm5+EhK4QzOBUJvdhl9CSb7Juz/BVfYI9Is/iKUtMACQJ/ItJLOM0nwpr14MG/1mDe/g5syGWXKA1eu0+jVINaCmD8WSGoCuE8KIQE3lwEXR5Nm+IvqBJLCe X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis , rajesh kesavan Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 334JuWLX001945 On 2023-04-04 01:54, Andrey Repin wrote: >> I'm getting below errors while trying to connect IBM DB2 from 64-bit >> Cygwin. Please find the below mentioned details. > >> 1)Trying to compile the program using DB2_LIBRARY="C:/Program >> Files/IBM/SQLLIB/lib/db2api.lib" on 64-bit Cygwin. > > Is this a Cygwin or native target binary? > >> *ERROR:* >> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: *internal >> error:* aborting at >> /mnt/share/cygpkgs/binutils/binutils.x86_64/src/binutils-2.40/ld/ldlang.c:527 >> in compare_section >> /usr/lib/gcc/x86_64-pc-cygwin/11/../../../../x86_64-pc-cygwin/bin/ld: *please >> report this bug* > It seems to me you are trying to mix Cygwin and native Windows code. > Don't do that without a very, very good understanding of implications. > If you are building using binary code provided by 3rd party vendor, > chances are high you are looking at native code and you have to use mingw32 > cross-compiler for that build. Presumably these are Windows libraries so you liekly have to use Mingw binutils mingw64-x86_64-binutils /usr/x86_64-w64-mingw32/bin/ and mingw64-x86_64-gcc-core /usr/lib/gcc/x86_64-w64-mingw32/11/ packages under their respective paths, after reading up more about how to use them. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple