Mailinglist Archive: opensuse-packaging (114 mails)

< Previous Next >
Re: [opensuse-packaging] Packages failing to link
On Tuesday 2013-12-10 09:44, Stefan Seyfried wrote:

Am 09.12.2013 15:04, schrieb Michael Matz:

the last binutils update broke linking of executables in some packages.
E.g. php5. The symptom looks like this:

$ gcc -o conftest conftest.c -lc-client -lssl -lpam


undefined reference to `pam_start'

So an application linking against some libx (c-client above) needing
symbols of liby (libpam above), where libx itself isn't linked against
liby. I.e. it's expected that all users of libx need to link against liby
themself. This situation _is_ normally okay.

Except that the recent binutils (in connection with link with --as-needed
which is the default in our build-system) update broke it when those
symbols are only provided in a versioned variant (like the pam symbols

So in plain english it means in this case that build is
broken and not PHP (or in my case: mailsync) build?

Yes. Building c-client with -Wl,-z -Wl,defs should flag the
problems at build time.
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >