delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/04/04/03:04:10

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 390C538768B1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1680591809;
bh=bJyDte+ZAbxBTwtJX5vFDCsN4XAdtm0N+o3yGe2Kg08=;
h=Date:Subject:To:Cc:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=pLUULSokJ5R4za8ETlJMwUIcBVCUVqvY0NsfuDo3frmLW3oVJYd9aWLoolmg1f+ks
3TGiDXk6Rt9JDHNORfZgXfvBrPNDMvPoPo1kzgzJBRrcq4GYW9WdhW5KBELrG/TSle
SfthJ0nTCWbNeURZB0PJ/2HAkb2p7dyTeWOImxug=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 84D8D38708F8
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
Date: Tue, 4 Apr 2023 12:32:51 +0530
Message-ID: <CADcTMCZ7wrMdk8yFEEvE2TPk9JzMtWLcL1cF3zUd_a6dVXnD0g@mail.gmail.com>
Subject: Getting Error while connect to DB2 from Cygwin 64-bit
To: cygwin AT cygwin DOT com, cygwin-owner AT cygwin DOT com, mailman AT cygwin DOT com,
cygwin-developers AT cygwin DOT com, cygwin-developers-owner AT cygwin DOT com
Cc: aashishchavan AT yahoo DOT com, sivaji DOT cdev AT gmail DOT com, atulpathare226 AT gmail DOT com
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
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: rajesh kesavan via Cygwin <cygwin AT cygwin DOT com>
Reply-To: rajesh kesavan <rajeshrube AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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.

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019