aspell

Find out how to get that @*&^$&@ thing to compile!

aspell

Postby bergerjs » Tue Oct 30, 2001 5:05 am

Hi there, trying to get aspell to compile, getting a wierd error message. I've already put in pspell, which apparently is a requirement for this. It gets a fair way into the compiling, then quits with this:

/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I./inc -I../ -I../util -I../filter -I/usr/local/include -g -O2 -c readonly_ws.cc
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I./inc -I../ -I../util -I../filter -I/usr/local/include -g -O2 -c readonly_ws.cc
readonly_ws.cc: In function `size_t page_size()':
readonly_ws.cc:124: `_SC_PAGESIZE' undeclared (first use this function)
readonly_ws.cc:124: (Each undeclared identifier is reported only once
readonly_ws.cc:124: for each function it appears in.)
make[3]: *** [readonly_ws.lo] Error 1


any ideas?
bergerjs
 
Posts: 1
Joined: Mon Oct 29, 2001 8:00 pm

Re: aspell

Postby Clay » Fri Nov 09, 2001 1:17 pm

I had exactly this same problem tonight. Would love to see it resolved.

pspell installed without difficulty, but aspell dies during compile with the error you've quoted.

Help?

-Clay
Clay
 
Posts: 16
Joined: Sat Oct 06, 2001 7:00 pm

Re: aspell

Postby Clay » Fri Nov 09, 2001 1:21 pm

Sorry, forgot to include the URL:
<A HREF="http://aspell.sourceforge.net/" TARGET=_blank>http://aspell.sourceforge.net/</A>

-Clay
Clay
 
Posts: 16
Joined: Sat Oct 06, 2001 7:00 pm

Re: aspell

Postby Clay » Sat Nov 10, 2001 6:52 am

Okay -- I've got this working. Here's what it took (assuming aspell-.33.7.1):

1. CHANGE lib/readonly_ws.cc as follows:

replace return sysconf (_SC_PAGESIZE);
with return getpagesize();


2. CHANGE filter/repl.cc as follows:

add:
#include "single_repl.hh"
#include "hash_repl-t.hh"
#include "substr_repl-t.hh"
#include "repl_func.hh"

replace: #include "hash_repl-p.hh"
with: //#include "hash_repl-p.hh"

3. run "configure" like this:
./configure --disable-curses


... that did it for me on Mac OS X Server 10.1.

-Clay
Clay
 
Posts: 16
Joined: Sat Oct 06, 2001 7:00 pm


Return to Compile Problems

Who is online

Users browsing this forum: No registered users and 11 guests

cron