Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» MacOSX - forked.net   » Compile Problems   » aspell

UBBFriend: Email this page to someone!    
Author Topic: aspell
bergerjs
Junior Member
Member # 201

posted October 29, 2001 09:05 PM      Profile for bergerjs        Edit/Delete Post  Reply With Quote 
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?


Posts: 1 | Registered: Oct 2001  |  IP: Logged
Clay
Member
Member # 143

posted November 09, 2001 05:17 AM      Profile for Clay   Email Clay   Send New Private Message      Edit/Delete Post  Reply With Quote 
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


Posts: 16 | Registered: Oct 2001  |  IP: Logged
Clay
Member
Member # 143

posted November 09, 2001 05:21 AM      Profile for Clay   Email Clay   Send New Private Message      Edit/Delete Post  Reply With Quote 
Sorry, forgot to include the URL:
http://aspell.sourceforge.net/

-Clay


Posts: 16 | Registered: Oct 2001  |  IP: Logged
Clay
Member
Member # 143

posted November 09, 2001 10:52 PM      Profile for Clay   Email Clay   Send New Private Message      Edit/Delete Post  Reply With Quote 
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


Posts: 16 | Registered: Oct 2001  |  IP: Logged

All times are Pacific Time  

Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
Hop To:

Contact Us | macosx.forked.net

Powered by Infopop Corporation
Ultimate Bulletin BoardTM 6.1.0.2