From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id 978AE3858C52 for ; Tue, 4 Apr 2023 20:13:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 978AE3858C52 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id jiLEpqTD1uZMSjn2KpyLKz; Tue, 04 Apr 2023 20:13:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1680639228; bh=/v2dBaq/E8EmSIV4jnhDIPt00vVJnuQRschv4yHixjU=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To; b=vsmpRTxic7HxFLFu/6t8mPZkl491HDa7szuUc/zyXyZYhCHheLJZQpmaYqbhh3kqI UUYo4PH67SDsKQqyN/8HKYp/D9a2nc+TokfgdvbyvIqLYHCgkpsr5/0cmyUO8aTpvQ tgYtfKsVfrUViNr78OaigmNzRiD/g15zT8qtKjdkiGn087QqgUDxWyyJoDFg3nPw3u wbA93B3HQ/Xod0kuC6I0tGUqE4S48FtWsTmEYnOJY9lU6EcadcV1UfuOWUruQpxdG8 5aAlBcRhoUSEeapuhuSwmaK9Ie7mtJo1f6JzRiQc1Hb2CD6YoVAOeD1IjHdHINi9Wn PTYNXz4fX011A== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id jn2Jp7y5gcyvujn2JpmZ5R; Tue, 04 Apr 2023 20:13:48 +0000 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 Reply-To: cygwin@cygwin.com Subject: Re: Getting Error while connect to DB2 from Cygwin 64-bit Content-Language: en-CA To: cygwin@cygwin.com Cc: rajesh kesavan References: <1241716147.20230404105439@yandex.ru> From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 List-Id: 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