[pkg-uWSGI-devel] Bug#854535: uwsgi: dpkg-buildpackage fails due to open with O_TMPFILE

Masahiro Yamada masahiro17.yamada at toshiba.co.jp
Wed Feb 8 05:05:50 UTC 2017


Package: uwsgi
Version: 2.0.7-1
Severity: serious
Tags: patch
Justification: fails to build from source (but built successfully in the past)

Dear Maintainer,

When I run dpkg-buildpackage for uwsgi, it fails with the following error.

 $ sudo apt-get source uwsgi
 $ cd uwsgi-2.0.7
 $ sudo dpkg-buildpackage -us -uc
...
...
...
"08 February 2017 13:16:43\"" -o core/sendfile.o core/sendfile.c
In file included from /usr/include/fcntl.h:289:0,
                 from /usr/include/x86_64-linux-gnu/sys/file.h:24,
                 from ./uwsgi.h:265,
                 from core/utils.c:1:
In function ‘open’,
    inlined from ‘uwsgi_tmpfd’ at core/utils.c:3501:5:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
    __open_missing_mode ();
    ^

This error is caused by updated libc6.
The changelog in libc6(2.19-18+deb8u6) says as follows.

    - Fix open and openat functions with O_TMPFILE.  Closes: #832521.

I found a fix to this issue in upstream.

https://github.com/unbit/uwsgi/commit/f6e5db93d8344d7f09ee5304394136d6f5cd7a38

Thank you and Best Regards,

-- System Information:
Debian Release: 8.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages uwsgi depends on:
ii  initscripts  2.88dsf-59
ii  lsb-base     4.1+Debian13+nmu1
ii  uwsgi-core   2.0.7-1

uwsgi recommends no packages.

uwsgi suggests no packages.

-- no debconf information



More information about the pkg-uWSGI-devel mailing list