|
Return-Path: <malcolm@notyourhomework.net>
|
|
Received: from m.launchco.com ([127.0.0.1]) by m.launchco.com (Dovecot) with LMTP id Lyc8LyvsQ1sKOAAAa1G0NA for <dropbox@plan.io>; Tue, 10 Jul 2018 01:13:47 +0200
|
|
Received: from smtp1.servage.net (smtp1.servage.net [77.232.76.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by m.launchco.com (Postfix) with ESMTPS id AD6DB20292 for <inbox+saxonica+f38e+saxon-c@plan.io>; Tue, 10 Jul 2018 01:13:47 +0200
|
|
Received: from [192.168.0.67] (219-89-80-46.adsl.xtra.co.nz [219.89.80.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.servage.net (Postfix) with ESMTPSA id 1B730C03A1 for <inbox+saxonica+f38e+saxon-c@plan.io>; Tue, 10 Jul 2018 01:13:45 +0200
|
|
Date: Tue, 10 Jul 2018 11:13:40 +1200
|
|
From: Malcolm Fitzgerald <malcolm@notyourhomework.net>
|
|
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-c@plan.io>
|
|
Message-ID: <4BFE884E-D949-4404-A61E-E1E4516A1157@notyourhomework.net>
|
|
In-Reply-To: <redmine.journal-11830.20180709085309.4478cfc65f3925ff@plan.io>
|
|
References: <redmine.issue-3837.20180709001011@plan.io>
|
|
<redmine.journal-11830.20180709085309.4478cfc65f3925ff@plan.io>
|
|
Subject: Re: [Saxon/C - Support #3837] Cannot locate the built PHP extension
|
|
in Saxon/HE for Mac OS X
|
|
Mime-Version: 1.0
|
|
Content-Type: multipart/alternative;
|
|
boundary="Apple-Mail=_845B4E9D-3127-463E-B601-F04E23D0F92D"
|
|
Content-Transfer-Encoding: 7bit
|
|
X-He-Spam-Score: -2.6
|
|
Delivered-To: <dropbox@plan.io>
|
|
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on m.launchco.com
|
|
X-Spam-Level:
|
|
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE,
|
|
RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham
|
|
autolearn_force=no version=3.4.0
|
|
X-Spam-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at
|
|
http://www.dnswl.org/, low * trust * [77.232.76.11 listed in list.dnswl.org] *
|
|
-0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) * [77.232.76.11 listed in
|
|
wl.mailspike.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% *
|
|
[score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.0
|
|
RCVD_IN_MSPIKE_WL Mailspike good senders
|
|
X-Spam-Score: -2.6
|
|
Envelope-to: inbox+saxonica+f38e+saxon-c@plan.io
|
|
Authentication-Results: m.launchco.com; dmarc=none
|
|
header.from=notyourhomework.net
|
|
X-Mailer: Apple Mail (2.3445.8.2)
|
|
|
|
|
|
--Apple-Mail=_845B4E9D-3127-463E-B601-F04E23D0F92D
|
|
Content-Type: text/plain;
|
|
charset=us-ascii
|
|
Content-Transfer-Encoding: quoted-printable
|
|
|
|
Thanks for your suggestions. I followed your advice, using DYLD_LIBRARY_P=
|
|
ATH. =
|
|
|
|
|
|
I located jni.h in /System/Library/Frameworks/JavaVM.framework/Headers an=
|
|
d modified the environment to include that path, however I still get the =
|
|
same error when I run make. =
|
|
|
|
|
|
I tried modifying SaxonCGlue.h to use that version of jni.h and still got=
|
|
the same error. =
|
|
|
|
|
|
I downloaded jni.h and jni_md.h and installed them locally and ran make. =
|
|
A different set of errors were described. So I copied jni.h and jni_md.h =
|
|
into the working directory and ran make again. The same set of errors wer=
|
|
e found. =
|
|
|
|
|
|
I'm not familiar with building code from sources, so I'm probably bumping=
|
|
into problems that are trivial. In any case, the errors are shown below.=
|
|
=
|
|
|
|
|
|
/bin/sh /Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.AP=
|
|
I/libtool --mode=3Dcompile cc -I. -I/Users/malcolm/Downloads/libsaxon-HE=
|
|
C-mac-setup-v1.1.0/Saxon.C.API -DPHP_ATOM_INC -I/Users/malcolm/Downloads/=
|
|
libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/include -I/Users/malcolm/Downlo=
|
|
ads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/main -I/Users/malcolm/Downl=
|
|
oads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API -I/usr/include/php -I/usr/=
|
|
include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/i=
|
|
nclude/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 =
|
|
-c /Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/Sa=
|
|
xonCGlue.c -o SaxonCGlue.lo
|
|
cc -I. -I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.=
|
|
API -DPHP_ATOM_INC -I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1=
|
|
.0/Saxon.C.API/include -I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-=
|
|
v1.1.0/Saxon.C.API/main -I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup=
|
|
-v1.1.0/Saxon.C.API -I/usr/include/php -I/usr/include/php/main -I/usr/inc=
|
|
lude/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/inclu=
|
|
de/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/malcolm/Downloads/li=
|
|
bsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/SaxonCGlue.c -fno-common -DPIC -=
|
|
o .libs/SaxonCGlue.o
|
|
In file included from /Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.=
|
|
1.0/Saxon.C.API/SaxonCGlue.c:1:
|
|
./SaxonCGlue.h:37:23: error: cannot combine with previous 'char' declarat=
|
|
ion specifier
|
|
typedef unsigned char bool;
|
|
^
|
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool=
|
|
chain/usr/lib/clang/9.1.0/include/stdbool.h:31:14: note:
|
|
expanded from macro 'bool'
|
|
#define bool _Bool
|
|
^
|
|
In file included from /Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.=
|
|
1.0/Saxon.C.API/SaxonCGlue.c:1:
|
|
./SaxonCGlue.h:37:1: warning: typedef requires a name [-Wmissing-declarat=
|
|
ions]
|
|
typedef unsigned char bool;
|
|
^~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
./SaxonCGlue.h:38:19: error: expected identifier or '('
|
|
static const bool false =3D 0;
|
|
^
|
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool=
|
|
chain/usr/lib/clang/9.1.0/include/stdbool.h:33:15: note:
|
|
expanded from macro 'false'
|
|
#define false 0
|
|
^
|
|
In file included from /Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.=
|
|
1.0/Saxon.C.API/SaxonCGlue.c:1:
|
|
./SaxonCGlue.h:39:19: error: expected identifier or '('
|
|
static const bool true =3D 1;
|
|
^
|
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool=
|
|
chain/usr/lib/clang/9.1.0/include/stdbool.h:32:14: note:
|
|
expanded from macro 'true'
|
|
#define true 1
|
|
^
|
|
/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/SaxonC=
|
|
Glue.c:300:118: error: expected ')'
|
|
jobject createSaxonProcessor (JNIEnv* penv, jclass myClassInDll, const ch=
|
|
ar * arguments, jobject argument1, jboolean license)
|
|
=
|
|
^
|
|
./SaxonCGlue.h:50:19: note: expanded from macro 'license'
|
|
#define license false
|
|
^
|
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool=
|
|
chain/usr/lib/clang/9.1.0/include/stdbool.h:33:15: note:
|
|
expanded from macro 'false'
|
|
#define false 0
|
|
^
|
|
/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/SaxonC=
|
|
Glue.c:300:30: note: to match this '('
|
|
jobject createSaxonProcessor (JNIEnv* penv, jclass myClassInDll, const ch=
|
|
ar * arguments, jobject argument1, jboolean license)
|
|
^
|
|
/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/SaxonC=
|
|
Glue.c:300:118: error: parameter name omitted
|
|
jobject createSaxonProcessor (JNIEnv* penv, jclass myClassInDll, const ch=
|
|
ar * arguments, jobject argument1, jboolean license)
|
|
=
|
|
^
|
|
./SaxonCGlue.h:50:19: note: expanded from macro 'license'
|
|
#define license false
|
|
^
|
|
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool=
|
|
chain/usr/lib/clang/9.1.0/include/stdbool.h:33:15: note:
|
|
expanded from macro 'false'
|
|
#define false 0
|
|
^
|
|
1 warning and 5 errors generated.
|
|
make: *** [SaxonCGlue.lo] Error 1
|
|
|
|
~
|
|
|
|
|
|
|
|
> On 9/07/2018, at 8:53 PM, Saxonica Developer Community <notifications@p=
|
|
lan.io> wrote:
|
|
> =
|
|
|
|
> --- In your reply, please do not write below this line ---
|
|
> =
|
|
|
|
> Issue #3837 <https://saxonica.plan.io/issues/3837?pn=3D1#change-11830> =
|
|
has been updated by O'Neil Delpratt.
|
|
> Hi,
|
|
> =
|
|
|
|
> You can add the jni files to the environment variable LD_LIBRARY_PATH O=
|
|
n a linux machine it is can usually be found here: /usr/lib/jvm/java-6-op=
|
|
enjdk-amd64/include/linux
|
|
> =
|
|
|
|
> export LD_LIBRARY_PATH=3D/usr/lib/rt/amd64:/usr/lib/jvm/java-6-openjdk-=
|
|
amd64/include/linux:/usr/lib/jvm/java-6-openjdk-amd64/include:$LD_LIBRARY=
|
|
_PATH
|
|
> =
|
|
|
|
> You could also try adding the JAVA_HOME include to the CPLUS_INCLUDE_PA=
|
|
TH variable.
|
|
> =
|
|
|
|
> CPLUS_INCLUDE_PATH=3D$JAVA_HOME/include/linux:$JAVA_HOME/include export=
|
|
CPLUS_INCLUDE_PATH
|
|
> =
|
|
|
|
> Alternately you can edit references of jni.h in SaxonCGlue.h to a local=
|
|
copy:
|
|
> =
|
|
|
|
> change:
|
|
> =
|
|
|
|
> #include <jni.h>
|
|
> To:
|
|
> =
|
|
|
|
> #include "jni/jni.h"
|
|
> You can download here: https://dev.saxonica.com/repos/archive/opensourc=
|
|
e/latest9.8/hec/Saxon.C.API/jni/ <https://dev.saxonica.com/repos/archive/=
|
|
opensource/latest9.8/hec/Saxon.C.API/jni/>
|
|
> Support #3837: Cannot locate the built PHP extension in Saxon/HE for Ma=
|
|
c OS X <https://saxonica.plan.io/issues/3837?pn=3D1#change-11830>
|
|
> Author: Malcolm Fitzgerald
|
|
> Status: New
|
|
> Priority: Low
|
|
> Assignee: =
|
|
|
|
> Category: =
|
|
|
|
> Sprint/Milestone: =
|
|
|
|
> Found in version: =
|
|
|
|
> The install docs say "A built php extension module is included in the S=
|
|
axon/C distribution, see the directory 'php-library-module'. See the file=
|
|
saxon.so (Available for Linux and Mac OS). This was built using the php =
|
|
7.2 version."
|
|
> =
|
|
|
|
> I can't see php-library-module in the zip download.
|
|
> =
|
|
|
|
> I've attempted to build the module but the build fails because jni.h ca=
|
|
nnot be found.
|
|
> =
|
|
|
|
> any suggestions?
|
|
> =
|
|
|
|
> Malcolm
|
|
> =
|
|
|
|
> You have received this notification because you have either subscribed =
|
|
to or are involved in a project on Saxonica Developer Community site. To =
|
|
change your notification preferences, please click here: https://saxonica=
|
|
.plan.io/my/account?tour=3Dmail_preferences <https://saxonica.plan.io/my/=
|
|
account?tour=3Dmail_preferences> =
|
|
|
|
> =
|
|
|
|
> This notification was cheerfully delivered by <https://plan.io/> =
|
|
|
|
> <https://plan.io/>
|
|
|
|
--Apple-Mail=_845B4E9D-3127-463E-B601-F04E23D0F92D
|
|
Content-Type: text/html;
|
|
charset=us-ascii
|
|
Content-Transfer-Encoding: quoted-printable
|
|
|
|
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; chars=
|
|
et=3Dus-ascii"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-=
|
|
mode: space; line-break: after-white-space;" class=3D""><div class=3D"">T=
|
|
hanks for your suggestions. I followed your advice, using DYLD_LIBRARY_PA=
|
|
TH. </div><div class=3D""><br class=3D""></div>I located jni.h in&nb=
|
|
sp;/System/Library/Frameworks/JavaVM.framework/Headers and modified the e=
|
|
nvironment to include that path, however I still get the same error when =
|
|
I run make. <br class=3D""><div><br class=3D""></div><div>I tried mo=
|
|
difying SaxonCGlue.h to use that version of jni.h and still got the same =
|
|
error. </div><div><br class=3D""></div><div>I downloaded jni.h and j=
|
|
ni_md.h and installed them locally and ran make. A different set of error=
|
|
s were described. So I copied jni.h and jni_md.h into the working directo=
|
|
ry and ran make again. The same set of errors were found. </div><div=
|
|
><br class=3D""></div><div>I'm not familiar with building code from sourc=
|
|
es, so I'm probably bumping into problems that are trivial. In any case, =
|
|
the errors are shown below. </div><div><br class=3D""></div><div><di=
|
|
v>/bin/sh /Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.=
|
|
API/libtool --mode=3Dcompile cc -I. -I/Users/malcolm/Downloads/libs=
|
|
axon-HEC-mac-setup-v1.1.0/Saxon.C.API -DPHP_ATOM_INC -I/Users/malcolm/Dow=
|
|
nloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/include -I/Users/malcolm=
|
|
/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/main -I/Users/malcol=
|
|
m/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API -I/usr/include/php =
|
|
-I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -=
|
|
I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG=
|
|
_H -g -O2 -c /Users/malcolm/Downloads/libsaxon-HEC-mac-setup=
|
|
-v1.1.0/Saxon.C.API/SaxonCGlue.c -o SaxonCGlue.lo</div><div> cc -I. =
|
|
-I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API -DPH=
|
|
P_ATOM_INC -I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon=
|
|
.C.API/include -I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/S=
|
|
axon.C.API/main -I/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/=
|
|
Saxon.C.API -I/usr/include/php -I/usr/include/php/main -I/usr/include/php=
|
|
/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/e=
|
|
xt/date/lib -DHAVE_CONFIG_H -g -O2 -c /Users/malcolm/Downloads/libsaxon-H=
|
|
EC-mac-setup-v1.1.0/Saxon.C.API/SaxonCGlue.c -fno-common -DPIC -o .=
|
|
libs/SaxonCGlue.o</div><div>In file included from /Users/malcolm/Download=
|
|
s/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API/SaxonCGlue.c:1:</div><div>./S=
|
|
axonCGlue.h:37:23: error: cannot combine with previous 'char' declaration=
|
|
specifier</div><div>typedef unsigned char bool;</div><div> =
|
|
^</div><di=
|
|
v>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xcto=
|
|
olchain/usr/lib/clang/9.1.0/include/stdbool.h:31:14: note:</div><div>&nbs=
|
|
p; expanded from macro 'bool'</div><div>#define bool _Bool<=
|
|
/div><div> ^</div><div>In =
|
|
file included from /Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0=
|
|
/Saxon.C.API/SaxonCGlue.c:1:</div><div>./SaxonCGlue.h:37:1: warning: type=
|
|
def requires a name [-Wmissing-declarations]</div><div>typedef unsigned c=
|
|
har bool;</div><div>^~~~~~~~~~~~~~~~~~~~~~~~~~</div><div>./SaxonCGlue.h:3=
|
|
8:19: error: expected identifier or '('</div><div>static const bool false=
|
|
=3D 0;</div><div> =
|
|
^</div><div>/Applications/Xcode.app/Contents/Developer/Toolchains=
|
|
/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stdbool.h:33:15: no=
|
|
te:</div><div> expanded from macro 'false'</div><div>=
|
|
#define false 0</div><div>  =
|
|
; ^</div><div>In file included from /Users/malcolm/Downloads/libsaxon-HEC=
|
|
-mac-setup-v1.1.0/Saxon.C.API/SaxonCGlue.c:1:</div><div>./SaxonCGlue.h:39=
|
|
:19: error: expected identifier or '('</div><div>static const bool true =3D=
|
|
1;</div><div> &nb=
|
|
sp; ^</div><div>/Applications/Xcode.app/Contents/Developer/Toolchains/Xco=
|
|
deDefault.xctoolchain/usr/lib/clang/9.1.0/include/stdbool.h:32:14: note:<=
|
|
/div><div> expanded from macro 'true'</div><div>#defi=
|
|
ne true 1</div><div> ^</di=
|
|
v><div>/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C.API=
|
|
/SaxonCGlue.c:300:118: error: expected ')'</div><div>jobject createSaxonP=
|
|
rocessor (JNIEnv* penv, jclass myClassInDll, const char * arguments, jobj=
|
|
ect argument1, jboolean license)</div><div> &n=
|
|
bsp;  =
|
|
; &=
|
|
nbsp; &nbs=
|
|
p; =
|
|
&nb=
|
|
sp; ^</div><div>./SaxonCGlue.h:50:19: note: expanded from ma=
|
|
cro 'license'</div><div> =
|
|
#define license false</div><div> =
|
|
&n=
|
|
bsp; ^</div><div>/Applications/Xcode.app/Contents/Developer/Toolchains/Xc=
|
|
odeDefault.xctoolchain/usr/lib/clang/9.1.0/include/stdbool.h:33:15: note:=
|
|
</div><div> expanded from macro 'false'</div><div>#de=
|
|
fine false 0</div><div> ^=
|
|
</div><div>/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.0/Saxon.C=
|
|
.API/SaxonCGlue.c:300:30: note: to match this '('</div><div>jobject creat=
|
|
eSaxonProcessor (JNIEnv* penv, jclass myClassInDll, const char * argument=
|
|
s, jobject argument1, jboolean license)</div><div> &n=
|
|
bsp;  =
|
|
; ^</div><div>/Users/malcolm/Downloads/libsaxon-HEC-mac-setup-v1.1.=
|
|
0/Saxon.C.API/SaxonCGlue.c:300:118: error: parameter name omitted</div><d=
|
|
iv>jobject createSaxonProcessor (JNIEnv* penv, jclass myClassInDll, const=
|
|
char * arguments, jobject argument1, jboolean license)</div><div> =
|
|
&nb=
|
|
sp; =
|
|
&n=
|
|
bsp;  =
|
|
; &=
|
|
nbsp; ^</div><div>./SaxonCGlue.h:50:19:=
|
|
note: expanded from macro 'license'</div><div>  =
|
|
; #define license false</div><div> &nbs=
|
|
p; =
|
|
^</div><div>/Applications/Xcode.app/Contents/=
|
|
Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include=
|
|
/stdbool.h:33:15: note:</div><div> expanded from macr=
|
|
o 'false'</div><div>#define false 0</div><div> =
|
|
^</div><div>1 warning and 5 errors generated.</div>=
|
|
<div>make: *** [SaxonCGlue.lo] Error 1</div><div><br class=3D""></div><di=
|
|
v>~</div></div><div><br class=3D""></div><div><br class=3D""></div><div><=
|
|
br class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On 9/0=
|
|
7/2018, at 8:53 PM, Saxonica Developer Community <<a href=3D"mailto:no=
|
|
tifications@plan.io" class=3D"">notifications@plan.io</a>> wrote:</div=
|
|
><br class=3D"Apple-interchange-newline"><div class=3D""><table width=3D"=
|
|
100%" cellspacing=3D"0" cellpadding=3D"0" style=3D"caret-color: rgb(51, 5=
|
|
2, 52); color: rgb(51, 52, 52); font-family: ProximaNova-Regular, Helveti=
|
|
ca, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-=
|
|
caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto;=
|
|
text-align: start; text-indent: 0px; text-transform: none; white-space: =
|
|
normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
|
|
-webkit-text-stroke-width: 0px; text-decoration: none; border-spacing: 0p=
|
|
x; border-collapse: collapse; width: 805px;" class=3D""><tbody class=3D""=
|
|
><tr class=3D""><td class=3D"header" style=3D"text-align: center; width: =
|
|
805px; font-family: MarketWeb, Helvetica, Arial, sans-serif; font-size: 0=
|
|
.8em; color: rgb(215, 215, 215);"><p class=3D"">--- In your reply, please=
|
|
do not write below this line ---</p></td></tr><tr class=3D""><td class=3D=
|
|
"">Issue<span class=3D"Apple-converted-space"> </span><a href=3D"htt=
|
|
ps://saxonica.plan.io/issues/3837?pn=3D1#change-11830" style=3D"color: rg=
|
|
b(0, 136, 183);" class=3D"">#3837</a><span class=3D"Apple-converted-space=
|
|
"> </span>has been updated by O'Neil Delpratt.<ul class=3D""></ul><p=
|
|
class=3D"">Hi,</p><p class=3D"">You can add the jni files to the environ=
|
|
ment variable LD_LIBRARY_PATH On a linux machine it is can usually be fou=
|
|
nd here: /usr/lib/jvm/java-6-openjdk-amd64/include/linux</p><p class=3D""=
|
|
>export LD_LIBRARY_PATH=3D/usr/lib/rt/amd64:/usr/lib/jvm/java-6-openjdk-a=
|
|
md64/include/linux:/usr/lib/jvm/java-6-openjdk-amd64/include:$LD_LIBRARY_=
|
|
PATH</p><p class=3D"">You could also try adding the JAVA_HOME include to =
|
|
the CPLUS_INCLUDE_PATH variable.</p><p class=3D"">CPLUS_INCLUDE_PATH=3D$J=
|
|
AVA_HOME/include/linux:$JAVA_HOME/include export CPLUS_INCLUDE_PATH</p><p=
|
|
class=3D"">Alternately you can edit references of jni.h in SaxonCGlue.h =
|
|
to a local copy:</p><p class=3D"">change:</p><pre style=3D"font-family: H=
|
|
ack, Consolas, Menlo, "Liberation Mono", Courier, monospace; fo=
|
|
nt-size: 11.899999618530273px; background-color: rgb(236, 236, 236); word=
|
|
-wrap: break-word; margin: 1em 0px; padding: 8px; border: none; border-to=
|
|
p-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-rad=
|
|
ius: 3px; border-bottom-left-radius: 3px; width: auto; overflow-x: auto; =
|
|
overflow-y: hidden;" class=3D"">#include <jni.h>
|
|
</pre><p class=3D"">To:</p><pre style=3D"font-family: Hack, Consolas, Men=
|
|
lo, "Liberation Mono", Courier, monospace; font-size: 11.899999=
|
|
618530273px; background-color: rgb(236, 236, 236); word-wrap: break-word;=
|
|
margin: 1em 0px; padding: 8px; border: none; border-top-left-radius: 3px=
|
|
; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-b=
|
|
ottom-left-radius: 3px; width: auto; overflow-x: auto; overflow-y: hidden=
|
|
;" class=3D"">#include "jni/jni.h"
|
|
</pre><p class=3D"">You can download here:<span class=3D"Apple-converted-=
|
|
space"> </span><a href=3D"https://dev.saxonica.com/repos/archive/ope=
|
|
nsource/latest9.8/hec/Saxon.C.API/jni/" style=3D"color: rgb(0, 136, 183);=
|
|
" class=3D"">https://dev.saxonica.com/repos/archive/opensource/latest9.8/=
|
|
hec/Saxon.C.API/jni/</a></p><hr style=3D"width: 805px; height: 1px; backg=
|
|
round-color: rgb(204, 204, 204); border: 0px; margin: 1.2em 0px; backgrou=
|
|
nd-position: initial initial; background-repeat: initial initial;" class=3D=
|
|
""><h1 style=3D"font-family: ProximaNova-Bold, Helvetica, Arial, sans-ser=
|
|
if; font-weight: normal; margin: 0px; font-size: 1.3em; line-height: 1.4e=
|
|
m;" class=3D""><a href=3D"https://saxonica.plan.io/issues/3837?pn=3D1#cha=
|
|
nge-11830" style=3D"color: rgb(0, 136, 183); text-decoration: none;" clas=
|
|
s=3D"">Support #3837: Cannot locate the built PHP extension in Saxon/HE f=
|
|
or Mac OS X</a></h1><ul class=3D""><li class=3D"">Author: Malcolm Fitzger=
|
|
ald</li><li class=3D"">Status: New</li><li class=3D"">Priority: Low</li><=
|
|
li class=3D"">Assignee:<span class=3D"Apple-converted-space"> </span=
|
|
></li><li class=3D"">Category:<span class=3D"Apple-converted-space"> =
|
|
;</span></li><li class=3D"">Sprint/Milestone:<span class=3D"Apple-convert=
|
|
ed-space"> </span></li><li class=3D"">Found in version:<span class=3D=
|
|
"Apple-converted-space"> </span></li></ul><p class=3D"">The install =
|
|
docs say "A built php extension module is included in the Saxon/C distrib=
|
|
ution, see the directory 'php-library-module'. See the file saxon.so (Ava=
|
|
ilable for Linux and Mac OS). This was built using the php 7.2 version."<=
|
|
/p><p class=3D"">I can't see php-library-module in the zip download.</p><=
|
|
p class=3D"">I've attempted to build the module but the build fails becau=
|
|
se jni.h cannot be found.</p><p class=3D"">any suggestions?</p><p class=3D=
|
|
"">Malcolm</p><div itemscope=3D"itemscope" itemtype=3D"http://schema.org/=
|
|
EmailMessage" class=3D""><div itemscope=3D"itemscope" itemprop=3D"action"=
|
|
itemtype=3D"http://schema.org/ViewAction" class=3D""></div></div></td></=
|
|
tr><tr class=3D""><td class=3D"footer" style=3D"font-size: 0.8em; width: =
|
|
805px;"><hr style=3D"width: 805px; height: 1px; background-color: rgb(204=
|
|
, 204, 204); border: 0px; margin: 1.2em 0px; background-position: initial=
|
|
initial; background-repeat: initial initial;" class=3D""><p class=3D"">Y=
|
|
ou have received this notification because you have either subscribed to =
|
|
or are involved in a project on Saxonica Developer Community site. To cha=
|
|
nge your notification preferences, please click here:<span class=3D"Apple=
|
|
-converted-space"> </span><a href=3D"https://saxonica.plan.io/my/acc=
|
|
ount?tour=3Dmail_preferences" style=3D"color: rgb(0, 136, 183);" class=3D=
|
|
"">https://saxonica.plan.io/my/account?tour=3Dmail_preferences</a></p></t=
|
|
d><td class=3D""></td></tr><tr class=3D""><td class=3D"planio_footer" sty=
|
|
le=3D"text-align: center; width: 805px; font-family: MarketWeb, Helvetica=
|
|
, Arial, sans-serif; font-size: 1.2em; color: rgb(215, 215, 215);"><br cl=
|
|
ass=3D""><div class=3D""><a href=3D"https://plan.io/" style=3D"color: rgb=
|
|
(215, 215, 215); text-decoration: none;" class=3D"">This notification was=
|
|
cheerfully delivered by</a></div></td><td class=3D""></td></tr><tr class=
|
|
=3D""><td class=3D"planio_footer_logo" style=3D"text-align: center; width=
|
|
: 805px;"><a href=3D"https://plan.io/" title=3D"Planio" style=3D"color: r=
|
|
gb(0, 136, 183);" class=3D""><img src=3D"https://assets.plan.io/images/pl=
|
|
anio_logo_gray_204x50.png" height=3D"25" width=3D"102" border=3D"0" alt=3D=
|
|
"Planio" style=3D"vertical-align: middle; border: none;" class=3D""></a><=
|
|
/td></tr></tbody></table></div></blockquote></div><br class=3D""></body><=
|
|
/html>=
|
|
|
|
--Apple-Mail=_845B4E9D-3127-463E-B601-F04E23D0F92D--
|