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

rangerqa commented on RANGER-1103:
----------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment
  
http://issues.apache.org/jira/secure/attachment/12818641/0001-RANGER-1103-added-maven-and-java-required-version-to.patch
  against master revision 55c55ca.

    {color:red}-1 patch{color}.  master compilation may be broken.

Console output: 
https://builds.apache.org/job/PreCommit-RANGER-Build/301//console

This message is automatically generated.

> Build fails due to missing "security/pam_appl.h"
> ------------------------------------------------
>
>                 Key: RANGER-1103
>                 URL: https://issues.apache.org/jira/browse/RANGER-1103
>             Project: Ranger
>          Issue Type: Bug
>    Affects Versions: 0.6.0
>            Reporter: Julian Hyde
>            Assignee: Selvamohan Neethiraj
>             Fix For: 0.7.0
>
>         Attachments: 
> 0001-RANGER-1103-added-maven-and-java-required-version-to.patch
>
>
> On Linux Mint 17.3 (Ubuntu 14.04.3 LTS) JDK 1.8 the build fails as follows:
> {noformat}
> $ mvn -DskipTests package
> ...
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building PAM Authenticator 0.6.0
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- native-maven-plugin:1.0-alpha-8:initialize (default-initialize) @ 
> pamCredValidator ---
> [INFO] 
> [INFO] --- native-maven-plugin:1.0-alpha-8:unzipinc (default-unzipinc) @ 
> pamCredValidator ---
> [INFO] 
> [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ 
> pamCredValidator ---
> [INFO] 
> [INFO] --- maven-antrun-plugin:1.7:run (default) @ pamCredValidator ---
> [INFO] Executing tasks
> main:
> [INFO] Executed tasks
> [INFO] 
> [INFO] --- native-maven-plugin:1.0-alpha-8:compile (default-compile) @ 
> pamCredValidator ---
> [INFO] /bin/sh -c cd 
> /home/jhyde/apache/dist/dev/incubator/ranger/0.6.0-incubating-rc1/apache-ranger-incubating-0.6.0/unixauthpam
>  && gcc 
> -I/home/jhyde/apache/dist/dev/incubator/ranger/0.6.0-incubating-rc1/apache-ranger-incubating-0.6.0/unixauthpam/src/main/c
>  -o 
> /home/jhyde/apache/dist/dev/incubator/ranger/0.6.0-incubating-rc1/apache-ranger-incubating-0.6.0/unixauthpam/target/objs/pamCredValidator.o
>  -c 
> /home/jhyde/apache/dist/dev/incubator/ranger/0.6.0-incubating-rc1/apache-ranger-incubating-0.6.0/unixauthpam/src/main/c/pamCredValidator.c
> /home/jhyde/apache/dist/dev/incubator/ranger/0.6.0-incubating-rc1/apache-ranger-incubating-0.6.0/unixauthpam/src/main/c/pamCredValidator.c:33:31:
>  fatal error: security/pam_appl.h: No such file or directory
>  #include <security/pam_appl.h>
>                                ^
> compilation terminated.
> $ uname -a
> Linux marmite 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 
> UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
> $ java -version
> java version "1.8.0_72"
> Java(TM) SE Runtime Environment (build 1.8.0_72-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 25.72-b15, mixed mode)
> {noformat}
> The fix, according to https://github.com/basho/riak/issues/724, is to install 
> libpam0g-dev:
> {code}
> sudo apt-get install libpam0g-dev 
> {code}
> After I installed that package, the build succeeded.
> This should be documented in README.txt. And also a fix for Redhat and OS X, 
> if different. README.txt should also state what are the supported JDK 
> versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to