ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Сборка heartbeat с --as-needed
Date: Wed, 27 Sep 2006 14:07:22 +0400
Message-ID: <451A4D5A.2040806@stc.donpac.ru> (raw)
In-Reply-To: <451A4261.5060807@stc.donpac.ru>

>>>После make clean, ./configure, make получаю:
>>>gmake[2]: *** No rule to make target
>>>`../../lib/crm/cib/libpe_status.la', needed by `libpengine.la'.  Stop.
>>
>>
>>Проверьте путь к библиотеке. Также, возможно, вам надо будет поменять
>>порядок директорий при сборке, чтобы libpe_status.la собиралась раньше
>>чем libpengine.la
> 
> 
> Проверил. Действительно, проблема в этом. Исправил, пока собирается.

Сборка закончилась на:

gcc -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations 
-Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith 
-Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline 
-Wmissing-format-attribute -Wformat=2 -Wformat-security 
-Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 
-funsigned-char -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations 
-Wstrict-prototypes -Wdeclaration-after-statement -Wpointer-arith 
-Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline 
-Wmissing-format-attribute -Wformat=2 -Wformat-security 
-Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing -Werror -ggdb3 
-funsigned-char -o .libs/pengine pengine-main.o 
../../lib/clplumbing/.libs/libplumb.so 
/usr/src/heartbeat-2.0.7/lib/pils/.libs/libpils.so 
../../lib/pils/.libs/libpils.so 
../../lib/crm/common/.libs/libcrmcommon.so 
/usr/src/heartbeat-2.0.7/lib/apphb/.libs/libapphb.so 
../../lib/crm/pengine/.libs/libpe_status.so ./.libs/libpengine.so 
/usr/src/heartbeat-2.0.7/lib/crm/pengine/.libs/libpe_status.so 
-lglib-2.0 ../../lib/crm/cib/.libs/libcib.so -lbz2 -lz -lxml2 -lc -luuid 
-lrt -ldl -lltdl -Wl,--rpath -Wl,/usr/local/lib
../../lib/crm/pengine/.libs/libpe_status.so: undefined reference to 
`get_object_root'
collect2: ld returned 1 exit status
gmake[2]: *** [pengine] Error 1
gmake[2]: Leaving directory `/usr/src/heartbeat-2.0.7/crm/pengine'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/heartbeat-2.0.7/crm'
make: *** [all-recursive] Error 1

Далее делаю:

$ find -name *.so | xargs grep get_object_root
Binary file ./crm/pengine/.libs/libpengine.so matches
Binary file ./lib/crm/cib/.libs/libcib.so matches
Binary file ./lib/crm/pengine/.libs/libpe_status.so matches

$ nm -CD ./crm/pengine/.libs/libpengine.so | grep get_object_root
          U get_object_root

$ nm -CD ./lib/crm/cib/.libs/libcib.so | grep get_object_root
00003a40 T get_object_root

$ nm -CD ./lib/crm/pengine/.libs/libpe_status.so | grep get_object_root
          U get_object_root

$ find -name libsib.la

libsib.la не нашлось. Правильно ли я понимаю, что теперь мне нужно 
добавить ее в COMMONLIBS? Пытаюсь это сделать:

...

COMMONLIBS      = $(CRM_DEBUG_LIBS)                                     \
                 $(top_builddir)/lib/clplumbing/libplumb.la              \
                 $(top_builddir)/lib/pils/libpils.la                     \
                 $(top_builddir)/lib/crm/common/libcrmcommon.la          \
                 $(top_builddir)/lib/crm/cib/libcib.la                   \
                 $(top_builddir)/lib/crm/pengine/libpe_status.la         \
                 libpengine.la                                           \
                 $(GLIBLIB)                                              \
                 $(CURSESLIBS)                                           \
                 $(LIBRT)

...

libpengine_la_LIBADD = $(top_builddir)/lib/crm/pengine/libpe_status.la 
$(top_builddir)/lib/crm/cib/libcib.la

...

пока собирается, посмотрим что будет ...

-- 
С уважением, Прокопьев Евгений



  parent reply	other threads:[~2006-09-27 10:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-27  6:21 Eugene Prokopiev
2006-09-27  6:30 ` Alexey I. Froloff
2006-09-27  6:52   ` Eugene Prokopiev
2006-09-27  7:39     ` Konstantin A. Lepikhov
2006-09-27  8:01       ` Eugene Prokopiev
2006-09-27  8:12 ` Damir Shayhutdinov
2006-09-27  9:20   ` Eugene Prokopiev
2006-09-27  9:39     ` Damir Shayhutdinov
2006-09-27 10:07       ` Eugene Prokopiev
2006-09-27 10:29         ` Damir Shayhutdinov
2006-09-27 10:41           ` Eugene Prokopiev
2006-09-27 11:26             ` Damir Shayhutdinov
2006-09-27 10:06     ` Konstantin A. Lepikhov
2006-09-27 10:28       ` Eugene Prokopiev
2006-09-27 10:46         ` Konstantin A. Lepikhov
2006-09-27 10:07     ` Eugene Prokopiev [this message]
2006-09-27 10:21       ` Damir Shayhutdinov
2006-09-27 10:35         ` Eugene Prokopiev
2006-09-27 10:23       ` Eugene Prokopiev
2006-09-27 10:29         ` Igor Zubkov
2006-09-27 10:29         ` Led
2006-09-27 10:30         ` Igor Zubkov
2006-09-27 10:11     ` Konstantin A. Lepikhov

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=451A4D5A.2040806@stc.donpac.ru \
    --to=prokopiev@stc.donpac.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