X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 14DCC3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1680639266; bh=KDSvWpfB3nWn/YzlVoBXmTROOJmZjNrEgo5wsOGl1MM=; 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=vfxx2krk3AIAkjN7Rl+zkPrqMe6HYzLXIl4xf3266KKXDht8WIzWWE9K+CWTXtE03 XWphKWV01j7TXAGeXobBcNYpMM489YIjMfQjIKPalSXYIhv5IVWOJRLyum95ArLu0J ymb6dcq0EiKozNCcC2qrRLR980M9lwywCnTJfPdM= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 978AE3858C52 X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=642c84fc a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=VnNF1IyMAAAA:8 a=7392p9bmP1SmsWvOWsUA:9 a=QEXdDO2ut3YA:10 Message-ID: Date: Tue, 4 Apr 2023 14:13:47 -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: X-CMAE-Envelope: MS4xfMP5N/mFJdsbMy0VcdFGUHfQ5GG8tG4xsLyz4JlaYgVdRRXGgPILSVqJsdkT8en3W2OyMfhu0APnch8wKx8O+7a+toI0W4SG5GfRyVtEti+sEp08pspW fE3YbSfuO78fSHinY3fkRjTi7ginjgKX9u5nOmuQiInQUmo1bQV91W4qv8tXquc4QhS2qlobKKEHyo7Xt0/Y/cjEbRgPR9dqu89EH9RBX8BSBV0eOB7fedEv 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 334KEpGg005228 On 2023-04-04 13:55, Brian Inglis via Cygwin wrote: > 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. Or not: https://www.ibm.com/docs/en/db2/11.5?topic=compilers-c -- 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