From: John Ling <jling@bioinformatics.ubc.ca>
To: David Edelsohn <dje@watson.ibm.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Linking on AIX
Date: Wed, 17 Aug 2005 17:45:00 -0000 [thread overview]
Message-ID: <4303779B.6090300@bioinformatics.ubc.ca> (raw)
In-Reply-To: <200508161902.j7GJ2Pd33498@makai.watson.ibm.com>
Ok having attempted to build both static and shared was the problem. I
opted to build only static by configuring with --disable-shared and so I
believe it build the static version of the library. Now when I do an
'ar tv' on my static library I get nothing returned. Is this normal?
Unfortunately, when I try to compile using this library I get the following:
g++ -g -O2 -o bin/ac2gi atlas/cpp/src/apps/ac2gi.o
lib/.libs/libseqget.a /usr/local/mysql/lib/libmysqlclient.a
/flash/home/jling/install/lib/libubic.a -lz
collect2: /flash/home/jling/install/lib/libubic.a: not a COFF file
make: *** [bin/ac2gi] Error 1
What does it take to get that library into COFF format?
Thank You,
John Ling
David Edelsohn wrote:
>>>>>>John Ling writes:
>
>
> John> I tried "ar tv" on libubic.a and I get what I think is correct:
>
> John> rwxr-xr-x 1409/105 7391044 Aug 16 10:59 2005 libubic.so.0
> John> rw-r--r-- 1409/105 210082 Aug 02 10:56 2005 Fasta.o
> John> rw-r--r-- 1409/105 293687 Aug 02 10:56 2005 FastaLoader.o
> John> rw-r--r-- 1409/105 332056 Aug 02 10:56 2005 Dbrc.o
> John> rw-r--r-- 1409/105 237825 Aug 02 10:56 2005 MysqlDb.o
> John> rw-r--r-- 1409/105 309442 Aug 02 10:56 2005 Tax.o
> John> rw-r--r-- 1409/105 69525 Aug 02 10:56 2005 TaxonIdName.o
> John> rw-r--r-- 1409/105 93349 Aug 02 10:56 2005 TaxGet.o
> John> rw-r--r-- 1409/105 648 Aug 02 10:56 2005 Tclap.o
> John> rw-r--r-- 1409/105 265350 Aug 02 10:56 2005 Stats.o
> John> rw-r--r-- 1409/105 81579 Aug 02 10:56 2005 StatsDb.o
>
> This is incorrect. It looks like the library contains both shared
> object and static objects. You should build one other the other, not
> both.
>
> John> Yet, libubic.a remains in the hidden directory lib/.libs which I would
> John> have expected to have been included with the installed library
> John> libubic.a. This seems odd to me and make me wonder how libubic.a can
> John> find this .so file. I tried to copy it into the install directory along
> John> with the installed libubuic.a but without any change to my linking problem.
>
> Your actions are incorrect. Do not install the .so file. The .so
> file should be archived, as is occurring.
>
> John> Also in this hidden directory is libubic.exp. A good chunk of this file
> John> contains names prepended with underscores, such as
> John> "_Allocate__3stdHc_UlPc_Pc", but there are other names without an
> John> underscore such as "TaxonId__11TaxonIdNameCFv".
> John> Is this the export list that you suggest I modify/create?
>
> If the export file already is being created, that's fine. The
> problem may be the two different objects in the archive. You probably
> should use --disable-shared or --disable-static when configuring libtool.
>
> David
>
next prev parent reply other threads:[~2005-08-17 17:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-15 21:36 John Ling
2005-08-16 3:35 ` David Edelsohn
2005-08-16 17:42 ` John Ling
2005-08-16 17:54 ` David Edelsohn
2005-08-16 18:35 ` John Ling
2005-08-16 19:02 ` David Edelsohn
2005-08-17 17:45 ` John Ling [this message]
2005-08-17 17:48 ` David Edelsohn
2005-08-18 19:16 ` John Ling
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=4303779B.6090300@bioinformatics.ubc.ca \
--to=jling@bioinformatics.ubc.ca \
--cc=dje@watson.ibm.com \
--cc=gcc-help@gcc.gnu.org \
/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).