From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] db4.7-devel-static
Date: Tue, 19 May 2009 02:33:53 +0400
Message-ID: <20090518223353.GG22303@wo.int.altlinux.org> (raw)
In-Reply-To: <200905190128.42567.ledest@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1413 bytes --]
On Tue, May 19, 2009 at 01:28:42AM +0300, Led wrote:
> On Tuesday, 19 May 2009 01:25:50 Dmitry V. Levin wrote:
> > On Mon, May 18, 2009 at 11:03:32PM +0300, Led wrote:
> > > /usr/bin/ld:
> > > /usr/lib64/gcc/x86_64-alt-linux/4.4.0/../../../../lib64/libdb-4.7.a(db_er
> > >r.o): relocation R_X86_64_32 against `a local symbol' can not be used when
> > > making a shared object; recompile with -fPIC
> > > /usr/lib64/gcc/x86_64-alt-linux/4.4.0/../../../../lib64/libdb-4.7.a:
> > > could not read symbols: Bad value
> > > collect2: ld returned 1 exit status
> > >
> > > Это бага в сборке db4.7 или нужно как-то по-другому использовать
> > > libdb-4.7.a ?
> >
> > Обычно статические библиотеки, которые сопровождают динамические, собирают
> > без -fpic, поскольку с ними обычно линкуются статически. Например,
> > так собирается rpm-static с -ldb.
> >
> > Другое дело, если для статической библиотеки нет парной динамической.
> > Например, мне в понедельник показали libmysqld.a, который тоже
> > скомпилирован без -fpic, однако libmysqld.so не существует, и это создаёт
> > проблемы.
>
> Как бы то ни было, но сборка libdb-4.7 c явно указанным --with-pic для x86_64
> проблему решает.
В Сизифе 49 исходных пакетов линкуются с -ldb, и проблемы не испытывают.
Зачем вы линкуете libdb.a в ELF shared object при наличии libdb.so?
Расскажите нам, какую проблему вы решаете.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-05-18 22:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 20:03 Led
2009-05-18 22:25 ` Dmitry V. Levin
2009-05-18 22:28 ` Led
2009-05-18 22:33 ` Dmitry V. Levin [this message]
2009-05-18 23:07 ` Led
2009-05-18 23:48 ` Dmitry V. Levin
2009-05-19 0:00 ` Led
2009-05-19 0:56 ` Evgeny Sinelnikov
2009-05-19 1:04 ` Dmitry V. Levin
2009-05-19 1:25 ` Evgeny Sinelnikov
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=20090518223353.GG22303@wo.int.altlinux.org \
--to=ldv@altlinux.org \
--cc=devel@lists.altlinux.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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git