ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] heartbeat 2.0.8 и снова --as-need
@ 2007-03-14  8:36 Eugene Prokopiev
  2007-03-14  8:41 ` Eugene Ostapets
  2007-03-14  9:24 ` Damir Shayhutdinov
  0 siblings, 2 replies; 5+ messages in thread
From: Eugene Prokopiev @ 2007-03-14  8:36 UTC (permalink / raw)
  To: Devel

Здравствуйте!

Собираю heartbeat 2.0.8:

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/atest atest-atest.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/cib/.libs/libcib.so ../../lib/apphb/.libs/libapphb.so 
../../lib/hbclient/.libs/libhbclient.so -lglib-2.0 -lbz2 -lz -lxml2 -lc 
-luuid -lrt -ldl -lltdl -Wl,--rpath -Wl,/usr/local/lib
../../lib/crm/common/.libs/libcrmcommon.so: undefined reference to 
`cl_perror'
...
../../lib/crm/common/.libs/libcrmcommon.so: undefined reference to 
`cl_log_set_uselogd'
collect2: ld returned 1 exit status
gmake[2]: *** [atest] Error 1
gmake[2]: Leaving directory `/usr/src/RPM/BUILD/heartbeat-2.0.8/crm/crmd'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/RPM/BUILD/heartbeat-2.0.8/crm'
make: *** [all-recursive] Error 1

Читаю http://lists.altlinux.org/pipermail/sisyphus/2006-July/084838.html 
и делаю:

$ find -name *.so | xargs grep cl_log_set_uselogd
Binary file ./lib/crm/common/.libs/libcrmcommon.so matches
Binary file ./lib/clplumbing/.libs/libplumb.so matches
$ nm -CD lib/crm/common/.libs/libcrmcommon.so | grep cl_log_set_uselogd
          U cl_log_set_uselogd
$ nm -CD lib/clplumbing/.libs/libplumb.so | grep cl_log_set_uselogd
0000d590 T cl_log_set_uselogd

Итак, вписать надо -lplumb, ищем теперь куда:

$ find -name Makefile.am | xargs grep libcrmcommon_la_LIBADD
./lib/crm/common/Makefile.am:libcrmcommon_la_LIBADD  = 
$(top_builddir)/lib/apphb/libapphb.la

Теперь модифицируем lib/crm/common/Makefile.am, добавив -lplumb в конец 
строки с libcrmcommon_la_LIBADD, и пересобираем:

gcc -shared  .libs/ipc.o .libs/msg.o .libs/utils.o .libs/xml.o 
.libs/ctrl.o .libs/iso8601.o .libs/iso8601_fields.o  -Wl,--rpath 
-Wl,/usr/src/RPM/BUILD/heartbeat-2.0.8/lib/apphb/.libs -Wl,--rpath 
-Wl,/usr/local/lib ../../../lib/apphb/.libs/libapphb.so -lplumb -lbz2 
-lz -lxml2 -lc -luuid -lrt -ldl -lltdl  -Wl,-soname 
-Wl,libcrmcommon.so.1 -o .libs/libcrmcommon.so.1.0.1
/usr/bin/ld: cannot find -lplumb
collect2: ld returned 1 exit status
gmake[3]: *** [libcrmcommon.la] Error 1
gmake[3]: Leaving directory 
`/usr/src/RPM/BUILD/heartbeat-2.0.8/lib/crm/common'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/src/RPM/BUILD/heartbeat-2.0.8/lib/crm'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/src/RPM/BUILD/heartbeat-2.0.8/lib'
make: *** [all-recursive] Error 1

Что я сделал неправильно?

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] heartbeat 2.0.8 и снова --as-need
  2007-03-14  8:36 [devel] heartbeat 2.0.8 и снова --as-need Eugene Prokopiev
@ 2007-03-14  8:41 ` Eugene Ostapets
  2007-03-14  9:24 ` Damir Shayhutdinov
  1 sibling, 0 replies; 5+ messages in thread
From: Eugene Ostapets @ 2007-03-14  8:41 UTC (permalink / raw)
  To: ALT Devel discussion list

2007/3/14, Eugene Prokopiev <prokopiev stc.donpac.ru>:
> Здравствуйте!
>
> Собираю heartbeat 2.0.8:
> Итак, вписать надо -lplumb, ищем теперь куда:
>
> $ find -name Makefile.am | xargs grep libcrmcommon_la_LIBADD
> ./lib/crm/common/Makefile.am:libcrmcommon_la_LIBADD  =
> $(top_builddir)/lib/apphb/libapphb.la
>
> Теперь модифицируем lib/crm/common/Makefile.am, добавив -lplumb в конец
> строки с libcrmcommon_la_LIBADD, и пересобираем:
> Что я сделал неправильно?
А automake будет Пушкин запускать?:)

-- 
С уважением,
Евгений Остапец
uin: 23747217
jid: eugene_ostapets@jabber.ru

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] heartbeat 2.0.8 и снова --as-need
  2007-03-14  8:36 [devel] heartbeat 2.0.8 и снова --as-need Eugene Prokopiev
  2007-03-14  8:41 ` Eugene Ostapets
@ 2007-03-14  9:24 ` Damir Shayhutdinov
  2007-03-14 20:59   ` Hihin Ruslan
  1 sibling, 1 reply; 5+ messages in thread
From: Damir Shayhutdinov @ 2007-03-14  9:24 UTC (permalink / raw)
  To: ALT Devel discussion list

> -funsigned-char -o .libs/atest atest-atest.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/cib/.libs/libcib.so ../../lib/apphb/.libs/libapphb.so
> ../../lib/hbclient/.libs/libhbclient.so -lglib-2.0 -lbz2 -lz -lxml2 -lc
> -luuid -lrt -ldl -lltdl -Wl,--rpath -Wl,/usr/local/lib
> ../../lib/crm/common/.libs/libcrmcommon.so: undefined reference to
> `cl_perror'
> ...
> ../../lib/crm/common/.libs/libcrmcommon.so: undefined reference to
> `cl_log_set_uselogd'
> collect2: ld returned 1 exit status
> gmake[2]: *** [atest] Error 1
> gmake[2]: Leaving directory `/usr/src/RPM/BUILD/heartbeat-2.0.8/crm/crmd'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/usr/src/RPM/BUILD/heartbeat-2.0.8/crm'
> make: *** [all-recursive] Error 1
>
> Читаю http://lists.altlinux.org/pipermail/sisyphus/2006-July/084838.html
> и делаю:
>
> $ find -name *.so | xargs grep cl_log_set_uselogd
> Binary file ./lib/crm/common/.libs/libcrmcommon.so matches
> Binary file ./lib/clplumbing/.libs/libplumb.so matches
> $ nm -CD lib/crm/common/.libs/libcrmcommon.so | grep cl_log_set_uselogd
>           U cl_log_set_uselogd
> $ nm -CD lib/clplumbing/.libs/libplumb.so | grep cl_log_set_uselogd
> 0000d590 T cl_log_set_uselogd
>
> Итак, вписать надо -lplumb, ищем теперь куда:

Вот тут неправильно. Ведь библиотека, которую нужно прилинковать - не
установлена в системе еще, а находится в каталоге сборки
поэтому надо дописывать не -lplumb, а
$(top_builddir)/lib/clplumbing/libplumb.la (ну или где там находится
libplumb.la относительно каталога с исходниками).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] heartbeat 2.0.8 и снова --as-need
  2007-03-14  9:24 ` Damir Shayhutdinov
@ 2007-03-14 20:59   ` Hihin Ruslan
  2007-03-14 21:27     ` Damir Shayhutdinov
  0 siblings, 1 reply; 5+ messages in thread
From: Hihin Ruslan @ 2007-03-14 20:59 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 532 bytes --]

Здравствуйте Damir Shayhutdinov
  В сообщении от 14 марта 2007 Damir Shayhutdinov написал(a):
 > > Итак, вписать надо -lplumb, ищем теперь куда:
 >
 > Вот тут неправильно. Ведь библиотека, которую нужно прилинковать -
 > не
 > установлена в системе еще, а находится в каталоге сборки
 > поэтому надо дописывать не -lplumb, а
 > $(top_builddir)/lib/clplumbing/libplumb.la (ну или где там находится
 > libplumb.la относительно каталога с исходниками).

А разве -L./path_to_clplumbing/  -lplumb 
нельзя ?

-- 
С уважением Xихин Руслан

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] heartbeat 2.0.8 и снова --as-need
  2007-03-14 20:59   ` Hihin Ruslan
@ 2007-03-14 21:27     ` Damir Shayhutdinov
  0 siblings, 0 replies; 5+ messages in thread
From: Damir Shayhutdinov @ 2007-03-14 21:27 UTC (permalink / raw)
  To: ALT Devel discussion list

> А разве -L./path_to_clplumbing/  -lplumb
> нельзя ?
Лучше линковать с .la - тогда у этого патча есть шанс попасть в
апстрим. .la файлы работают как в случае динамической, так и
статической библиотеки libplumb, и содержат все нужные зависимости.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-14 21:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-14  8:36 [devel] heartbeat 2.0.8 и снова --as-need Eugene Prokopiev
2007-03-14  8:41 ` Eugene Ostapets
2007-03-14  9:24 ` Damir Shayhutdinov
2007-03-14 20:59   ` Hihin Ruslan
2007-03-14 21:27     ` Damir Shayhutdinov

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