Project

Profile

Help

Bug #3699

closed

Unable to load /usr/lib/libsaxonhec64.so on centos7 httpd

Added by O'Neil Delpratt almost 7 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Linux
Start date:
2018-02-23
Due date:
% Done:

0%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
1.1
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

Reported by user:

Trying to install Saxon/C 1.1 on PHP 7.2 I get the following error in /var/log/httpd/error_log:

[core:notice] [pid 4996] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Unable to load /usr/lib/libsaxonhec64.so

Error: : Invalid argument

(Before creating a system link, I got "Error: Resource temporarily unavailable", so PHP tries at least to do something with the file.)

If I try to execute the file I get "Segmentation fault."


Related issues

Related to SaxonC - Bug #2907: php saxon.so is looking for libsaxonhec.so without so extension in both /usr/lib64 and /usr/lib and failingClosedO'Neil Delpratt2016-08-26

Actions
Actions #1

Updated by O'Neil Delpratt almost 7 years ago

Update on investigation:

I have been able to reproduce the problem. Initial thoughts were we have seen this problem. Having looked at the troubleshooting section: https://www.saxonica.com/saxon-c/index.xml#troubleshooting

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/saxon.so' - libsaxonhec.so: cannot enable executable stack as shared object requires: Permission denied in Unknown on line 0

But this problem is different. Although I executed the commands mentioned.

Usual setup check is to make sure we have set the environment variable LD_LIBRARY_PATH with the correct details and to make sure this is set in the apache server via editing the file: /etc/sysconfig/httpd (applicable to centos server).

Having done followed the installation guide the problem still persists.

Still investigating...

Actions #2

Updated by O'Neil Delpratt almost 7 years ago

  • Status changed from New to In Progress
Actions #3

Updated by O'Neil Delpratt almost 7 years ago

  • Related to Bug #2907: php saxon.so is looking for libsaxonhec.so without so extension in both /usr/lib64 and /usr/lib and failing added
Actions #4

Updated by O'Neil Delpratt almost 7 years ago

I suspect that this is a environment path problem. In phpinfo I cannot find the LD_LIBRARY_PATH variable.

Actions #5

Updated by O'Neil Delpratt almost 7 years ago

Found this on changes in centos7 to do with setting environment variables under apache:

https://bugs.centos.org/view.php?id=8321

Still getting same error Unable to load /usr/lib/libsaxonhec64.so, but at least the LD_LIBRARY_PATH is correctly being picked up now.

Actions #6

Updated by O'Neil Delpratt over 1 year ago

  • Description updated (diff)
  • Status changed from In Progress to Closed

Closing this old bug issue as we have moved forward to use GraalVM as an alternative to Excelsior Jet.

Please register to edit this issue

Also available in: Atom PDF