Mailinglist Archive: opensuse-packaging (129 mails)

< Previous Next >
Re: [opensuse-packaging] Different gcc behaviour in osc chroot and on host system
On Fri, Apr 3, 2015 at 10:51 AM, Stanislav Baiduzhyi
<baiduzhyi.devel@xxxxxxxxx> wrote:
While trying to build customized openjdk package, I've encountered interesting
thing... The command, listed below, works fine on host system but fails on
chrooted system (both systems are openSUSE 13.2 with stock gcc). Experimenting
with it showed that it starts to work as soon as I move '-lz' from the
beginning of the command to the very end.

The failure is exactly like here, with undefined references to zlib:

I've found the fix on openSUSE Java:Factory project, so the question is about
difference between host and chroot. What can be the cause of such a different

Yes, the default linker behaviour (-Wl, --no-as-needed) you get when
running outside the build system is wrong but backward compatible :-)
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >