ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Сборка пакета, где есть библиотека и бинарник
@ 2006-03-14 13:18 Alex Yustasov
  2006-03-14 13:18 ` Genix
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Yustasov @ 2006-03-14 13:18 UTC (permalink / raw)
  To: ALT Devel discussion list

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

Здравствуйте.
Что-то я наверное пропустил. После обновления не могу собрать
пакет, в котором собираются библиотеки и бинарники. В конце они раскла-
дываются по пакетам, но до этого дело не доходит. При сборке
бинарника ругается
gcc -Wdeclaration-after-statement  -m32 -march=i686 -Wall -O3  -I ../../../tools/libxc \
    -L../../../tools/libxc -lxenctrl -DXENO -o cpuperf-xen cpuperf.c

/tmp/.private/alex/ccEDYBJW.o: In function `xen_init':cpuperf.c:(.text+0x8): undefined reference to `xc_interface_open'
/tmp/.private/alex/ccEDYBJW.o: In function `dom0_wrmsr':cpuperf.c:(.text+0x8b): undefined reference to `xc_msr_write'
/tmp/.private/alex/ccEDYBJW.o: In function `dom0_rdmsr':cpuperf.c:(.text+0xbd): undefined reference to `xc_msr_read'
/tmp/.private/alex/ccEDYBJW.o: In function `main':cpuperf.c:(.text+0x1aa): undefined reference to `xc_interface_open'
:cpuperf.c:(.text+0x2f1): undefined reference to `xc_msr_write'
:cpuperf.c:(.text+0x31f): undefined reference to `xc_msr_write'
:cpuperf.c:(.text+0x636): undefined reference to `xc_msr_write'
:cpuperf.c:(.text+0x66b): undefined reference to `xc_msr_write'
:cpuperf.c:(.text+0x725): undefined reference to `xc_msr_read'
collect2: ld returned 1 exit status

Хотя все эти undefined находятся в libxenctrl, которая собралась чуть раньше 
и она выглядит, кажется, нормально.
libxenctrl.so.3.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), not stripped
         U abort@@GLIBC_2.0
...	 
00004420 T xc_interface_close
00004390 T xc_interface_open
00006430 T xc_make_page_below_4G
00004e30 T xc_map_foreign_batch
00004f00 T xc_map_foreign_range
000060e0 T xc_map_memcpy
00005650 T xc_memory_op
00005300 T xc_mmuext_op
00004ae0 T xc_msr_read
00004c70 T xc_msr_write

Или чтобы все находилось,  нужно что-то с библиотекой сделать?

-- 
    Alex Yustasov

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

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

* Re: [devel] Сборка пакета, где есть библиотека и бинарник
  2006-03-14 13:18 [devel] Сборка пакета, где есть библиотека и бинарник Alex Yustasov
@ 2006-03-14 13:18 ` Genix
  2006-03-14 13:34   ` Alex Yustasov
  0 siblings, 1 reply; 7+ messages in thread
From: Genix @ 2006-03-14 13:18 UTC (permalink / raw)
  To: ALT Devel discussion list

Alex Yustasov wrote:

> Что-то я наверное пропустил. После обновления не могу собрать
> пакет, в котором собираются библиотеки и бинарники. В конце они раскла-
> дываются по пакетам, но до этого дело не доходит. При сборке
> бинарника ругается
> gcc -Wdeclaration-after-statement  -m32 -march=i686 -Wall -O3  -I ../../.../tools/libxc \
>     -L../../../tools/libxc -lxenctrl -DXENO -o cpuperf-xen cpuperf.c

а если поменять порядок объявления, сделать

  -DXENO -o cpuperf-xen cpuperf.c  -lxenctrl

не поможет?

-- 
У каждого в башке свои тараканы...


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

* Re: [devel] Сборка пакета, где есть библиотека и бинарник
  2006-03-14 13:18 ` Genix
@ 2006-03-14 13:34   ` Alex Yustasov
  2006-03-14 14:02     ` Genix
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Yustasov @ 2006-03-14 13:34 UTC (permalink / raw)
  To: ALT Devel discussion list

On Tue, Mar 14, 2006 at 04:18:22PM +0300, Genix wrote:
> Alex Yustasov wrote:
> 
> > Что-то я наверное пропустил. После обновления не могу собрать
> > пакет, в котором собираются библиотеки и бинарники. В конце они раскла-
> > дываются по пакетам, но до этого дело не доходит. При сборке
> > бинарника ругается
> > gcc -Wdeclaration-after-statement  -m32 -march=i686 -Wall -O3  -I ../../.../tools/libxc \
> >     -L../../../tools/libxc -lxenctrl -DXENO -o cpuperf-xen cpuperf.c
> 
> а если поменять порядок объявления, сделать
> 
>   -DXENO -o cpuperf-xen cpuperf.c  -lxenctrl
> 
> не поможет?

Спасибо. Помогло.

-- 
    Alex Yustasov


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

* Re: [devel] Сборка пакета, где есть библиотека и бинарник
  2006-03-14 13:34   ` Alex Yustasov
@ 2006-03-14 14:02     ` Genix
  2006-03-23 19:50       ` Alex Yustasov
  0 siblings, 1 reply; 7+ messages in thread
From: Genix @ 2006-03-14 14:02 UTC (permalink / raw)
  To: ALT Devel discussion list

Alex Yustasov wrote:

> Спасибо. Помогло.

везет вам ;)



-- 
У каждого в башке свои тараканы...


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

* Re: [devel] Сборка пакета, где есть библиотека и бинарник
  2006-03-14 14:02     ` Genix
@ 2006-03-23 19:50       ` Alex Yustasov
  2006-03-23 20:37         ` Genix
  2006-03-23 23:07         ` Dmitry V. Levin
  0 siblings, 2 replies; 7+ messages in thread
From: Alex Yustasov @ 2006-03-23 19:50 UTC (permalink / raw)
  To: ALT Devel discussion list

On Tue, Mar 14, 2006 at 05:02:09PM +0300, Genix wrote:
> Alex Yustasov wrote:
> 
> > Спасибо. Помогло.
> 
> везет вам ;)

Не долго везло. Обновился. Теперь

gcc  -Wdeclaration-after-statement  -m32 -march=i686 -Wall -Werror -O3 -fno-strict-aliasing -I ../../tools/libxc -Wp,-MD,.xc_restore.o.d -c -o xc_restore.o xc_restore.c
gcc   -m32  xc_restore.o -L../../tools/libxc -o xc_restore -lxenguest -lxenctrl 
/usr/bin/ld: 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'
../../tools/libxc/libxenguest.so: undefined reference to `xc_make_page_below_4G'
../../tools/libxc/libxenguest.so: undefined reference to `xc_get_tot_pages'

И что делать?

-- 
    Alex Yustasov


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

* Re: [devel] Сборка пакета, где есть библиотека и бинарник
  2006-03-23 19:50       ` Alex Yustasov
@ 2006-03-23 20:37         ` Genix
  2006-03-23 23:07         ` Dmitry V. Levin
  1 sibling, 0 replies; 7+ messages in thread
From: Genix @ 2006-03-23 20:37 UTC (permalink / raw)
  To: ALT Devel discussion list

Alex Yustasov wrote:

> gcc  -Wdeclaration-after-statement  -m32 -march=i686 -Wall -Werror -O3 -fno-strict-aliasing -I ../../tools/libxc -Wp,-MD,.xc_restore.o.d -c -o xc_restore.o xc_restore.c
> gcc   -m32  xc_restore.o -L../../tools/libxc -o xc_restore -lxenguest -lxenctrl 
> /usr/bin/ld: 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'
> ../../tools/libxc/libxenguest.so: undefined reference to `xc_make_page_below_4G'
> ../../tools/libxc/libxenguest.so: undefined reference to `xc_get_tot_pages'
> 
> И что делать?

разобраться откуда берутся эти символы (findsym в помощь) и добавить эту 
либу в _LDADD Makefile.in, который лежит где-то в районе tools/libxc


-- 
У каждого в башке свои тараканы...


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

* Re: [devel] Сборка пакета, где есть библиотека и бинарник
  2006-03-23 19:50       ` Alex Yustasov
  2006-03-23 20:37         ` Genix
@ 2006-03-23 23:07         ` Dmitry V. Levin
  1 sibling, 0 replies; 7+ messages in thread
From: Dmitry V. Levin @ 2006-03-23 23:07 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Thu, Mar 23, 2006 at 09:50:35PM +0200, Alex Yustasov wrote:
> On Tue, Mar 14, 2006 at 05:02:09PM +0300, Genix wrote:
> > Alex Yustasov wrote:
> > 
> > > Спасибо. Помогло.
> > 
> > везет вам ;)
> 
> Не долго везло. Обновился. Теперь
> 
> gcc  -Wdeclaration-after-statement  -m32 -march=i686 -Wall -Werror -O3 -fno-strict-aliasing -I ../../tools/libxc -Wp,-MD,.xc_restore.o.d -c -o xc_restore.o xc_restore.c
> gcc   -m32  xc_restore.o -L../../tools/libxc -o xc_restore -lxenguest -lxenctrl 
> /usr/bin/ld: warning: libxenctrl.so.3.0, needed by ../../tools/libxc/libxenguest.so, not found (try using -rpath or -rpath-link)
[...]
> И что делать?

Читать внимательно, что пишет ld.
См. тж. http://lists.altlinux.org/pipermail/devel/2006-March/030154.html

Кстати, скажите пожалуйста, почему среди параметров компилятора не видно
$RPM_OPT_FLAGS?


-- 
ldv

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

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

end of thread, other threads:[~2006-03-23 23:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-14 13:18 [devel] Сборка пакета, где есть библиотека и бинарник Alex Yustasov
2006-03-14 13:18 ` Genix
2006-03-14 13:34   ` Alex Yustasov
2006-03-14 14:02     ` Genix
2006-03-23 19:50       ` Alex Yustasov
2006-03-23 20:37         ` Genix
2006-03-23 23:07         ` Dmitry V. Levin

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