Mailinglist Archive: opensuse-factory (507 mails)

< Previous Next >
Re: [opensuse-factory] linker error in Factory
  • From: Marcus Meissner <meissner@xxxxxxx>
  • Date: Mon, 6 Jul 2009 11:51:21 +0200
  • Message-id: <20090706095121.GA11710@xxxxxxx>
On Mon, Jul 06, 2009 at 11:48:44AM +0200, Wolfgang Rosenauer wrote:
Hi,

there is a strange (to me) linker error in Factory for the package
MozillaFirefox:

https://build.opensuse.org/package/live_build_log?arch=i586&package=MozillaFirefox&project=openSUSE%3AFactory&repository=standard

The needed libraries are there and also referenced in the linker command.
I can reproduce the error when building locally with osc build but I
can't really find the issue as executing the very same linker command
manually works without throwing errors.

I'm a bit confused. Anyone got a hint?

It is a --as-needed artefact I think.

export SUSE_ASNEEDED=0

at %build

or fix the bug:

reorder the link line:
...xulrunner-devel-1.9.1.0/bin -lxpcom -lxul
-L/usr/lib/xulrunner-devel-1.9.1.0/bin -L/usr/lib -lplds4 -lplc4 -lnspr4
-lpthread -ldl /usr/lib/xulrunner-devel-1.9.1.0/lib/libmozreg_s.a -lgtk-x11-2.0
-latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfreetype -lz -lfontconfig -lgdk-x11-2.0
-lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject

-lplc4 needs to be after /usr/lib/xulrunner-devel-1.9.1.0/lib/libmozreg_s.a

Ciao, Marcus
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >
References