From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from forward500b.mail.yandex.net (forward500b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d500]) by sourceware.org (Postfix) with ESMTPS id AB0353858D1E for ; Tue, 4 Apr 2023 08:05:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB0353858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-main-36.sas.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-36.sas.yp-c.yandex.net [IPv6:2a02:6b8:c08:3d96:0:640:a3cb:0]) by forward500b.mail.yandex.net (Yandex) with ESMTP id 078EF5F0C5; Tue, 4 Apr 2023 11:05:02 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-36.sas.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 05JBVBvDUa60-rma6lgCu; Tue, 04 Apr 2023 11:05:00 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1680595500; bh=JSmJ4q6YTbWoMP63CRUtLQvP2dNpDmlwSAFBSISbd44=; h=In-Reply-To:Subject:Date:References:To:Message-ID:Reply-To:From; b=tIBQ70OTbL3nVqCc0GEfUbq8f/nhprquZ4qI38PUYAQMQj1i0ZduufsKukKd35MK1 P7NkWbclu4ZboPNYmvbpP/KubSpzACupWXsP27wUdOLZWHO+NMrAHpsPTIz0yWvIgE ThCTiin693faHmu8f0408v4MnzboJn55SznjBpVk= Authentication-Results: mail-nwsmtp-smtp-production-main-36.sas.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Tue, 04 Apr 2023 07:54:41 -0000 Date: Tue, 4 Apr 2023 10:54:39 +0300 From: Andrey Repin X-Mailer: The Bat! (v9.3.4) Professional Reply-To: cygwin@cygwin.com Message-ID: <1241716147.20230404105439@yandex.ru> To: rajesh kesavan , cygwin@cygwin.com Subject: Re: Getting Error while connect to DB2 from Cygwin 64-bit In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_THEBAT,NICE_REPLY_A,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: Greetings, rajesh kesavan! > 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. > 3)Compilation is done but getting an error while Trying to connect IBM DB2 > using DB2_LIBRARY="C:/Program Files/IBM/SQLLIB/BIN/db2app64.dll" on 64-bit > Cygwin. > *ERROR:* > sqlcode=*808517647* > This "*sqlcode=808517647*" error code looks like an abnormal error and it > is not present in db2 documents. > *Details:* > $ gcc --version > *gcc (GCC) 11.3.0* > Copyright (C) 2021 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > $ ld --version > *GNU ld (GNU Binutils) 2.40* > Copyright (C) 2023 Free Software Foundation, Inc. > This program is free software; you may redistribute it under the terms of > the GNU General Public License version 3 or (at your option) a later > version. > This program has absolutely no warranty. > Please let me know if you want more details. -- With best regards, Andrey Repin Tuesday, April 4, 2023 10:33:35 Sorry for my terrible english...