You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2019/04/03 18:28:15 UTC

[jira] [Commented] (HADOOP-16236) Update C code to run with c99 standard

    [ https://issues.apache.org/jira/browse/HADOOP-16236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16809007#comment-16809007 ] 

Eric Yang commented on HADOOP-16236:
------------------------------------

Free software foundation consider ASL 2.0 compatible with GPLv3, but ASF says this is [one way compatible|https://apache.org/licenses/GPL-compatibility.html].  GPL exemption based on [GPL exemption FAQ|https://www.gnu.org/licenses/gcc-exception-3.1-faq.en.html]:

{quote}If you did use GPL-incompatible software in conjunction with GCC during the Compilation Process, you would not be able to take advantage of this permission. Since all of the object code that GCC generates is derived from these GPLed libraries, that means you would be required to follow the terms of the GPL when propagating any of that object code. You could not use GCC to develop your own GPL-incompatible software.{quote}

From Apache point of view, GPL exemption can not be applied because compiler is working with Apache licensed source code, which is confusing and maybe incompatible.

> Update C code to run with c99 standard
> --------------------------------------
>
>                 Key: HADOOP-16236
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16236
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Eric Yang
>            Priority: Major
>
> Several files in Hadoop common uses gnu99 standard for writing code.  This includes:
> - inline assembly in bulk_crc32_x86.c
> - assignment between function pointer and ‘void *’ in SnappyCompressor.c.
> Apache httpd server and important Apache projects are using [c89 standard|https://github.com/apache/httpd/blob/16211a8cdd52251cb7ae251e693b9053fb545e20/configure.in#L636] for coding.  It would be nice if Hadoop can compile using c99 standard to avoid grey area with GPL license.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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