view xml/en/docs/sys_errlist.xml @ 2060:237b67ef69a6

Improved win32 build instructions. Added "--with-openssl-opt=no-asm" argument which is required since OpenSSL 1.0.2, as OpenSSL started to use assembler by default in 1.0.0 and then broke builds with MASM in OpenSSL 1.0.2 (ticket #1396). While here, added "--with-debug", added missing "--http-scgi-temp-path" and "--http-uwsgi-temp-path", updated OpenSSL to 1.0.2l, switched to slightly more readable one-argument-per-line style in configure example, added indentation to continuation lines, removed useless "--builddir=objs" argument ("objs" is the default), and removed useless "-f objs/Makefile" argument in nmake (nginx generates appropriate Makefile in the current directory).
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 17 Oct 2017 17:57:36 +0300
parents 764fbac1b8b4
children
line wrap: on
line source

<!--
  Copyright (C) Igor Sysoev
  Copyright (C) Nginx, Inc.
  -->

<!DOCTYPE article SYSTEM "../../../dtd/article.dtd">

<article name="A message &ldquo;&nbsp;&lsquo;sys_errlist&rsquo;
                is deprecated;
                use &lsquo;strerror&rsquo; or &lsquo;strerror_r&rsquo;
                instead&nbsp;&rdquo;"
         link="/en/docs/sys_errlist.html"
         lang="en"
         rev="1">


<section>

<para>
<initial>Q:</initial>
While building nginx version 0.7.66, 0.8.35 or higher on Linux
the following warning messages are issued:

<programlisting>
warning: `sys_errlist' is deprecated;
    use `strerror' or `strerror_r' instead
warning: `sys_nerr' is deprecated;
    use `strerror' or `strerror_r' instead
</programlisting>

</para>

<para>
<initial>A:</initial>
This is normal: nginx has to use the deprecated sys_errlist[] and sys_nerr
in signal handlers because strerror() and strerror_r() functions
are not Async-Signal-Safe.
</para>

</section>

</article>