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:28:45 +0400
Message-ID: <451A525D.1090004@stc.donpac.ru> (raw)
In-Reply-To: <20060927100621.GA14649@lks.home>

Konstantin A. Lepikhov пишет:
> Hi Eugene!
> 
> Wednesday 27, at 01:20:33 PM you wrote:
> 
> 
>>>Проверьте путь к библиотеке. Также, возможно, вам надо будет поменять
>>>порядок директорий при сборке, чтобы libpe_status.la собиралась раньше
>>>чем libpengine.la
> 
> а дальше начинается самое интересное:
> creating libpengine.la
> (cd .libs && rm -f libpengine.la && ln -s ../libpengine.la libpengine.la)
> /bin/sh ../../libtool --tag=CC  --mode=link gcc -pipe -Wall -O2
> -march=pentium4  -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   -ggdb3
> -funsigned-char  -pipe -Wall -O2 -march=pentium4  -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   -ggdb3 -funsigned-char   -o ptest  ptest-ptest.o
> ../../lib/clplumbing/libplumb.la ../../lib/pils/libpils.la
> ../../lib/crm/common/libcrmcommon.la ../../lib/crm/pengine/libpe_rules.la
> ../../lib/crm/pengine/libpe_status.la ../../lib/crm/cib/libcib.la
> libpengine.la -lglib-2.0   -lncurses  ../../lib/crm/cib/libcib.la
> ../../lib/crm/transition/libtransitioner.la -lbz2 -lz -lxml2 -lc -luuid
> -lrt -ldl  -lltdl
> gcc -pipe -Wall -O2 -march=pentium4 -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
> -ggdb3 -funsigned-char -pipe -Wall -O2 -march=pentium4 -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 -ggdb3 -funsigned-char -o .libs/ptest ptest-ptest.o
> ../../lib/clplumbing/.libs/libplumb.so ../../lib/pils/.libs/libpils.so
> ../../lib/crm/common/.libs/libcrmcommon.so
> ../../lib/crm/pengine/.libs/libpe_rules.so
> ../../lib/crm/pengine/.libs/libpe_status.so ./.libs/libpengine.so
> -lglib-2.0 -lncurses ../../lib/crm/cib/.libs/libcib.so
> ../../lib/crm/transition/.libs/libtransitioner.so -lbz2 -lz -lxml2 -lc
> -luuid -lrt -ldl -lltdl
> ../../lib/crm/pengine/.libs/libpe_status.so: undefined reference to
> `stdscr'
> ../../lib/crm/pengine/.libs/libpe_status.so: undefined reference to
> `wmove'
> ../../lib/crm/pengine/.libs/libpe_status.so: undefined reference to
> `printw'
> collect2: ld returned 1 exit status
> make: *** [ptest]  1
> 
> printw/wmove - это символы из libslang, но вот libpe_status.so с ней
> линковаться не хочет, поскольку напрямую их не требует. Бага в ncurses?

странно, а у меня crm/pengine таки собрался. Вот что я сделал:

--- heartbeat-2.0.7/crm/pengine/Makefile.am     2006-06-09 23:26:04 +0300
+++ hasher/chroot/usr/src/heartbeat-2.0.7/crm/pengine/Makefile.am 
2006-09-27 12:52:39 +0300
@@ -40,6 +40,7 @@
                 $(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)                                              \
@@ -59,6 +60,7 @@
  noinst_HEADERS = allocate.h utils.h pengine.h
  #utils.h pengine.h

+libpengine_la_LIBADD = $(top_builddir)/lib/crm/pengine/libpe_status.la 
$(top_builddir)/lib/crm/cib/libcib.la
  libpengine_la_LDFLAGS  = -version-info 3:0:0
  # -L$(top_builddir)/lib/pils -lpils -export-dynamic -module 
-avoid-version
  libpengine_la_SOURCES  = pengine.c allocate.c utils.c \


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



  reply	other threads:[~2006-09-27 10:28 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 [this message]
2006-09-27 10:46         ` Konstantin A. Lepikhov
2006-09-27 10:07     ` Eugene Prokopiev
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=451A525D.1090004@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