Project

Profile

Help

Bug #3837 ยป Support #11846 - 2018-07-10T16_42_36Z.eml

Malcolm Fitzgerald, 2018-07-10 18:42

 
Return-Path: <malcolm@notyourhomework.net>
Received: from m.launchco.com ([127.0.0.1]) by m.launchco.com (Dovecot) with LMTP id oOPgNTnfRFt2AgAAa1G0NA for <dropbox@plan.io>; Tue, 10 Jul 2018 18:42:32 +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 81417202B6 for <inbox+saxonica+f38e+saxon-c@plan.io>; Tue, 10 Jul 2018 18:42:32 +0200
Received: from [IPv6:2407:7000:9b87:be00:646f:814b:46a2:6e0e] (unknown [IPv6:2407:7000:9b87:be00:646f:814b:46a2:6e0e]) (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 C4BB5C05DA for <inbox+saxonica+f38e+saxon-c@plan.io>; Tue, 10 Jul 2018 18:42:30 +0200
Date: Wed, 11 Jul 2018 04:42:17 +1200
From: Malcolm Fitzgerald <malcolm@notyourhomework.net>
To: Saxonica Developer Community <inbox+saxonica+f38e+saxon-c@plan.io>
Message-ID: <81597A4E-3661-4AAC-BC51-8EFCC8C5AA9C@notyourhomework.net>
In-Reply-To: <redmine.journal-11844.20180710111448.ce780b2c924af402@plan.io>
References: <redmine.issue-3837.20180709001011@plan.io>
<redmine.journal-11844.20180710111448.ce780b2c924af402@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=_8CAF8647-9F41-48F0-AC5A-3AE88358FFC4"
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,URIBL_BLOCKED
autolearn=ham autolearn_force=no version=3.4.0
X-Spam-Report: * 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL
was blocked. * See
http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block * for more
information. * [URIs: plan.io] * -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=_8CAF8647-9F41-48F0-AC5A-3AE88358FFC4
Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hi,

To follow up, the build was successful. Installing with sudo make install=
on OSX10.13 fails because of SIP protections. Advice on StackOverflow i=
s to install to /usr/local/bin not to /usr/bin. Alternately, temporarily =
remove SIP protections, install, then replace SIP protection, which is wh=
at I did. =


Calling phpinfo() shows =

Saxon/C enabled
Saxon/C EXT version 1.1.0
Saxon 9.8.0.4
Excelsior JET 11.3 MP1

thanks for your help getting Saxon/C installed. =



Some notes from the installation. =

The readme.md provided, formatted with markdown code, includes this secti=
on: =

The DYLD_LIBRARY_PATH environment variable must be set as follows:
=

export JET_HOME=3D/usr/local/lib/rt
export DYLD_LIBRARY_PATH=3D$JET_HOME/lib/lib/jetvm:$DYLD_LIBRARY_PATH

This isn't indented, so the underscores are treated as formatting instruc=
tions, making it necessary to read the document in a plain text editor. =


Also, the path has a lib directory nested in a lib directory. Is that cor=
rect?



Malcolm




> On 10/07/2018, at 11:14 PM, Saxonica Developer Community <notifications=
@plan.io> wrote:
> =

> --- In your reply, please do not write below this line ---
> =

> Issue #3837 <https://saxonica.plan.io/issues/3837?pn=3D1#change-11844> =
has been updated by O'Neil Delpratt.
> Hi,
> =

> with those changes mentioned in comment #1 and comment #5 I have manage=
d to successfully build a PHP 7 Saxon/C extension module.
> =

> This fix will go into the next release of Saxon/C. It should work for y=
ou.
> =

> Please let me know if you succeed in your build.
> =

> 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-11844>
> Author: Malcolm Fitzgerald
> Status: In Progress
> Priority: Normal
> Assignee: O'Neil Delpratt
> Category: Mac Os X
> 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=_8CAF8647-9F41-48F0-AC5A-3AE88358FFC4
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"">Hi,<div class=3D"=
"><br class=3D""></div><div class=3D"">To follow up, the build was succes=
sful. Installing with sudo make install on OSX10.13 fails because of SIP =
protections. &nbsp;Advice on StackOverflow is to install to /usr/local/bi=
n not to /usr/bin. Alternately, temporarily remove SIP protections, insta=
ll, then replace SIP protection, which is what I did.&nbsp;</div><div cla=
ss=3D""><br class=3D""></div><div class=3D"">Calling phpinfo() shows&nbsp=
;</div><div class=3D""><table style=3D"border-collapse: collapse; border:=
0px; width: 934px; box-shadow: rgb(204, 204, 204) 1px 2px 3px; margin: 1=
em auto; color: rgb(34, 34, 34); font-family: sans-serif; orphans: 2; wid=
ows: 2; background-color: rgb(255, 255, 255);" class=3D""><tbody class=3D=
""><tr class=3D"h" style=3D"background-color: rgb(153, 153, 204); font-we=
ight: bold;"><th style=3D"border: 1px solid rgb(102, 102, 102); font-size=
: 12px; vertical-align: baseline; padding: 4px 5px; text-align: center !i=
mportant;" class=3D"">Saxon/C</th><th style=3D"border: 1px solid rgb(102,=
102, 102); font-size: 12px; vertical-align: baseline; padding: 4px 5px; =
text-align: center !important;" class=3D"">enabled</th></tr><tr class=3D"=
"><td class=3D"e" style=3D"border: 1px solid rgb(102, 102, 102); font-siz=
e: 12px; vertical-align: baseline; padding: 4px 5px; background-color: rg=
b(204, 204, 255); width: 300px; font-weight: bold;">Saxon/C EXT version</=
td><td class=3D"v" style=3D"border: 1px solid rgb(102, 102, 102); font-si=
ze: 12px; vertical-align: baseline; padding: 4px 5px; background-color: r=
gb(221, 221, 221); max-width: 300px; overflow-x: auto; word-wrap: break-w=
ord;">1.1.0</td></tr><tr class=3D""><td class=3D"e" style=3D"border: 1px =
solid rgb(102, 102, 102); font-size: 12px; vertical-align: baseline; padd=
ing: 4px 5px; background-color: rgb(204, 204, 255); width: 300px; font-we=
ight: bold;">Saxon</td><td class=3D"v" style=3D"border: 1px solid rgb(102=
, 102, 102); font-size: 12px; vertical-align: baseline; padding: 4px 5px;=
background-color: rgb(221, 221, 221); max-width: 300px; overflow-x: auto=
; word-wrap: break-word;">9.8.0.4</td></tr><tr class=3D""><td class=3D"e"=
style=3D"border: 1px solid rgb(102, 102, 102); font-size: 12px; vertical=
-align: baseline; padding: 4px 5px; background-color: rgb(204, 204, 255);=
width: 300px; font-weight: bold;">Excelsior JET</td><td class=3D"v" styl=
e=3D"border: 1px solid rgb(102, 102, 102); font-size: 12px; vertical-alig=
n: baseline; padding: 4px 5px; background-color: rgb(221, 221, 221); max-=
width: 300px; overflow-x: auto; word-wrap: break-word;">11.3 MP1</td></tr=
></tbody></table><div class=3D""><br class=3D""></div></div><div class=3D=
"">thanks for your help getting Saxon/C installed.&nbsp;</div><div class=3D=
""><br class=3D""></div><div class=3D""><br class=3D""></div><div class=3D=
"">Some notes from the installation.&nbsp;</div><div class=3D"">The readm=
e.md provided, formatted with markdown code, includes this section:&nbsp;=
</div><div class=3D""><div class=3D"">&nbsp;The DYLD_LIBRARY_PATH environ=
ment variable must be set as follows:</div><div class=3D"">&nbsp;</div><d=
iv class=3D"">&nbsp;export JET_HOME=3D/usr/local/lib/rt</div><div class=3D=
"">&nbsp;export DYLD_LIBRARY_PATH=3D$JET_HOME/lib/lib/jetvm:$DYLD_LIBRARY=
_PATH</div><div class=3D""><br class=3D""></div></div><div class=3D"">Thi=
s isn't indented, so the underscores are treated as formatting instructio=
ns, making it necessary to read the document in a plain text editor.&nbsp=
;</div><div class=3D""><br class=3D""></div><div class=3D"">Also, the pat=
h has a lib directory nested in a lib directory. Is that correct?</div><d=
iv class=3D""><br class=3D""></div><div class=3D""><br class=3D""></div><=
div class=3D""><br class=3D""></div><div class=3D"">Malcolm</div><div cla=
ss=3D""><br class=3D""></div><div class=3D""><br class=3D""></div><div cl=
ass=3D""><br class=3D""></div><div class=3D""><br class=3D""></div><div c=
lass=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On 10=
/07/2018, at 11:14 PM, Saxonica Developer Community &lt;<a href=3D"mailto=
:notifications@plan.io" class=3D"">notifications@plan.io</a>&gt; 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, =
52, 52); color: rgb(51, 52, 52); font-family: ProximaNova-Regular, Helvet=
ica, 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: 0=
px; border-collapse: collapse; width: 713px;" class=3D""><tbody class=3D"=
"><tr class=3D""><td class=3D"header" style=3D"text-align: center; width:=
713px; font-family: MarketWeb, Helvetica, Arial, sans-serif; font-size: =
0.8em; color: rgb(215, 215, 215);"><p class=3D"">--- In your reply, pleas=
e do not write below this line ---</p></td></tr><tr class=3D""><td class=3D=
"">Issue<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"htt=
ps://saxonica.plan.io/issues/3837?pn=3D1#change-11844" style=3D"color: rg=
b(0, 136, 183);" class=3D"">#3837</a><span class=3D"Apple-converted-space=
">&nbsp;</span>has been updated by O'Neil Delpratt.<ul class=3D""></ul><p=
class=3D"">Hi,</p><p class=3D"">with those changes mentioned in comment =
#1 and comment #5 I have managed to successfully build a PHP 7 Saxon/C ex=
tension module.</p><p class=3D"">This fix will go into the next release o=
f Saxon/C. It should work for you.</p><p class=3D"">Please let me know if=
you succeed in your build.</p><hr style=3D"width: 713px; height: 1px; ba=
ckground-color: rgb(204, 204, 204); border: 0px; margin: 1.2em 0px; backg=
round-position: initial initial; background-repeat: initial initial;" cla=
ss=3D""><h1 style=3D"font-family: ProximaNova-Bold, Helvetica, Arial, san=
s-serif; font-weight: normal; margin: 0px; font-size: 1.3em; line-height:=
1.4em;" class=3D""><a href=3D"https://saxonica.plan.io/issues/3837?pn=3D=
1#change-11844" style=3D"color: rgb(0, 136, 183); text-decoration: none;"=
class=3D"">Support #3837: Cannot locate the built PHP extension in Saxon=
/HE for Mac OS X</a></h1><ul class=3D""><li class=3D"">Author: Malcolm Fi=
tzgerald</li><li class=3D"">Status: In Progress</li><li class=3D"">Priori=
ty: Normal</li><li class=3D"">Assignee: O'Neil Delpratt</li><li class=3D"=
">Category: Mac Os X</li><li class=3D"">Sprint/Milestone:<span class=3D"A=
pple-converted-space">&nbsp;</span></li><li class=3D"">Found in version:<=
span class=3D"Apple-converted-space">&nbsp;</span></li></ul><p class=3D""=
>The install docs say "A built php extension module is included in the Sa=
xon/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."</p><p class=3D"">I can't see php-library-module in the zip d=
ownload.</p><p class=3D"">I've attempted to build the module but the buil=
d fails because 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" itemp=
rop=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: 713px;"><hr style=3D"width: 713px; height: 1px; background-=
color: rgb(204, 204, 204); border: 0px; margin: 1.2em 0px; background-pos=
ition: initial initial; background-repeat: initial initial;" class=3D""><=
p class=3D"">You have received this notification because you have either =
subscribed to or are involved in a project on Saxonica Developer Communit=
y site. To change your notification preferences, please click here:<span =
class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https://saxonica.=
plan.io/my/account?tour=3Dmail_preferences" style=3D"color: rgb(0, 136, 1=
83);" class=3D"">https://saxonica.plan.io/my/account?tour=3Dmail_preferen=
ces</a></p></td><td class=3D""></td></tr><tr class=3D""><td class=3D"plan=
io_footer" style=3D"text-align: center; width: 713px; font-family: Market=
Web, Helvetica, Arial, sans-serif; font-size: 1.2em; color: rgb(215, 215,=
215);"><br class=3D""><div class=3D""><a href=3D"https://plan.io/" style=
=3D"color: rgb(215, 215, 215); text-decoration: none;" class=3D"">This no=
tification 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: 713px;"><a href=3D"https://plan.io/" title=3D"Planio" sty=
le=3D"color: rgb(0, 136, 183);" class=3D""><img src=3D"https://assets.pla=
n.io/images/planio_logo_gray_204x50.png" height=3D"25" width=3D"102" bord=
er=3D"0" alt=3D"Planio" style=3D"vertical-align: middle; border: none;" c=
lass=3D""></a></td></tr></tbody></table></div></blockquote></div><br clas=
s=3D""></div></body></html>=

--Apple-Mail=_8CAF8647-9F41-48F0-AC5A-3AE88358FFC4--
    (1-1/1)