#29554 [Opn->Fbk]: compile failure when using --with-pspell=/usr/local
| From: | sniper@php.net | Date: | Thu, 17 Feb 2005 03:52:01 +0000 |
| Subject: | #29554 [Opn->Fbk]: compile failure when using --with-pspell=/usr/local | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74185@lists.php.net to get a copy of this message | ||
ID: 29554
Updated by: sniper@php.net
Reported By: John at Albin dot Net
-Status: Open
+Status: Feedback
Bug Type: Pspell related
Operating System: *
PHP Version: 4CVS, 5CVS (2005-02-03)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2005-02-16 01:09:04] John at Albin dot Net
As per sniper's request, I tried the latest CVS
snapshot, php4-STABLE-200502152130, but received the
same error during compile:
ld: ext/pspell/pspell.o illegal reference to symbol:
_aspell_word_list_elements defined in indirectly
referenced dynamic library /usr/local/lib/
libaspell.15.dylib
The fix mentioned in my first posting still works.
------------------------------------------------------------------------
[2005-02-11 05:43:19] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-01-19 21:50:17] dhaveconfig at elitemail dot org
same issue with OS X Server 10.3.7 and php 4.3.10.
same fix resolved it.
------------------------------------------------------------------------
[2004-08-06 20:45:00] John at Albin dot Net
Description:
------------
Environment:
* Mac OS X 10.3.4
* aspell 0.50.5 and aspell-en 0.51-1
(installed into /usr/local from source files)
* PHP 4.3.8
I've verified that aspell works from the command line,
but PHP won't compile.
I'm configuring with '--with-pspell=/usr/local' and when
I run make, it errors out saying: "ld: ext/pspell/
pspell.o illegal reference to symbol:
_aspell_error_number defined in indirectly referenced
dynamic library /usr/local/lib/libaspell.15.dylib"
I have never installed pspell. And I have installed
aspell for the first time today on this machine. When I
run 'sudo /usr/libexec/locate.updatedb' and then 'locate
libpspell' I find (ignoring my build directory in /usr/
local/src):
/usr/local/lib/libpspell.15.0.3.dylib
/usr/local/lib/libpspell.15.dylib
/usr/local/lib/libpspell.dylib
/usr/local/lib/libpspell.la
'locate libaspell' returns:
/usr/local/lib/libaspell.15.0.3.dylib
/usr/local/lib/libaspell.15.dylib
/usr/local/lib/libaspell.dylib
/usr/local/lib/libaspell.la
The compile error is easily fixed with a small change to
'configure'. PHP compiles fine, when I edit php-4.3.8/
configure and change line 71624 from:
LIBS="-lpspell $LIBS"
to:
LIBS="-laspell -lpspell $LIBS"
I have also talked to other Mac OS X/PHP/aspell users
who have the same issue and the configure modification
fixes their issue as well.
This bug is very similar to bug #23089. From looking at
that bug, it seems that this bug might be reproducable
on any machine that has no legacy aspell/pspell
libraries and only the most recent aspell library.
Undoubtably, this was caused my the author of aspell
changing the name of the library multiple times. But
can this relatively minor fix please be added to PHP's
configure script?
Or would this impact Pspell users (those without the
newer aspell)? If so, is there a way to check for this
in the configure file? Unfortunately, I'm not an expert
in configure files or I would attempt a patch myself.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29554&edit=1