delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/04/04/04:06:08

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 332AF385840D
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1680595525;
bh=Rp+eTSGKGjyqx13Ks5XN8HfJq0H8cgYzisQTwGH8VS4=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=pORhdC54LbkrdNOsJ9pHdSNzYrrosiTQL3xYceBQe3Z37bxyiUAxWG18LkYc2aZeS
th/FNQqbFZU0NOysvR36OtFeHc+JMv3aa8ohUsShn6Ox8pekgwdXdzUrMkiH1RlHBm
hjN5Yjf0jM0e8iy3gJBBSQqIgEI7rESZJ9eYj81w=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AB0353858D1E
X-Yandex-Fwd: 1
Date: Tue, 4 Apr 2023 10:54:39 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <1241716147.20230404105439@yandex.ru>
To: rajesh kesavan <rajeshrube AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Getting Error while connect to DB2 from Cygwin 64-bit
In-Reply-To: <CADcTMCZ7wrMdk8yFEEvE2TPk9JzMtWLcL1cF3zUd_a6dVXnD0g@mail.gmail.com>
References: <CADcTMCZ7wrMdk8yFEEvE2TPk9JzMtWLcL1cF3zUd_a6dVXnD0g AT mail DOT gmail DOT com>
MIME-Version: 1.0
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
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Andrey Repin via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Andrey Repin <anrdaemon AT yandex DOT ru>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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


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