aspell-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [aspell-user] Aspell requirements


From: Dennis Lin
Subject: Re: [aspell-user] Aspell requirements
Date: Mon Jun 17 11:08:03 2002

 
>None of these files should be necessary.  Aspell deals with the missing
>files by throwing exceptions which are suppose to be caught, however some
>version of gcc do not handle the exceptions correctly.  Thus Aspell
>crashes.  What compiler are you using (gcc -v) and what type of system are
>you on.

I'm running Source Mage (a compile-it yourself distribution) on an Athlon 
Thunderbird 1.2 GHz.  My version of gcc is:

Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)

While trying to debug the problem, I noticed that the exceptions didn't look 
like they were being caught at all.    Perhaps there's something else wrong 
with my system?  I'm using libstdc++-libc6.2-2.so.3 and glibc version 2.2.5.  I 
am thinking about changing linux distributions...

Dennis Lin


_______________________________________________________
WIN a first class trip to Hawaii.  Live like the King of Rock and Roll
on the big Island. Enter Now!
http://r.lycos.com/r/sagel_mail/http://www.elvis.lycos.com/sweepstakes


From address@hidden Wed Jun 19 18:44:54 2002
Received: from smtp-relay2.barrysworld.com ([213.221.172.241])
        by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 
(Debian))
        id 17Kr0C-0004C4-00
        for <address@hidden>; Wed, 19 Jun 2002 18:44:48 -0700
Received: from [213.221.172.140] (helo=mail.barrysworld.com)
        by smtp-relay2.barrysworld.com with esmtp (Exim 3.35 #1)
        id 17Kqnm-000875-00
        for address@hidden; Thu, 20 Jun 2002 02:31:58 +0100
Received: from sncxp [203.125.180.14] by mail.barrysworld.com with ESMTP
  (SMTPD32-6.06) id A3632CB7024C; Thu, 20 Jun 2002 02:44:03 +0100
From: "purpledinosaur" <address@hidden>
To: <address@hidden>
Message-ID: <address@hidden>
MIME-Version: 1.0
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.3416
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Importance: Normal
Subject: [aspell-user] FW: Building a MinGW build of aspell without much luck :(
Sender: address@hidden
Errors-To: address@hidden
X-BeenThere: address@hidden
X-Mailman-Version: 2.0.9-sf.net
Precedence: bulk
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/aspell-user>,
        <mailto:address@hidden>
List-Id: Help with using Aspell and general discussion. 
<aspell-user.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/aspell-user>,
        <mailto:address@hidden>
List-Archive: <http://www.geocrawler.com/redir-sf.php3?list=aspell-user>
Date: Wed Jun 19 18:45:02 2002
X-Original-Date: Thu, 20 Jun 2002 09:44:03 +0800
Status: O
X-Status: 
X-Keywords:                  
X-UID: 845


Hi all, I'm new to cygwin and mingw, and UNIX style development in
general hence I would really appreciate some help here. I'm trying to
build the aspell win32 binary using the mingw compiler in the cygwin
environment but am getting some linker problems.

Here's how I've setup my cygwin and mingw:
1)downloaded setup.exe from http://cygwin.com and selected everything in
the develpment package. 
2)following the instructions given at
http://www.colomsat.net.co/freehost/ngiraldo/cppcygwin.html, I've
downloaded the mingw-extra-2.95.3.tar.gz packaged and installed it into
the appropriate directories.

Here's what I used to configure aspell:
1) set env variables CFLAGS and CXXFLAGS to '-mno-cygwin'
2) run the following configuration options:
for pspell (required to compile aspell):
./configure --bindir=/cygdrive/d/aspell --prefix=/cygdrive/d/aspell
--disable-shared --disable-ltdl for aspell: ./configure
--bindir=/cygdrive/d/aspell --prefix=/cygdrive/d/aspell --disable-shared
--enable-win32-relocatable --disable-curses

And finally, here's what I get (note that pspell compiled and installed
without a hitch):
----------------- partial compiler output after this line
-------------------- Making all in src
make[2]: Entering directory
`/cygdrive/d/Projects/thirdparty/aspell-.33.7.1/src'

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../ -I../util -I../lib/inc
g++ -I../filter  -I/cy
gdrive/d/aspell/include      -mno-cygwin -c aspell.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../ -I../util -I../lib/inc
g++ -I../filter  -I/cy
gdrive/d/aspell/include      -mno-cygwin -c termios.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../ -I../util -I../lib/inc
g++ -I../filter  -I/cy
gdrive/d/aspell/include      -mno-cygwin -c text_chain.cc
/bin/sh ../libtool --mode=link g++  -mno-cygwin  -o aspell.exe  aspell.o
termios .o text_chain.o ../lib/libaspell.la mkdir .libs
g++ -mno-cygwin -o aspell.exe aspell.o termios.o text_chain.o
g++ ../lib/.libs/liba
spell.a -L/usr/lib/mingw -L/usr/lib/w32api
-L/usr/lib/gcc-lib/i686-pc-cygwin/2.9
5.3-5 -lstdc++ -lmingw32 -lgcc -lmoldname -lmsvcrt -lmingw32 -luser32
-lkernel32  -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmsvcrt
-lstdc++ -lmingw32 -lg cc -lmoldname -lmsvcrt -lmingw32 -luser32
-lkernel32 -ladvapi32 -lshell32 -lming w32 -lgcc -lmoldname -lmsvcrt
-L/cygdrive/d/aspell/lib -L/cygdrive/d/Projects/th
irdparty/pspell-.12.2/modules/.libs -lstdc++ -lmingw32 -lgcc -lmoldname
-lmsvcrt  -lmingw32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32
-lgcc -lmoldname - lmsvcrt /cygdrive/d/aspell/lib/libpspell-impl.a
-L/cygdrive/d/Projects/thirdpart y/pspell-.12.2/interface/.libs
/cygdrive/d/aspell/lib/libpspell.a /cygdrive/d/as
pell/lib/libpspell-modules.a -lstdc++ -lmingw32 -lgcc -lmoldname
-lmsvcrt -lming w32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32
-lgcc -lmoldname -lmsvcrt  -lstdc++ -lmingw32 -lgcc -lmoldname -lmsvcrt
-lmingw32 -luser32 -lkernel32 -lad vapi32 -lshell32 -lmingw32 -lgcc
-lmoldname -lmsvcrt -lstdc++ -lmingw32 -lgcc -l moldname -lmsvcrt
-lmingw32 -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 - lgcc
-lmoldname -lmsvcrt
/cygdrive/d/aspell/lib/libpspell.a(manager_impl.o)(.text+0x141b):manager
_impl.cc
: undefined reference to `opendir'
/cygdrive/d/aspell/lib/libpspell.a(manager_impl.o)(.text+0x1443):manager
_impl.cc
: undefined reference to `readdir'
/cygdrive/d/aspell/lib/libpspell.a(manager_impl.o)(.text+0x19a7):manager
_impl.cc
: undefined reference to `closedir'
collect2: ld returned 1 exit status
make[2]: *** [aspell.exe] Error 1
make[2]: Leaving directory
`/cygdrive/d/Projects/thirdparty/aspell-.33.7.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/cygdrive/d/Projects/thirdparty/aspell-.33.7.1'
make: *** [all-recursive-am] Error 2


It appears to me that somehow, the linker is not finding the
implementation of opendir, readdir and closedir which are found in the
header dirent.h. Also, I noted that the linker is linking in the
directories /usr/lib/mingw, /usr/lib/w32api and
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5  (deduced from the line
"-L/usr/lib/mingw -L/usr/lib/w32api
-L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5") which are empty! What
gives?

Any help is greatly appreciated.

Cheers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]