Project

Profile

Help

Bug #2697

closed

on Ubuntu make command gives error

Added by Siebe Jongebloed over 8 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Normal
Category:
PHP Build
Start date:
2016-04-05
Due date:
% Done:

0%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
libsaxon-HEC-setup64-v1.0.0.zip
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

When I follow instructions on http://www.saxonica.com/saxon-c/index.xml to install saxon as php-module, I get following error at the step

make:

/usr/bin/ld: cannot find -lsaxon

collect2: error: ld returned 1 exit status

make: *** [saxon.la] Error 1

Regards

Siebe Jongebloed


Related issues

Is duplicate of SaxonC - Bug #2690: saxon.so file missing from 64-bit version and wrong library reference in config.m4ClosedO'Neil Delpratt2016-03-31

Actions
Actions #1

Updated by O'Neil Delpratt over 8 years ago

  • Category set to PHP Build
  • Status changed from New to AwaitingInfo
  • Assignee set to O'Neil Delpratt
  • Priority changed from Low to Normal

Hi,

Thanks for reporting the problem you have found. The problem is with the config.m4 referencing the wrong library file name. This is a bug which duplicates the following bug issue: https://saxonica.plan.io/issues/2690

The solution you can find here: https://saxonica.plan.io/issues/2690#note-1

Please let us know if you have any other problems.

Actions #2

Updated by Siebe Jongebloed over 8 years ago

Hi,

If I changed the config.m4 file with this new content the error-message is:

/usr/bin/ld: cannot find -lsaxonhec

collect2: error: ld returned 1 exit status

make: *** [saxon.la] Error 1

Regards Siebe

Met vriendelijke groet,

Siebe Jongebloed

m: 0643 77 92 33

e:

https://www.elk-it.com

t: 085 30 30 240

e:

w: www.elk-it.com

2016-04-05 12:11 GMT+02:00 Saxonica Developer Community <

>:

Actions #3

Updated by O'Neil Delpratt over 8 years ago

Where did you install libsaxonhec.so?

Actions #4

Updated by Siebe Jongebloed over 8 years ago

I tried 2 locations:

  1. /usr/lib/Saxonica/Saxon-HEC1.0.0 with symbolic links

from /usr/lib/Saxonica/Saxon-HEC1.0.0/libsaxonhec.so

to /usr/lib/libsaxonhe.so and to /usr/lib/libsaxonhec.so

  1. ~/Saxonica/Saxon-HEC1.0.0 with symbolic links

from ~/Saxonica/Saxon-HEC1.0.0/libsaxonhec.so to /usr/lib/libsaxonhe.so and

to /usr/lib/libsaxonhec.so

Both with the same error.

Installation on ubuntu 14.04 with java pointing at

/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java.

Regards Siebe

Met vriendelijke groet,

Siebe Jongebloed

m: 0643 77 92 33

e:

https://www.elk-it.com

t: 085 30 30 240

e:

w: www.elk-it.com

2016-04-05 13:53 GMT+02:00 Saxonica Developer Community <

>:

Actions #5

Updated by O'Neil Delpratt over 8 years ago

Hi,

I ran through the installation instructuctions from the website with the same machine environment as yourself and got the same error that you reported. As mentioned in comment #1 I replaced the config.m4 with the one from the repository.

I then created a symbolic link to to the saxon library as follows:

sudo ln -s /home/ond1/work/Saxonica/Saxon-HEC1.0.0/libsaxonhec.so /usr/lib/libsaxonhec.so

The next steps are important to run again:

sudo make clean
phpize
./configure --enable-saxon
make
sudo make install

Please check again and let me know.

Actions #6

Updated by Siebe Jongebloed over 8 years ago

Hi,

I still receice same error:

/usr/bin/ld: cannot find -lsaxonhec

collect2: error: ld returned 1 exit status

make: *** [saxon.la] Error 1

Regards Siebe

Met vriendelijke groet,

Siebe Jongebloed

m: 0643 77 92 33

e:

https://www.elk-it.com

t: 085 30 30 240

e:

w: www.elk-it.com

2016-04-05 16:08 GMT+02:00 Saxonica Developer Community <

>:

Actions #7

Updated by O'Neil Delpratt over 8 years ago

I will contact you via email to discuss build problem further.

Actions #8

Updated by O'Neil Delpratt over 8 years ago

  • Is duplicate of Bug #2690: saxon.so file missing from 64-bit version and wrong library reference in config.m4 added
Actions #9

Updated by O'Neil Delpratt over 8 years ago

  • Status changed from AwaitingInfo to Rejected

I managed to resolve the build problems with the user. I think the main problem was due to bug issue #2690.

Please register to edit this issue

Also available in: Atom PDF