From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by sourceware.org (Postfix) with ESMTPS id 84D8D38708F8; Tue, 4 Apr 2023 07:03:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 84D8D38708F8 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52b.google.com with SMTP id cn12so126547782edb.4; Tue, 04 Apr 2023 00:03:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680591783; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=5MFVr+EbowEoLsW1E2tjgg1jZZ6j3BuBRGHs7s5Dz/Q=; b=dpzMDP0/tt5bCIm19ekDLBAUWk9HODOLHbYDvbNjcsomxS28ji8ov5YS4TUK0ZJe1x /iUoJKbEPe/YuuWZNKrKtvoXpSDRy+tQAF4FddNmpXbI9uM0I8GL3mp6tv6A+oSBV8RE eQn09qgtJFsGk8Z4Tuin9Q8hDfUxFlBX8DhhQTBjuZngpZSlek6rofNpytg/aE8lz18g gFQ6TnM6Gbkb/oTNxldDbTylp290QfoheyUMgSO3na6Za+tcfdHinn1jj1OgNS6fVRv9 bLfCva5gGipguuAUXzf0Nc17zN0Uiqf2f79/bQmoJMMrdsxqOUgYQgsPqH1d+au3wI7r d9cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680591783; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5MFVr+EbowEoLsW1E2tjgg1jZZ6j3BuBRGHs7s5Dz/Q=; b=ivndjypfX43w4vcbxjLLMnkkd4zKTxHhn887rly1LDMvePDKWdTfC7bcjEGU2oFQRE osTbOz8MYwO+9z7MMRH2PPsFN+QAcmof3Qz6REWxR9M90xmFfb6i/wVT5Dz3hFSQww+B n3az7SsnuQeKnU2tkX0TjhDzvrJ1KdQHkKic+tuf01/etmOoqghWKFIJ8w9a14DoFo2V rz0PINWfi5UKfcwXA3rqHLS0oOCaD+qyt4QM7NAlhBpFJBp3uPHk98H1cSeH70npr++/ Ktm+NkRLLQrf5+nJMOfKjPYbsa5cXxAN/JjC3XFJP2voRXPd1zDvWZ7nY3ThPdAoqjv0 NZ9A== X-Gm-Message-State: AAQBX9egfkcUpWE5oyDswVY5ld5xDTS8Z5/BLd5q6Agts+HeGMERXUDS TSgMjvRRxY9XYMFOOhS7pmMTlLhzfkqrNHoJk45cRqyo36XG+A== X-Google-Smtp-Source: AKy350aWl04XEu7q0t4aaCOmYcmUJ5DbMq2t9to5RBVKj7aQdTjWTvrom4eF1VthfXYT6CL0p1qBcknXYIks9AB1J3M= X-Received: by 2002:a50:d65a:0:b0:4fc:f0b8:7da0 with SMTP id c26-20020a50d65a000000b004fcf0b87da0mr936994edj.1.1680591782773; Tue, 04 Apr 2023 00:03:02 -0700 (PDT) MIME-Version: 1.0 From: rajesh kesavan Date: Tue, 4 Apr 2023 12:32:51 +0530 Message-ID: Subject: Getting Error while connect to DB2 from Cygwin 64-bit To: cygwin@cygwin.com, cygwin-owner@cygwin.com, mailman@cygwin.com, cygwin-developers@cygwin.com, cygwin-developers-owner@cygwin.com Cc: aashishchavan@yahoo.com, sivaji.cdev@gmail.com, atulpathare226@gmail.com Content-Type: multipart/alternative; boundary="00000000000039895505f87d4425" X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,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: --00000000000039895505f87d4425 Content-Type: text/plain; charset="UTF-8" Hi, 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. *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* 2)When Trying to compile using DB2_LIBRARY="C:/Program Files/IBM/SQLLIB/lib/Win32/db2api.lib" on 64-bit Cygwin. *ERROR:* undefined reference to `sqlacall' undefined reference to `sqlastop' undefined reference to `sqlaaloc' undefined reference to `sqlasetdata' undefined reference to `sqlastrt' [*Note :* the same is working fine on 32 bit Cygwin using DB2_LIBRARY="C:/Program Files/IBM/SQLLIB/lib/Win32/db2api.lib"] 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. Thanks and Regards, Rajesh K. --00000000000039895505f87d4425--