ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alex Yustasov <yust@altlinux.ru>
To: ALTLinux-devel <devel@lists.altlinux.org>
Subject: [devel] Новый binutils и bug #9247
Date: Sun, 2 Apr 2006 00:59:03 +0300
Message-ID: <20060401215902.GA4020@yust.work> (raw)

Здравствуйте.
Есть xen, который перестал собираться, и bug #9247 с похожими 
комментариями, который RESOLVED FIXED.

В make несобирающийся участок выглядит так
$(PROGRAMS): %: %.o 
        $(LINK.o) $^ $(LDLIBS) -o $@ 

Реально
gcc  -Wdeclaration-after-statement  -m64 -Wall -Werror -O3 -fno-strict-aliasing \
    -I ../../tools/libxc -Wp,-MD,.xc_restore.o.d -c -o xc_restore.o xc_restore.c
gcc   -m64  xc_restore.o -L../../tools/libxc -lxenguest -lxenctrl -o xc_restore

Вторую библиотеку не находит.
/usr/bin/ld1: warning: libxenctrl.so.3.0, needed by ../../tools/libxc/libxenguest.so, not found (try using -rpath or -rpath-link)
../../tools/libxc/libxenguest.so: undefined reference to `xc_domain_unpause'
../../tools/libxc/libxenguest.so: undefined reference to `xc_get_pfn_list'

ld вызывается так
ld --as-needed --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 \
    -o xc_restore /usr/lib64/gcc/x86_64-alt-linux/3.4.5/../../../../lib64/crt1.o \
    /usr/lib64/gcc/x86_64-alt-linux/3.4.5/../../../../lib64/crti.o \
    /usr/lib64/gcc/x86_64-alt-linux/3.4.5/crtbegin.o -L../../tools/libxc \
    -L/usr/lib64/gcc/x86_64-alt-linux/3.4.5 \
    -L/usr/lib64/gcc/x86_64-alt-linux/3.4.5/../../../../lib64 \
    -L/usr/lib64/gcc/x86_64-alt-linux/3.4.5/../../.. \
    -L/lib/../lib64 -L/usr/lib/../lib64 xc_restore.o -lxenguest \
    -lxenctrl -lgcc --as-needed -lgcc_s -lc -lgcc --as-needed \
    -lgcc_s /usr/lib64/gcc/x86_64-alt-linux/3.4.5/crtend.o \
    /usr/lib64/gcc/x86_64-alt-linux/3.4.5/../../../../lib64/crtn.o

Если подставить в вызов ld -rpath ../../tools/libxc то собирается.
Как это работало раньше? ld не обрабатывает -L или что?

-- 
    Alex Yustasov

ALT Linux fortune:
Поменяйте в настройках язык на английский, выйдите, запустите снова,
поменяйте на русский и снова перезагрузите mozilla.
		-- aen in community@


                 reply	other threads:[~2006-04-01 21:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20060401215902.GA4020@yust.work \
    --to=yust@altlinux.ru \
    --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