You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Selvamohan Neethiraj (JIRA)" <ji...@apache.org> on 2016/07/18 20:17:20 UTC

[jira] [Assigned] (RANGER-1103) Build fails due to missing "security/pam_appl.h"

     [ https://issues.apache.org/jira/browse/RANGER-1103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Selvamohan Neethiraj reassigned RANGER-1103:
--------------------------------------------

    Assignee: Selvamohan Neethiraj

> 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
>
> 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)