Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1103

Build fails due to missing "security/pam_appl.h"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0, 0.6.1
    • None
    • None

    Description

      On Linux Mint 17.3 (Ubuntu 14.04.3 LTS) JDK 1.8 the build fails as follows:

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

      The fix, according to https://github.com/basho/riak/issues/724, is to install libpam0g-dev:

      sudo apt-get install libpam0g-dev 
      

      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.

      Attachments

        Activity

          People

            sneethiraj Selvamohan Neethiraj
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: