drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Rogers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-4756) JPAM library required by Drill does not work for Mac; provide alternative
Date Wed, 29 Jun 2016 04:43:45 GMT

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

Paul Rogers commented on DRILL-4756:
------------------------------------

To correctly build using the sources from JPam 1.1, make the following changes. In makefile:

62,63c62,63
< 	gcc -fPIC -Wall -g -c -I$(JAVA_HOME)/include Pam.c
< 	gcc -g -export-dynamic -dynamiclib -Wl -o libjpam.jnilib Pam.o -lpam -lpam_misc -ldl
-framework JavaVM
---
> 	gcc -fPIC -Wall -g -c -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/darwin Pam.c
> 	gcc -g -export-dynamic -dynamiclib -Wl -o libjpam.jnilib Pam.o -lpam -ldl -framework
JavaVM

In Pam.c:

73c73
< #include "net_sf_jpam_Pam.h"
---
> //#include "net_sf_jpam_Pam.h"
83,84c83,84
< #include <pam/pam_appl.h>
< #include <pam/pam_misc.h>
---
> #include <security/pam_appl.h>
> //#include <security/pam_misc.h>


> JPAM library required by Drill does not work for Mac; provide alternative
> -------------------------------------------------------------------------
>
>                 Key: DRILL-4756
>                 URL: https://issues.apache.org/jira/browse/DRILL-4756
>             Project: Apache Drill
>          Issue Type: Improvement
>    Affects Versions: 1.6.0
>            Reporter: Paul Rogers
>            Priority: Minor
>
> As described in the documentation (http://drill.apache.org/docs/configuring-user-authentication/)
Drill uses the JPAM library (https://sourceforge.net/projects/jpam/files/jpam/jpam-1.1/) to
integrate with PAM for security.
> Many people use Macs to prototype, develop and test Drill prior to deployment. However,
the jpam native library provided by the above project is from 2007 and does not work on modern
Macs. Instead, we get the following error:
> Caused by: java.lang.UnsatisfiedLinkError: /Users/fred/play/drill-site/lib/libjpam.jnilib:
dlopen(/Users/fred/play/drill-site/lib/libjpam.jnilib, 1): no suitable image found.  Did find:
>         /Users/fred/play/drill-site/lib/libjpam.jnilib: mach-o, but wrong architecture
> One can recompile the code, but the code itself is outdated with respect to the modern
Mac.
> Drill should provide a working build of the library for the Mac to help with pre-deployment
efforts.



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

Mime
View raw message