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 , cygwin AT cygwin DOT com Subject: Re: Getting Error while connect to DB2 from Cygwin 64-bit In-Reply-To: References: 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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