[opensuse-buildservice] infuriating buildservice behaviour - "undefined reference to ..."
Hi all, I have several packages on home:lemmy04 that fail to build for openSUSE 11.2, with the most infuriating symptoms, most prevalent being linker errors of the "undefined reference to..." kind. The puzzle is, the same packages build just fine locally on my 11.2 laptop, and they build just fine for openSUSE < 11.2... Any helpful ideas? thanks, MH -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Freitag 20 November 2009 schrieb Mathias Homann:
openSUSE 11.2 uses -Wl,-as-needed as default when building in our build environment. You can disable it in your package with export SUSE_ASNEEDED=0 or you can fix your packages to link all packages they rely on in the right order. For more details, check the opensuse-packaging archive - the question belongs there anyway I'd think. Greetings, Stephan -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2009-11-20 12:29:27 +0100, Mathias Homann wrote:
http://en.opensuse.org/Packaging/Fixing darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, 20 Nov 2009 12:29:27 +0100, you wrote:
The puzzle is, the same packages build just fine locally on my 11.2 laptop, and they build just fine for openSUSE < 11.2...
That's probably because we switched to using the as-needed switch to ld which makes ordering of libraries necessary, i.e. libraries fullfilling the needs of other libraries need to come after them in the command line. So either change the makefiles to use the right ordering or use export SUSE_ASNEEDED=0 in your spec. Philipp -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
I guess you have a similar problem to me. I had strange problems with readline. Marcus Rueckert darix@opensuse.se gave the following resonse: ----- snip Since 11.2 uses default --as-needed for linking, the order of libraries is important. -lreadline should be farther to the right side. As temporary workaround you can add export SUSE_ASNEEDED=0 to the begin of the %build section. Ciao, Marcus ---- snip Some more information: http://en.opensuse.org/Packaging/Fixing Detlef On Fri, 20 Nov 2009 12:29:27 +0100 Mathias Homann <admin@eregion.de> wrote:
-- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (5)
-
Detlef Steuer
-
Marcus Rueckert
-
Mathias Homann
-
Philipp Thomas
-
Stephan Kulow