Project

Profile

Help

Bug #3117 ยป Bug #7889 - 2017-01-26T16_48_53Z.eml

Muhammad Rahman, 2017-01-26 17:48

 
Return-Path: <mmrs151@gmail.com>
Received: from mi010.mc1.hosteurope.de ([80.237.138.245]) by wp245.webpack.hosteurope.de running ExIM with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1cWnDv-0006ae-P4; Thu, 26 Jan 2017 17:48:35 +0100
Received: from mail-wm0-f47.google.com ([74.125.82.47]) by mx0.webpack.hosteurope.de (mi010.mc1.hosteurope.de) with esmtps (TLSv1.2:AES128-GCM-SHA256:128) id 1cWnDs-0001Rj-0g for dropbox+saxonica+f38e+saxon-c@plan.io; Thu, 26 Jan 2017 17:48:35 +0100
Received: by mail-wm0-f47.google.com with SMTP id r144so93928253wme.1 for <dropbox+saxonica+f38e+saxon-c@plan.io>; Thu, 26 Jan 2017 08:48:32 -0800
Received: by 10.28.155.141 with HTTP; Thu, 26 Jan 2017 08:48:30 -0800
Date: Thu, 26 Jan 2017 16:48:30 +0000
From: M M Rahman <mmrs151@gmail.com>
To: Saxonica Developer Community <dropbox+saxonica+f38e+saxon-c@plan.io>
Message-ID: <CALMc6DBKHzxniHLjA1tcEg4uD-QUJeR-Zkq71uef=KHPDrZeeQ@mail.gmail.com>
In-Reply-To: <redmine.journal-7888.20170126164641.3006dadbaf5fe52e@plan.io>
References: <redmine.issue-3117.20170126164402@plan.io>
<redmine.journal-7888.20170126164641.3006dadbaf5fe52e@plan.io>
Subject: Re: [Saxon/C - Bug #3117] Unable to load libsaxoneec. with missing
.so extension
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary=001a1141e446875ea50547021e26
Content-Transfer-Encoding: 7bit
Delivery-date: Thu, 26 Jan 2017 17:48:35 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:in-reply-to:references:from:date:message-id:subject:to;
bh=pWNhgXglXrrgrx6CB668RBU0R/vC+Nz8kjdT7kS6DRw=;
b=JzYJ1+DjkAF6g2Kmh12x3r2T12CXhMDw8UV6apqrhTtfk7MKZlcZ8zW94cMMpgBaVU
ozHyOPuwCWb6+8Lf0HIGS+UIlE2+PUIcgyISFbVNKeGD8QSYUVEsXPWvTuw3B4SpBrHv
yvIZF6C7VLtUvBq+kCAYyX7+yta8PWUrQ/koTCeth+THmtdKHwMxpxgmsbLpQ2XDFqBs
we3JUp06MU6vxz1PuOCzGdHcSXKagSY3uqjwSxXx5XPNrE/DoI7IWOnAZHPs8G+6UG8R
YvCdnIyqxIaOFn2+YZCFhg0iy2VsdDJePwOoi2bg9NobKhLJw6ykryzKtvGf5M1ZKT6N 1MFg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;
s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date
:message-id:subject:to; bh=pWNhgXglXrrgrx6CB668RBU0R/vC+Nz8kjdT7kS6DRw=;
b=FHUe4auZIngwa2gybAu7bwVGEvGAcuzbG1fCqDmBaGk6/HRkkFNWqi8BcyB6sELNna
+G74ulWvlMQRDrMeXp/99yKNxEjgoJqQJUm/9HU9OpPsZ5B1XCr/ZyXrSjjefgovfVfv
ARn/MBbzxTwXf0rl6y02vFTD/14P75P6bZQDViFn6dImV9aqnAycqsM7jbqGafY1Vdvj
egzaynpJoidoI7p+n+Tn+F3Esq+m4tsWeEps7+Fj2F5cjwe78VGqT7Qp9a6M0lFwBUrP
3i3oNvdT8eCuGPgllG0kVF1fjMBqAcHPaZSkXw2BP/xK2bNGI/StEXowbh0ZtQMisCRw IwBg==
X-Gm-Message-State: AIkVDXI08wW5e8i5uCCtKqXfZX9/nYyRA70/b9AnGCir6H0DFm7xeM+1vIVX+jCB3CtHw5UOO+qyOjTw+15uXA==
X-Received: by 10.28.127.13 with SMTP id a13mr3376401wmd.96.1485449311238;
Thu, 26 Jan 2017 08:48:31 -0800 (PST)
X-HE-Virus-Scanned: Yes
X-HE-Spam-Level: +++
X-HE-Spam-Score: 3.5
X-HE-Spam-Report: Content analysis details: (3.5 points) pts rule name
description ---- ----------------------
-------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE
RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.47 listed in
list.dnswl.org] 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source
[74.125.82.47 listed in dnsbl.sorbs.net] 2.5 RCVD_IN_SORBS_HTTP RBL: SORBS:
sender is open HTTP proxy server 0.0 FREEMAIL_FROM Sender email is commonly
abused enduser mail provider (mmrs151[at]gmail.com) 0.2
FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit
(mmrs151[at]gmail.com) 0.1 HTML_MESSAGE BODY: HTML included in message 0.3
HTML_FONT_FACE_BAD BODY: HTML font face is not a word -0.1 DKIM_VALID_AU
Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID
Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message
has a DKIM or DK signature, not necessarily valid
X-HE-SPF: PASSED
Envelope-to: dropbox+saxonica+f38e+saxon-c@plan.io


--001a1141e446875ea50547021e26
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi,

Just did, and the previous error is gone. However now I have other errors.

It was the quickest support I ever received :)

Thanks a lot.

Kind Regards

Muhammad Mostafizur Rahman
Senior Software Engineer
London, UK
+44(0)7782153151

On 26 January 2017 at 16:46, Saxonica Developer Community <
notifications@plan.io> wrote:

> --- In your reply, please do not write below this line ---
> Issue #3117 has been updated by O'Neil Delpratt.
>
>
> Hi,
>
> Is it possible for you to try setting the environment variable
> SAXONC_HOME=/usr/lib64 or to where you have installed the libsaxoneec.so
> library.
> ------------------------------
> Bug #3117: Unable to load libsaxoneec. with missing .so extension
> <https://saxonica.plan.io/issues/3117?pn=1#change-7888>
>
> - Author: Muhammad Rahman
> - Status: New
> - Priority: High
> - Assignee: O'Neil Delpratt
> - Category: PHP API
> - Sprint/Milestone:
> - Found in version:
> - Fixed in version:
>
> Hi,
>
> I am following to install the php saxon in the following manner. I am
> going to paste the dockerfile to reproduce the bug easily. But
> unfortunately when I try to test the php code, its keeps on telling me,
>
> "Unable to load /usr/lib64/libsaxoneec.
> Error: : Inappropriate ioctl for device
> "
>
> Here is my dockerfile. We are going to buy the license but we need to make
> sure it works for our purpose. Therefore I put the priority to high.
>
> --------------------------------------------------
> FROM php:5.5-apache
>
> 1. ca-certificates is required to download from github
> RUN apt-get -yq update \
> && apt-get install --assume-yes --no-install-recommends \
> tar zip unzip vim ssh git rsync libssl-dev ftp wget \
> php5-dev g++ apache2 gcj-jdk
>
> RUN apt-get install -y libbz2-dev \
> && docker-php-ext-install bz2
>
> WORKDIR /saxonica/
> RUN cd /saxonica
>
> RUN wget "http://www.saxonica.com/saxon-c/libsaxon-EEC-setup64-v1.0.2.zip"
> && unzip libsaxon-EEC-setup64-v1.0.2.zip
> RUN yes "" | ./libsaxon-EEC-setup64-v1.0.2
> RUN ln -s /usr/lib/ /usr/lib64
> RUN ln -s /saxonica/Saxonica/Saxon-EEC1.0.2/libsaxoneec.so
> /usr/lib/libsaxoneec.so
> RUN ln -s /saxonica/Saxonica/Saxon-EEC1.0.2/rt/ /usr/lib/rt
> RUN ln -s /saxonica/Saxonica/Saxon-EEC1.0.2/saxon-data/
> /usr/lib/saxon-data
> RUN export LD_LIBRARY_PATH=/usr/lib/rt/lib/amd64:$LD_LIBRARY_PATH
> COPY docker/copy/jetvm.conf /etc/ld.so.conf.d/jetvm.conf
> RUN ldconfig
>
> RUN cd Saxonica/Saxon-EEC1.0.2/Saxon.C.API/ && phpize && ./configure
> --enable-saxon && make && make install
> RUN echo extension=saxon.so >> /usr/local/etc/php/conf.d/saxon.ini
> RUN php5enmod saxon
> RUN echo export LD_LIBRARY_PATH=/usr/lib/rt/lib/amd64:$LD_LIBRARY_PATH >>
> /etc/apache2/envvars
> CMD ["apachectl", "-DFOREGROUND"]
> RUN php -m
> ------------------------------
>
> Thank you very much for your time.
> ------------------------------
>
> 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=mail_preferences
>
> This notification was cheerfully delivered by <https://plan.io/>
> [image: Planio] <https://plan.io/>
>

--001a1141e446875ea50547021e26
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>Just did, and the previous error =
is gone. However now I have other errors.=C2=A0</div><div><br>It was the =
quickest support I ever received :)</div><div><br></div><div>Thanks a lot=
.</div></div><div class=3D"gmail_extra"><br clear=3D"all"><div><div class=
=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir=3D"ltr">=
<div><div dir=3D"ltr"><div><font color=3D"#666666" face=3D"&#39;courier n=
ew&#39;, monospace"><font size=3D"2">Kind Regards</font></font></div><div=
><font color=3D"#666666" face=3D"&#39;courier new&#39;, monospace"><font =
size=3D"2"><br></font></font></div><font color=3D"#666666" face=3D"&#39;c=
ourier new&#39;, monospace"><font size=3D"2">Muhammad Mostafizur Rahman</=
font><br>Senior Software Engineer<br>London, UK</font><br><div><font colo=
r=3D"#666666" face=3D"&#39;courier new&#39;, monospace">+44(0)7782153151<=
/font></div></div></div></div></div></div>
<br><div class=3D"gmail_quote">On 26 January 2017 at 16:46, Saxonica Deve=
loper Community <span dir=3D"ltr">&lt;<a href=3D"mailto:notifications@pla=
n.io" target=3D"_blank">notifications@plan.io</a>&gt;</span> wrote:<br><b=
lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><u></u>









<div style=3D"font-family:&quot;ProximaNova-Regular&quot;,Helvetica,Arial=
,sans-serif;font-size:14px;line-height:1.4em;color:#333434">
<table width=3D"100%" cellspacing=3D"0" cellpadding=3D"0" style=3D"border=
-spacing:0;border-collapse:collapse;width:100%">
<tbody><tr><td class=3D"m_7238218373962684270header" style=3D"text-align:=
center;width:100%;font-family:MarketWeb,Helvetica,Arial,sans-serif;font-s=
ize:0.8em;color:#d7d7d7"><p>--- In your reply, please do not write below =
this line ---</p></td></tr>
<tr><td>Issue #3117 has been updated by O&#39;Neil Delpratt.

<ul>
</ul>

<p>Hi,</p>


<p>Is it possible for you to try setting the environment variable SAXONC=
_HOME=3D/usr/lib64 or to where you have installed the libsaxoneec.so libr=
ary.</p>
<hr style=3D"width:100%;height:1px;background:#ccc;border:0;margin:1.2em =
0">
<h1 style=3D"font-family:&quot;ProximaNova-Bold&quot;,Helvetica,Arial,san=
s-serif;font-weight:normal;margin:0px;font-size:1.3em;line-height:1.4em">=
<a href=3D"https://saxonica.plan.io/issues/3117?pn=3D1#change-7888" style=
=3D"color:#0088b7;text-decoration:none" target=3D"_blank">Bug #3117: Unab=
le to load libsaxoneec. with missing .so extension</a></h1>

<ul>
<li>Author: Muhammad Rahman</li>
<li>Status: New</li>
<li>Priority: High</li>
<li>Assignee: O&#39;Neil Delpratt</li>
<li>Category: PHP API</li>
<li>Sprint/Milestone: </li>
<li>Found in version: </li>
<li>Fixed in version: </li>
</ul>

<p>Hi,</p>


<p>I am following to install the php saxon in the following manner. I am=
going to paste the dockerfile to reproduce the bug easily. But unfortuna=
tely when I try to test the php code, its keeps on telling me,</p>


<p>&quot;Unable to load /usr/lib64/libsaxoneec.<br>Error: : Inappropriat=
e ioctl for device<br>&quot;</p>


<p>Here is my dockerfile. We are going to buy the license but we need to=
make sure it works for our purpose. Therefore I put the priority to high=
.</p>


<p>------------------------------<wbr>--------------------<br>FROM php:5=
.5-apache</p>


<ol>
<li>ca-certificates is required to download from github<br>RUN apt-get -=
yq update \<br> &amp;&amp; apt-get install --assume-yes --no-install-r=
ecommends \<br> tar zip unzip vim ssh git rsync libssl-dev ftp wge=
t \<br> php5-dev g++ apache2 gcj-jdk</li>
</ol>


<p>RUN apt-get install -y libbz2-dev \<br> &amp;&amp; docker-php-ext-=
install bz2</p>


<p>WORKDIR /saxonica/<br>RUN cd /saxonica</p>


<p>RUN wget &quot;<a href=3D"http://www.saxonica.com/saxon-c/libsaxon-EE=
C-setup64-v1.0.2.zip" target=3D"_blank">http://www.saxonica.com/<wbr>saxo=
n-c/libsaxon-EEC-setup64-<wbr>v1.0.2.zip</a>&quot; &amp;&amp; unzip libsa=
xon-EEC-setup64-v1.0.2.<wbr>zip<br>RUN yes &quot;&quot; | ./libsaxon-EEC-=
setup64-v1.0.2<br>RUN ln -s /usr/lib/ /usr/lib64<br>RUN ln -s /saxonica/S=
axonica/Saxon-EEC1.<wbr>0.2/libsaxoneec.so /usr/lib/libsaxoneec.so<br>RUN=
ln -s /saxonica/Saxonica/Saxon-EEC1.<wbr>0.2/rt/ /usr/lib/rt<br>RUN ln -=
s /saxonica/Saxonica/Saxon-EEC1.<wbr>0.2/saxon-data/ /usr/lib/saxon-data<=
br>RUN export LD_LIBRARY_PATH=3D/usr/lib/rt/<wbr>lib/amd64:$LD_LIBRARY_PA=
TH<br>COPY docker/copy/jetvm.conf /etc/ld.so.conf.d/jetvm.conf<br>RUN ldc=
onfig</p>


<p>RUN cd Saxonica/Saxon-EEC1.0.2/Saxon.<wbr>C.API/ &amp;&amp; phpize &a=
mp;&amp; ./configure --enable-saxon &amp;&amp; make &amp;&amp; make insta=
ll<br>RUN echo extension=3Dsaxon.so &gt;&gt; /usr/local/etc/php/conf.d/<w=
br>saxon.ini<br>RUN php5enmod saxon<br>RUN echo export LD_LIBRARY_PATH=3D=
/usr/lib/rt/<wbr>lib/amd64:$LD_LIBRARY_PATH &gt;&gt; /etc/apache2/envvars=
<br>CMD [&quot;apachectl&quot;, &quot;-DFOREGROUND&quot;]<br>RUN php -m</=
p>


<hr style=3D"width:100%;height:1px;background:#ccc;border:0;margin:1.2em =
0">


<p>Thank you very much for your time.</p>


<div>
<div>


</div>

</div>

</td></tr>
<tr>
<td class=3D"m_7238218373962684270footer" style=3D"font-size:0.8em;width:=
100%">
<hr style=3D"width:100%;height:1px;background:#ccc;border:0;margin:1.2em =
0">
<p>You have received this notification because you have either subscribed=
to or are involved in a project on Saxonica Developer Community site.<br=
>To change your notification preferences, please click here: <a class=3D"=
m_7238218373962684270external" href=3D"https://saxonica.plan.io/my/accoun=
t?tour=3Dmail_preferences" style=3D"color:#0088b7" target=3D"_blank">http=
s://saxonica.plan.io/my/<wbr>account?tour=3Dmail_preferences</a></p>
</td>
<td></td>
</tr>
<tr>
<td class=3D"m_7238218373962684270planio_footer" style=3D"text-align:cent=
er;width:100%;font-family:MarketWeb,Helvetica,Arial,sans-serif;font-size:=
1.2em;color:#d7d7d7">
<br><div><a href=3D"https://plan.io/" style=3D"color:#0088b7;color:#d7d7d=
7;text-decoration:none" target=3D"_blank">This notification was cheerfull=
y delivered by</a></div>
</td>
<td></td>
</tr>
<tr><td class=3D"m_7238218373962684270planio_footer_logo" style=3D"text-a=
lign:center;width:100%"><a href=3D"https://plan.io/" title=3D"Planio" sty=
le=3D"color:#0088b7" target=3D"_blank"><img src=3D"https://assets.plan.io=
/images/planio_logo_gray_204x50.png" height=3D"25" width=3D"102" border=3D=
"0" alt=3D"Planio" style=3D"vertical-align:middle;border:none"></a></td><=
/tr>
</tbody></table>
</div>

</blockquote></div><br></div>

--001a1141e446875ea50547021e26--
    (1-1/1)