public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@Shaw.ca>
To: cygwin@cygwin.com
Cc: rajesh kesavan <rajeshrube@gmail.com>
Subject: Re: Getting Error while connect to DB2 from Cygwin 64-bit
Date: Tue, 4 Apr 2023 13:55:53 -0600	[thread overview]
Message-ID: <cbebf4ed-3c11-0c72-d17c-241b60bdac10@Shaw.ca> (raw)
In-Reply-To: <1241716147.20230404105439@yandex.ru>

On 2023-04-04 01:54, Andrey Repin wrote:
>> 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.

Presumably these are Windows libraries so you liekly have to use Mingw binutils 
mingw64-x86_64-binutils /usr/x86_64-w64-mingw32/bin/ and mingw64-x86_64-gcc-core 
/usr/lib/gcc/x86_64-w64-mingw32/11/ packages under their respective paths, after 
reading up more about how to use them.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

  reply	other threads:[~2023-04-04 19:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-04  7:02 rajesh kesavan
2023-04-04  7:54 ` Andrey Repin
2023-04-04 19:55   ` Brian Inglis [this message]
2023-04-04 20:13     ` Brian Inglis

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=cbebf4ed-3c11-0c72-d17c-241b60bdac10@Shaw.ca \
    --to=brian.inglis@shaw.ca \
    --cc=cygwin@cygwin.com \
    --cc=rajeshrube@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).