iwasakims opened a new pull request #2886:
URL: https://github.com/apache/hadoop/pull/2886


   https://issues.apache.org/jira/browse/HADOOP-17569
   
   `strerror` of glibc >= 2.32 is thread safe. We can just use it. We still 
need existing code for supporting old glibc.
   https://sourceware.org/pipermail/libc-announce/2020/000029.html
   > * The deprecated symbols sys_errlist, _sys_errlist, sys_nerr, and _sys_nerr
   >   are no longer available to newly linked binaries, and their declarations
   >   have been removed from from <stdio.h>.  They are exported solely as
   >   compatibility symbols to support old binaries.  All programs should use
   >   strerror or strerror_r instead.
   > 
   > * Both strerror and strerror_l now share the same internal buffer in the
   >   calling thread, meaning that the returned string pointer may be invalided
   >   or contents might be overwritten on subsequent calls in the same thread 
or
   >   if the thread is terminated.  It makes strerror MT-safe.
   
   In addition, I added `-fcommon` to CFLAGS for building code of 
hadoop-hdfs-native-client since `-fno-common` (default from GCC 10.0) break the 
build.
   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85678
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to