#29554 [Asn->Fbk]: compile failure when using --with-pspell=/usr/local
| From: | sniper@php.net | Date: | Fri, 11 Feb 2005 04:43:20 +0000 |
| Subject: | #29554 [Asn->Fbk]: compile failure when using --with-pspell=/usr/local | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-73834@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: Assigned
+Status: Feedback
Bug Type: Pspell related
Operating System: *
PHP Version: 4CVS, 5CVS (2005-02-03)
Assigned To: sniper
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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-10-01 11:59:09] BjarneDM <macintosh at mathiesen dot info>
This is also an issue with PHP 5.0.x and PHP 4.3.9
Mac OS X 10.3.5
I'm upgrading the ServerLogistics PHP4 package that includes aspell:
[Titanen:~] bjarne% aspell -v
@(#) International Ispell Version 3.1.20 (but really Aspell 0.50.4.1)
[Titanen:~] bjarne% which aspell
/Library/PHP4/bin/aspell
Installing the aspell packages from either fink or darwinports doesn't
resolve this issue.
Running these commands in the build directory before ./configure solves
the problem for both PHP4 and PHP5:
sed 's/\(LIBS="\)\(-lpspell \$LIBS"\)/\1-laspell \2/' configure >
configure.1
mv configure.1 configure
chmod a+x configure
I've set up a site at http://webadmin.mathiesen.info/ where I make
build scripts, comments, etc available for the ServerLogistics
Complete* packages
------------------------------------------------------------------------
[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