Bug#805211: libffado: FTBFS: error: function ‘int* __errno_location() ’ is initialized like a variable

David Matthew Mattli dmm at mattli.us
Sat Nov 21 13:22:53 UTC 2015


Source: libffado
Followup-For: Bug #805211

Dear Maintainer,

In several of the tests in this package 'errno' is declared as an
int. However, errno is provided by the c runtime and may be a macro so
declaring it again as an int is an error. This is breaking the build on,
at least, sparc64. Fortunately the fix is simple: change the errno
declaration to an 'extern'. Removing the entire 'int errno' declaration
and including <cerrno> would work as well.

Included is a patch that changes the declarations:

    int errno = 0;

to

    extern int errno;

This allows the package to build on sparc64 and doesn't break the build
on other archs.

Thanks!
David

-- System Information:
Debian Release: stretch/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: sparc64

Kernel: Linux 4.3.0-gentoo (SMP w/1 CPU core)
Locale: LANG=en_SG.UTF-8, LC_CTYPE=en_SG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-test-errno-usage.patch
Type: text/x-diff
Size: 1039 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20151121/e8d1ca10/attachment.patch>


More information about the pkg-multimedia-maintainers mailing list