From: Dmitry Chistikov <dd1email@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] ldl и сборка
Date: Fri, 25 May 2012 13:25:11 +0400
Message-ID: <20120525092510.GA6934@conflux.foliandre> (raw)
In-Reply-To: <CACT9YCGUU1US=_A1sjURot5JH8krpYtBYgCpJg8ZAokDY7_neg@mail.gmail.com>
Мал Скрылёв, May. 25, 2012, 12:33 +0400:
> make[2]: Entering directory `/home/malo/git/Altlinux/avarice/avarice/src'
> g++ -g -O2 -o avarice crc16.o devdescr.o ioreg.o jtag2bp.o
> jtag2io.o jtag2misc.o jtag2prog.o jtag2run.o jtag2rw.o jtag2usb.o
> jtagbp.o jtaggeneric.o jtagio.o jtagmisc.o jtagprog.o jtagrun.o
> jtagrw.o main.o remote.o utils.o gnu_getopt.o gnu_getopt1.o -ldl
> -lusb -lbfd -liberty -lz
> /usr/lib/libbfd.a(plugin.o): In function `try_load_plugin':
> /usr/src/RPM/BUILD/binutils-2.22.52.0.3/bfd/plugin.c:306: undefined
> reference to `dlopen'
> /usr/src/RPM/BUILD/binutils-2.22.52.0.3/bfd/plugin.c:313: undefined
> reference to `dlsym'
> /usr/src/RPM/BUILD/binutils-2.22.52.0.3/bfd/plugin.c:309: undefined
> reference to `dlerror'
> collect2: выполнение ld завершилось с кодом возврата 1
Если я правильно читаю, *что* у Вас написано, то к dlopen(3) обращается
какая-то функция из уже не видного plugin.o, на который Вы ссылаетесь
указанием -lbfd. Следовательно, -ldl нужно поставить *после* -lbfd.
--
Дмитрий Чистиков
next prev parent reply other threads:[~2012-05-25 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 8:33 Мал Скрылёв
2012-05-25 9:25 ` Dmitry Chistikov [this message]
2012-05-25 9:51 ` Dmitry V. Levin
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=20120525092510.GA6934@conflux.foliandre \
--to=dd1email@gmail.com \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git