ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] проблема с songbird и --as-needed
@ 2009-07-10 10:33 Aelya Grevnyov
  2009-07-10 17:44 ` Andrey Rahmatullin
  0 siblings, 1 reply; 6+ messages in thread
From: Aelya Grevnyov @ 2009-07-10 10:33 UTC (permalink / raw)
  To: Devel

приветствую
собираю songbird и не могу справиться с --as-needed
с --no-as-needed оно собирается и работает (правда собирается только
через gear-rpm -bb. с hasher там немного другие ошибки. подозреваю, что
они тоже связаны с --as-needed)
Можно это как-то победить?
вот мое поделие
http://git.altlinux.org/people/gray_graff/packages/?p=songbird.git

вот лог ошибки:
g++ -o sbDOMEventUtils.so -Wl,-rpath -Wl,/usr/lib/songbird -Wl,-z,defs
-Wl,-rpath-link,/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/dist/xulrunner
-shared
-L/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib
sbDOMEventWrapper.o sbDOMEventUtilsModule.o -lnspr4 -lxpcom
-lxpcomglue_s
/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):
In function `CallGetClassObject(char const*, nsID const&, void**)':



nsComponentManagerUtils.cpp:(.text+0x5b): undefined reference to
`NS_GetComponentManager'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):
In function `CallGetClassObject(nsID const&, nsID const&, void**)':



nsComponentManagerUtils.cpp:(.text+0xe8): undefined reference to
`NS_GetComponentManager'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):
In function `CallCreateInstance(char const*, nsISupports*, nsID const&,
void**)':


nsComponentManagerUtils.cpp:(.text+0x176): undefined reference to
`NS_GetComponentManager'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):
In function `CallCreateInstance(nsID const&, nsISupports*, nsID const&,
void**)':


nsComponentManagerUtils.cpp:(.text+0x20c): undefined reference to
`NS_GetComponentManager'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):
In function `CallGetService(char const*, nsID const&, void**)':



nsComponentManagerUtils.cpp:(.text+0x2a2): undefined reference to
`NS_GetServiceManager'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsComponentManagerUtils.o):
In function `CallGetService(nsID const&, nsID const&, void**)':



nsComponentManagerUtils.cpp:(.text+0x353): undefined reference to
`NS_GetServiceManager'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsGenericFactory.o):
In function `nsGenericModule::Release()':
nsGenericFactory.cpp:(.text+0x98b): undefined reference to
`PR_AtomicDecrement'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsGenericFactory.o):
In function `nsGenericFactory::Release()':
nsGenericFactory.cpp:(.text+0x9e1): undefined reference to
`PR_AtomicDecrement'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsGenericFactory.o):
In function `nsGenericModule::AddRef()':
nsGenericFactory.cpp:(.text+0xa2e): undefined reference to
`PR_AtomicIncrement'

/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsGenericFactory.o):
In function `nsGenericFactory::AddRef()':
nsGenericFactory.cpp:(.text+0xa58): undefined reference to
`PR_AtomicIncrement'
/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsGenericFactory.o):
In function `nsGenericFactory::GetClassDescription(char**)':
nsGenericFactory.cpp:(.text+0xace): undefined reference to `NS_Alloc'
/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsGenericFactory.o):
In function `nsGenericFactory::GetContractID(char**)':
nsGenericFactory.cpp:(.text+0xb45): undefined reference to `NS_Alloc'
/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsMemory.o):
In function `nsMemory::GetGlobalMemoryService()':
nsMemory.cpp:(.text+0x17): undefined reference to `NS_GetMemoryManager'
/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsMemory.o):
In function `nsMemory::Clone(void const*, unsigned int)':
nsMemory.cpp:(.text+0x4d): undefined reference to `NS_Alloc'
/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib/libxpcomglue_s.a(nsMemory.o):
In function `nsMemory::HeapMinimize(int)':
nsMemory.cpp:(.text+0x8f): undefined reference to `NS_GetMemoryManager'
collect2: ld returned 1 exit status
make[6]: *** [sbDOMEventUtils.so] Error 1
make[6]: Leaving directory
`/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/components/moz/domevents/src'
make[5]: *** [libs] Error 2
make[5]: Leaving directory
`/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/components/moz/domevents'
make[4]: *** [libs] Error 2
make[4]: Leaving directory
`/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/components/moz'
make[3]: *** [libs_tier_componentsbase] Error 2
make[3]: Leaving directory
`/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled'
make[2]: *** [tier_componentsbase] Error 2
make[2]: Leaving directory
`/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled'
make[1]: *** [default] Error 2
make[1]: Leaving directory
`/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled'
make: *** [build] Error 2
make: Leaving directory `/tmp/.private/gray_graff/RPM/BUILD/Songbird'
ошибка: Неверный код возврата из /home/gray_graff/tmp/rpm-tmp.73122 (%build)


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

* Re: [devel] проблема с songbird и --as-needed
  2009-07-10 10:33 [devel] проблема с songbird и --as-needed Aelya Grevnyov
@ 2009-07-10 17:44 ` Andrey Rahmatullin
  2009-07-11 13:29   ` Aelya Grevnyov
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Rahmatullin @ 2009-07-10 17:44 UTC (permalink / raw)
  To: devel

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

On Fri, Jul 10, 2009 at 06:33:14PM +0800, Aelya Grevnyov wrote:
> вот лог ошибки:
> g++ -o sbDOMEventUtils.so -Wl,-rpath -Wl,/usr/lib/songbird -Wl,-z,defs
> -Wl,-rpath-link,/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/dist/xulrunner
> -shared
> -L/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib
> sbDOMEventWrapper.o sbDOMEventUtilsModule.o -lnspr4 -lxpcom
> -lxpcomglue_s
Тут, кажется, надо переставить -lxpcomglue_s до чего-то, где
NS_GetComponentManager (-lnspr4?)

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

Надо просто взять за правило, что _перед_ удалением дистрибутивного ядра
необходимо [пере]установить планируемое к использованию ядро.

Из этого правило возможно одно отступление, планируемое к использованию
ядро можно [пере]установить после удаления, но не позже чем через 1,5
тысячи процессорных тактов CPU. $)
		-- genix in community@

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

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

* Re: [devel] проблема с songbird и --as-needed
  2009-07-10 17:44 ` Andrey Rahmatullin
@ 2009-07-11 13:29   ` Aelya Grevnyov
  2009-07-11 13:34     ` Andrey Rahmatullin
  2009-07-11 13:40     ` Alexey I. Froloff
  0 siblings, 2 replies; 6+ messages in thread
From: Aelya Grevnyov @ 2009-07-11 13:29 UTC (permalink / raw)
  To: ALT Linux Team development discussions

11.07.2009 01:44, Andrey Rahmatullin пишет:
> On Fri, Jul 10, 2009 at 06:33:14PM +0800, Aelya Grevnyov wrote:
>> вот лог ошибки:
>> g++ -o sbDOMEventUtils.so -Wl,-rpath -Wl,/usr/lib/songbird -Wl,-z,defs
>> -Wl,-rpath-link,/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/dist/xulrunner
>> -shared
>> -L/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib
>> sbDOMEventWrapper.o sbDOMEventUtilsModule.o -lnspr4 -lxpcom
>> -lxpcomglue_s
> Тут, кажется, надо переставить -lxpcomglue_s до чего-то, где
> NS_GetComponentManager (-lnspr4?)
Да, спасибо. поправил несколько файликов - работает
теперь другая проблема
уже по-всякому местал менямы библиотеки - не помогает...
Как вообще посмотреть, какие символы есть в библиотеке?

g++ -o sbIntl.so -Wl,-rpath,/usr/lib/songbird -Wl,-z,defs
-Wl,-rpath-link,/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/dist/xulrunner
-shared -lglib-2.0   -lm
-L/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib
sbStringTransform.o sbIntlModule.o sbArticlesData.o
sbStringTransformImpl.o -lxpcomglue_s -lunicharutil_external_s -lxpcom
-lplds4 -lnspr4


sbStringTransformImpl.o: In function
`sbStringTransformImpl::NormalizeString(nsAString const&, unsigned int,
nsAString const&, nsAString&)':

sbStringTransformImpl.cpp:(.text+0x398): undefined reference to
`g_utf8_strdown'

sbStringTransformImpl.cpp:(.text+0x3b7): undefined reference to `g_free'


sbStringTransformImpl.cpp:(.text+0x3e0): undefined reference to
`g_utf8_strup'

sbStringTransformImpl.cpp:(.text+0x3ff): undefined reference to `g_free'


sbStringTransformImpl.cpp:(.text+0x452): undefined reference to
`g_utf8_normalize'

sbStringTransformImpl.cpp:(.text+0x469): undefined reference to
`g_utf8_strlen'

sbStringTransformImpl.cpp:(.text+0x490): undefined reference to
`g_utf8_offset_to_pointer'

sbStringTransformImpl.cpp:(.text+0x498): undefined reference to
`g_utf8_get_char'

sbStringTransformImpl.cpp:(.text+0x4a3): undefined reference to
`g_unichar_type'

sbStringTransformImpl.cpp:(.text+0x4ee): undefined reference to `g_free'


sbStringTransformImpl.cpp:(.text+0x562): undefined reference to
`g_utf8_normalize'

sbStringTransformImpl.cpp:(.text+0x57c): undefined reference to
`g_utf8_strlen'

sbStringTransformImpl.cpp:(.text+0x5b2): undefined reference to
`g_utf8_offset_to_pointer'

sbStringTransformImpl.cpp:(.text+0x5bd): undefined reference to
`g_utf8_get_char'
sbStringTransformImpl.cpp:(.text+0x5c8): undefined reference to
`g_unichar_type'
sbStringTransformImpl.cpp:(.text+0x5ff): undefined reference to
`g_utf8_offset_to_pointer'
sbStringTransformImpl.cpp:(.text+0x607): undefined reference to
`g_utf8_get_char'
sbStringTransformImpl.cpp:(.text+0x66e): undefined reference to `g_free'
sbStringTransformImpl.cpp:(.text+0x6e2): undefined reference to
`g_utf8_normalize'
sbStringTransformImpl.cpp:(.text+0x70c): undefined reference to
`g_utf8_strlen'
sbStringTransformImpl.cpp:(.text+0x747): undefined reference to
`g_utf8_offset_to_pointer'
sbStringTransformImpl.cpp:(.text+0x752): undefined reference to
`g_utf8_get_char'
sbStringTransformImpl.cpp:(.text+0x75d): undefined reference to
`g_unichar_type'
sbStringTransformImpl.cpp:(.text+0x794): undefined reference to
`g_utf8_offset_to_pointer'
sbStringTransformImpl.cpp:(.text+0x79c): undefined reference to
`g_utf8_get_char'
sbStringTransformImpl.cpp:(.text+0x821): undefined reference to `g_free'
collect2: ld returned 1 exit status
make[5]: *** [sbIntl.so] Error 1
make[5]: Leaving directory
`/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/components/intl/src'


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

* Re: [devel] проблема с songbird и --as-needed
  2009-07-11 13:29   ` Aelya Grevnyov
@ 2009-07-11 13:34     ` Andrey Rahmatullin
  2009-07-11 13:40     ` Alexey I. Froloff
  1 sibling, 0 replies; 6+ messages in thread
From: Andrey Rahmatullin @ 2009-07-11 13:34 UTC (permalink / raw)
  To: devel

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

On Sat, Jul 11, 2009 at 09:29:19PM +0800, Aelya Grevnyov wrote:
> Как вообще посмотреть, какие символы есть в библиотеке?
nm -CD файл | vgrep[1] символы с адресом

Ещё findsym(1) есть.

[1] http://catb.org/jargon/html/V/vgrep.html

> sbStringTransformImpl.cpp:(.text+0x398): undefined reference to
> `g_utf8_strdown'
Это glib2 скорее всего.
$ nm -CD /usr/lib/libglib-2.0.so |grep g_utf8_strdown
42eba6a0 T g_utf8_strdown
Да, так и есть.

-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(6):

> вопрос: возможно ли сделать так, чтобы и курсора было тоже два,
> по одному на мых?
Боюсь, за ответ меня привлекут по чему-нить антиалкогольному. :)
		-- mike in community@

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

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

* Re: [devel] проблема с songbird и --as-needed
  2009-07-11 13:29   ` Aelya Grevnyov
  2009-07-11 13:34     ` Andrey Rahmatullin
@ 2009-07-11 13:40     ` Alexey I. Froloff
  2009-07-11 21:48       ` Aelya Grevnyov
  1 sibling, 1 reply; 6+ messages in thread
From: Alexey I. Froloff @ 2009-07-11 13:40 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Sat, Jul 11, 2009 at 09:29:19PM +0800, Aelya Grevnyov wrote:
> g++ -o sbIntl.so -Wl,-rpath,/usr/lib/songbird -Wl,-z,defs
> -Wl,-rpath-link,/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/dist/xulrunner
> -shared -lglib-2.0   -lm
Вот это:  ^^^^^^^^^^^^^^^^
> -L/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib
> sbStringTransform.o sbIntlModule.o sbArticlesData.o
> sbStringTransformImpl.o -lxpcomglue_s -lunicharutil_external_s -lxpcom
> -lplds4 -lnspr4
Вот сюда:         ^^^

-- 
Regards,
Sir Raorn.

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

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

* Re: [devel] проблема с songbird и --as-needed
  2009-07-11 13:40     ` Alexey I. Froloff
@ 2009-07-11 21:48       ` Aelya Grevnyov
  0 siblings, 0 replies; 6+ messages in thread
From: Aelya Grevnyov @ 2009-07-11 21:48 UTC (permalink / raw)
  To: ALT Linux Team development discussions

11.07.2009 21:40, Alexey I. Froloff пишет:
> On Sat, Jul 11, 2009 at 09:29:19PM +0800, Aelya Grevnyov wrote:
>> g++ -o sbIntl.so -Wl,-rpath,/usr/lib/songbird -Wl,-z,defs
>> -Wl,-rpath-link,/tmp/.private/gray_graff/RPM/BUILD/Songbird/compiled/dist/xulrunner
>> -shared -lglib-2.0   -lm
> Вот это:  ^^^^^^^^^^^^^^^^
>> -L/tmp/.private/gray_graff/RPM/BUILD/Songbird/dependencies/linux-i686/mozilla/release/lib
>> sbStringTransform.o sbIntlModule.o sbArticlesData.o
>> sbStringTransformImpl.o -lxpcomglue_s -lunicharutil_external_s -lxpcom
>> -lplds4 -lnspr4
> Вот сюда:         ^^^

Всем спасибо за подсказки!
Поделие ушло в сизиф
Надеюсь, что на x86_64 соберется


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

end of thread, other threads:[~2009-07-11 21:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-10 10:33 [devel] проблема с songbird и --as-needed Aelya Grevnyov
2009-07-10 17:44 ` Andrey Rahmatullin
2009-07-11 13:29   ` Aelya Grevnyov
2009-07-11 13:34     ` Andrey Rahmatullin
2009-07-11 13:40     ` Alexey I. Froloff
2009-07-11 21:48       ` Aelya Grevnyov

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