Matthew Landauer
2008-Apr-07 12:00 UTC
[Xapian-discuss] Problem compiling php bindings under OS X
I'm having some trouble getting the xapian 1.0.6 php bindings under OS
X 10.5.2 working.
The python and ruby bindings work fine.
$ cd xapian-bindings-1.0.6
$ ./configure
$ make
All works fine so far
but doing
$ make check
Making check in python
make check-recursive
Making check in docs
make[3]: Nothing to be done for `check'.
make check-TESTS
1 tests passed, no failures
PASS: smoketest.py
19 tests passed, no failures
PASS: pythontest.py
=================All 2 tests passed
=================Making check in php
make check-recursive
Making check in docs
make[3]: Nothing to be done for `check'.
make check-TESTS
dyld: NSLinkModule() error
dyld: Symbol not found: _executor_globals
Referenced from: /Users/matthewl/build/xapian-bindings-1.0.6/
php/.libs/xapian.so
Expected in: dynamic lookup
/bin/sh: line 1: 81926 Trace/BPT trap /usr/bin/php -q -n -d
safe_mode=off -d enable_dl=on -d extension_dir=/Users/matthewl/build/
xapian-bindings-1.0.6/php/.libs ${dir}$tst
FAIL: smoketest.php
==================1 of 1 tests failed
==================make[4]: *** [check-TESTS] Error 1
make[3]: *** [check-am] Error 2
make[2]: *** [check-recursive] Error 1
make[1]: *** [check] Error 2
make: *** [check-recursive] Error 1
Any help much appreciated!
Thanks,
Matthew
Matthew Landauer
matthew at openaustralia.org
Olly Betts
2008-Apr-07 13:37 UTC
[Xapian-discuss] Problem compiling php bindings under OS X
On Mon, Apr 07, 2008 at 10:00:39PM +1000, Matthew Landauer wrote:> I'm having some trouble getting the xapian 1.0.6 php bindings under OS > X 10.5.2 working.Has any previous version on the PHP bindings worked?> Making check in php > make check-recursive > Making check in docs > make[3]: Nothing to be done for `check'. > make check-TESTS > dyld: NSLinkModule() error > dyld: Symbol not found: _executor_globalsGoogle pulls up quite a few similar reports for various projects, but I didn't spot any with suggested solutions which were reported to work in the handful I looked at: http://www.google.com/search?q=dyld:+Symbol+not+found:+_executor_globals> Referenced from: /Users/matthewl/build/xapian-bindings-1.0.6/ > php/.libs/xapian.so > Expected in: dynamic lookupUnfortunately Mac OS X seems to have rather unusual complications in shared object/library handling compared to most Unix platforms, and we've needed special cases for it for other languages (I don't recall seeing anything like this before though). I don't have access to the platform myself, so I have to rely on people who do to work out what's going on before fixing problems. If anyone knows how to get this to work, I'd love to know. Cheers, Olly