[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    Re: [Aspell-user] quick problem...
From:       Kevin Atkinson <kevina () gnu ! org>
Date:       2004-10-05 7:20:28
Message-ID: Pine.LNX.4.44.0410050112060.1597-100000 () kevin-p3 ! atkinson ! dhs ! org
[Download RAW message or body]

On Tue, 5 Oct 2004, Jon Stephens wrote:

> Got closer this time.  It got to:
> 
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I./gen -I./gen -I./common -I./interfaces/cc/ -I
> ./modules/speller/default/ -DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -f
> no-exceptions -c
> ommon/file_util.cpp -Wp,-MD,common/.deps/file_util.TPlo  -fPIC -DPIC -o
> common/.libs/file_util.o
> common/file_util.cpp: In function `void
> acommon::truncate_file(acommon::FStream &, acommon::ParmString)':
> common/file_util.cpp:132: implicit declaration of function `int
> acommon::ftruncate(...)'
> make[1]: *** [common/file_util.lo] Error 1
> 
> This isn't a huge deal as I'm working with the windows version elsewhere.
> But it would be nice to be able to test it with php scripts on the debian
> box.  

This seams to be a common problem.  

Please change line 132 to:
      ::ftruncate(f.file_no(),0);

If that doesn't please try adding the two lines:
  #include <unistd.h>
  #include <sys/types.h>
after all the other includes bug before the line "namespace acommon {".  

If none of these work please let me know and I will construct some simple 
test programs to try to figure out why ftruncate is not being defined.


-- 
http://kevin.atkinson.dhs.org





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic