From: rajesh kesavan <rajeshrube@gmail.com>
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
Subject: Getting Error while connect to DB2 from Cygwin 64-bit
Date: Tue, 4 Apr 2023 12:32:51 +0530 [thread overview]
Message-ID: <CADcTMCZ7wrMdk8yFEEvE2TPk9JzMtWLcL1cF3zUd_a6dVXnD0g@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1872 bytes --]
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.
reply other threads:[~2023-04-04 7:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADcTMCZ7wrMdk8yFEEvE2TPk9JzMtWLcL1cF3zUd_a6dVXnD0g@mail.gmail.com \
--to=rajeshrube@gmail.com \
--cc=aashishchavan@yahoo.com \
--cc=atulpathare226@gmail.com \
--cc=cygwin-developers-owner@cygwin.com \
--cc=cygwin-developers@cygwin.com \
--cc=cygwin-owner@cygwin.com \
--cc=cygwin@cygwin.com \
--cc=mailman@cygwin.com \
--cc=sivaji.cdev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).