Re: [PHP-DEV] pspell/aspell breaking

2001-04-02 Thread PHP development @echospace

Sorry, I couldn't answer your question earlier - I was in the java land last couple 
weeks, so my php inbox grew somewhat huge.

I believe, this was a one-liner "fix" (hack) that I put in CVS  a few weeks back, so 
try a recent snapshot. THe aspell/pspell creator/maintainer decided to change the API 
on us :( Ouch!

Vlad
 




- Original Message -
From: Seth Northrop 
To: "PHP development @echospace" 
Sent: Thu, 22 Mar 2001 17:12:49 -0800 (PST)
Subject: Re: [PHP-DEV] pspell/aspell breaking 


hey again. Had to recompile.. and, this time it failed compiling PHP;
Here's the output:

$ ./configure --without-gd --without-xml --enable-calendar --with-mysql
--with-config-file-path=/usr/local/apache_ssl/etc --enable-debug=no
--with-pspell --with-apache=../apache_1.3.19



$ make



Making all in pspell
make[2]: Entering directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
make[3]: Entering directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
gcc -I. -I/usr/local/src/php-4.0.4pl1/ext/pspell
-I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1
-I/usr/local/src/php-4.0.4pl1/Zend
-I/usr/local/src/php-4.0.4pl1/ext/mysql/libmysql
-I/usr/local/include/pspell -I/usr/local/src/php-4.0.4pl1/TSRM -g -O2
-c pspell.c && touch pspell.lo
pspell.c: In function `php_if_pspell_check':
pspell.c:304: too few arguments to function `pspell_manager_check'
pspell.c: In function `php_if_pspell_suggest':
pspell.c:340: too few arguments to function `pspell_manager_suggest'
pspell.c: In function `php_if_pspell_store_replacement':
pspell.c:377: warning: passing arg 3 of `pspell_manager_store_replacement'
makes integer from pointer without a cast
pspell.c:377: too few arguments to function
`pspell_manager_store_replacement'
pspell.c: In function `php_if_pspell_add_to_personal':
pspell.c:414: too few arguments to function
`pspell_manager_add_to_personal'
pspell.c: In function `php_if_pspell_add_to_session':
pspell.c:451: too few arguments to function
`pspell_manager_add_to_session'
make[3]: *** [pspell.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext'
make: *** [all-recursive] Error 1

pspell-.12, aspell-.32.6, RH 7.0, glibc-2.2-12, gcc-2.96-69. Supposedly
the very same configuration that I got to work on a different
machine.. but, this time it bombs out.

Pspell and aspell compile fine. I figured before I spend a lot of time
on this one again I'd check back in and see if there are any easy fixes :)

Thanks!
Seth


Re-thinking the Web on a SinglePage(TM)
http://www.echospace.com


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] pspell/aspell breaking

2001-03-22 Thread Seth Northrop


hey again.  Had to recompile.. and, this time it failed compiling PHP;
Here's the output:

$ ./configure --without-gd --without-xml --enable-calendar --with-mysql
--with-config-file-path=/usr/local/apache_ssl/etc --enable-debug=no
--with-pspell --with-apache=../apache_1.3.19



$ make



Making all in pspell
make[2]: Entering directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
make[3]: Entering directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
gcc  -I. -I/usr/local/src/php-4.0.4pl1/ext/pspell
-I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php-4.0.4pl1
-I/usr/local/src/php-4.0.4pl1/Zend
-I/usr/local/src/php-4.0.4pl1/ext/mysql/libmysql
-I/usr/local/include/pspell -I/usr/local/src/php-4.0.4pl1/TSRM   -g -O2
-c pspell.c && touch pspell.lo
pspell.c: In function `php_if_pspell_check':
pspell.c:304: too few arguments to function `pspell_manager_check'
pspell.c: In function `php_if_pspell_suggest':
pspell.c:340: too few arguments to function `pspell_manager_suggest'
pspell.c: In function `php_if_pspell_store_replacement':
pspell.c:377: warning: passing arg 3 of `pspell_manager_store_replacement'
makes integer from pointer without a cast
pspell.c:377: too few arguments to function
`pspell_manager_store_replacement'
pspell.c: In function `php_if_pspell_add_to_personal':
pspell.c:414: too few arguments to function
`pspell_manager_add_to_personal'
pspell.c: In function `php_if_pspell_add_to_session':
pspell.c:451: too few arguments to function
`pspell_manager_add_to_session'
make[3]: *** [pspell.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext/pspell'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.4pl1/ext'
make: *** [all-recursive] Error 1

pspell-.12, aspell-.32.6, RH 7.0, glibc-2.2-12, gcc-2.96-69.  Supposedly
the very same configuration that I got to work on a different
machine.. but, this time it bombs out.

Pspell and aspell compile fine.  I figured before I spend a lot of time
on this one again I'd check back in and see if there are any easy fixes :)

Thanks!
Seth



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP-DEV] pspell/aspell breaking

2001-03-03 Thread Mike Robinson

FWIW, I have this setup working fine on a stock rhl7.0 box.
It still says 'indices' is spelt wrong though.  ;>

Mike Robinson

> 
> Setup:
> aspell-.32.6
> pspell-.11.2
> php-4.0.4pl1
> apache_1.3.14
> RH 7.0
> glibc 2.2-12
> gcc-2.96-69
> 
> Procedure:
> ./pspell-.11.2/configure 
> make && make install
> 
> ./aspell-.32.6/configure 
> make && make install
> 
> ./php-4.0.4pl1/configure --without-gd --with-mysql
> --with-config-file-path=/usr/local/apache/etc --enable-debug=no
> --with-pspell --with-apache=/usr/local/src/apache_1.3.14
> make && make install
> 
> ./apache_1.3.14/configure --prefix=/usr/local/apache --with-layout=GNU
> --disable-module=userdir --disable-module=include
> --activate-module=src/modules/php4/libphp4.a
> make && make install
> 
> Results in:
> Warning: PSPELL couldn't open the dictionary. reason: Unable to load the
> "aspell" module. in foo.inc on line 564
> 
> Aspell works great on the command line.  Am I missing something? 
> 
> Incidently, I can't even get php to compile with pspell-.12
> 
> Ideas?
> Seth
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] pspell/aspell breaking

2001-03-02 Thread PHP development @echospace
Thanks for the nice report - I'll know what to suggest to those who ask in the future. I've heard of somewhat similar problems with aspell on other platforms, and yet have to figure out how to work around them:(
 One thing I noticed after I replied to you: after you compile pspell and aspell, you *need* to go back to pspell and do:
cd modules
./add-modules
cd ..
make
make installldconfig -v
 
That's just the way it works. aspell is dependent on pspell, but pspell needs to know that aspell exists to work with it. Kinda like a circular dependency
 
Vlad
- Original Message -From: Seth Northrop <[EMAIL PROTECTED]>To: [EMAIL PROTECTED],[EMAIL PROTECTED]Sent: Fri, 2 Mar 2001 11:16:13 -0800 (PST)Subject: Re: [PHP-DEV] pspell/aspell breaking On Fri, 2 Mar 2001, PHP development @echospace wrote:> I remember being able to compile, but not use pspell on a RH7 machine. Never had time to look into it. Maybe now I will. Compile problems might be due to the fact that gcc 2.96 is behaving oddly - I couldn't compile half the things with it properly. Try recent egcs instead. It looks however that I can't blame compiler only in your case. If you can't get it resolved, could you please submit a bug report with the part of the output where compile fails (not just *that* very line, but like 50 preceding lines too - a larger chunk so I can see)>>> Hmmm. So, I try to recompile to reproduce the error, this time advancingback to .12; I compile; no errors AND the module error goes away (thus,it works great as it always had on RH6.2).Weird.These are the only two things I can think of.My progression was this; get .12 (it failed to compile; (php+apache -pspell/aspell compiled fine), read php-dev, saw there might be issues so Ireverted back to .11.2 (pspell). It compiled, but, with the aspell moduleissue. Figured perhaps it was the most recent aspell (I had gottenaspell-.33); so, I reverted that back to 32.6; recompiled still got aspellmodule issues. Noted that RH7 have some glibc issues (and, it had causedsome other issues with aspell/pspell); updated both glibc and gcc fromredhat (rpm updates), recompiled, still had aspell module issues with PHP. Finally, to replicate the compile error I went BACK to pspell .12,recompiled, everything worked.So, the two things I can think of is:a) the newest aspell libraries are causing problems either in the compileor in the aspell module loadingb) redhat's buggy glibc/gccthe only odd thing was that I can't necessarily isolate either of these asthe cause. But, aspell 32.6+pspell .12+updated RH glibc 2.2-12 &gcc-2.96-69 + apache 1.3.14 + php-4.0.4pl1 works on RH 7 now. Myinclination is that it's aspell, since, the same behavior existed withboth stock and updated glibc and gcc.> > > > - Original Message -> From: Seth Northrop > To: [EMAIL PROTECTED],[EMAIL PROTECTED]> Sent: Thu, 1 Mar 2001 18:41:25 -0800 (PST)> Subject: [PHP-DEV] pspell/aspell breaking > > > Setup:> aspell-.32.6> pspell-.11.2> php-4.0.4pl1> apache_1.3.14> RH 7.0> glibc 2.2-12> gcc-2.96-69> > Procedure:> ./pspell-.11.2/configure > make && make install> > ./aspell-.32.6/configure > make && make install> > ./php-4.0.4pl1/configure --without-gd --with-mysql> --with-config-file-path=/usr/local/apache/etc --enable-debug=no> --with-pspell --with-apache=/usr/local/src/apache_1.3.14> make && make install> > ./apache_1.3.14/configure --prefix=/usr/local/apache --with-layout=GNU> --disable-module=userdir --disable-module=include> --activate-module=src/modules/php4/libphp4.a> make && make install> > Results in:> Warning: PSPELL couldn't open the dictionary. reason: Unable to load the> "aspell" module. in foo.inc on line 564> > Aspell works great on the command line. Am I missing something? > > Incidently, I can't even get php to compile with pspell-.12> > Ideas?> Seth> > > -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]To contact the list administrators, e-mail: [EMAIL PROTECTED]


Finally! Real applications on the web!
Free email, contacts, and file storage.
http://www.echospace.com



Re: [PHP-DEV] pspell/aspell breaking

2001-03-02 Thread Seth Northrop


On Fri, 2 Mar 2001, PHP development @echospace wrote:

> I remember being able to compile, but not use pspell on a RH7 machine. Never had 
>time to look into it. Maybe now I will. Compile problems might be due to the fact 
>that gcc 2.96 is behaving oddly - I couldn't compile half the things with it 
>properly. Try recent egcs instead. It looks however that I can't blame compiler only 
>in your case. If you can't get it resolved, could you please submit a bug report with 
>the part of the output where compile fails (not just *that* very line, but like 50 
>preceding lines too - a larger chunk so I can see)
>>> 

Hmmm.  So, I try to recompile to reproduce the error, this time advancing
back to .12; I compile; no errors AND the module error goes away (thus,
it works great as it always had on RH6.2).

Weird.

These are the only two things I can think of.

My progression was this; get .12 (it failed to compile; (php+apache -
pspell/aspell compiled fine), read php-dev, saw there might be issues so I
reverted back to .11.2 (pspell).  It compiled, but, with the aspell module
issue.  Figured perhaps it was the most recent aspell (I had gotten
aspell-.33); so, I reverted that back to 32.6; recompiled still got aspell
module issues.  Noted that RH7 have some glibc issues (and, it had caused
some other issues with aspell/pspell); updated both glibc and gcc from
redhat (rpm updates), recompiled, still had aspell module issues with PHP.  
Finally, to replicate the compile error I went BACK to pspell .12,
recompiled, everything worked.

So, the two things I can think of is:

a) the newest aspell libraries are causing problems either in the compile
or in the aspell module loading

b) redhat's buggy glibc/gcc

the only odd thing was that I can't necessarily isolate either of these as
the cause.  But, aspell 32.6+pspell .12+updated RH glibc 2.2-12 &
gcc-2.96-69 + apache 1.3.14 + php-4.0.4pl1 works on RH 7 now.  My
inclination is that it's aspell, since, the same behavior existed with
both stock and updated glibc and gcc.
 

> 
> 
> 
> - Original Message -
> From: Seth Northrop 
> To: [EMAIL PROTECTED],[EMAIL PROTECTED]
> Sent: Thu, 1 Mar 2001 18:41:25 -0800 (PST)
> Subject: [PHP-DEV] pspell/aspell breaking 
> 
> 
> Setup:
> aspell-.32.6
> pspell-.11.2
> php-4.0.4pl1
> apache_1.3.14
> RH 7.0
> glibc 2.2-12
> gcc-2.96-69
> 
> Procedure:
> ./pspell-.11.2/configure 
> make && make install
> 
> ./aspell-.32.6/configure 
> make && make install
> 
> ./php-4.0.4pl1/configure --without-gd --with-mysql
> --with-config-file-path=/usr/local/apache/etc --enable-debug=no
> --with-pspell --with-apache=/usr/local/src/apache_1.3.14
> make && make install
> 
> ./apache_1.3.14/configure --prefix=/usr/local/apache --with-layout=GNU
> --disable-module=userdir --disable-module=include
> --activate-module=src/modules/php4/libphp4.a
> make && make install
> 
> Results in:
> Warning: PSPELL couldn't open the dictionary. reason: Unable to load the
> "aspell" module. in foo.inc on line 564
> 
> Aspell works great on the command line. Am I missing something? 
> 
> Incidently, I can't even get php to compile with pspell-.12
> 
> Ideas?
> Seth
> 
> 
> 




-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]