Comment 1 for bug 1252711

Revision history for this message
jazzynico (jazzynico) wrote : Re: Compile Aspell with GCC-4.8.1

Here's what I've tried:

1. Download aspell-0.60.6.1 from http://aspell.net/.
2. Patch the files with the attached diff.
3. Launch configure with the following options: --enable-win32-relocatable LDFLAGS="-L/z/dl3/lib -lpthreadGC2"
4. make fails with the following error:
---
/bin/sh ./libtool --tag=CXX --mode=link g++ -g -O2 -fno-exceptions -L/z/dl3/lib -lpthreadGC2 -o aspell.exe prog/aspell.o prog/check_funs.o prog/checker_string.o libaspell.la
libtool: link: g++ -g -O2 -fno-exceptions -o aspell.exe prog/aspell.o prog/check_funs.o prog/checker _string.o -L/z/dl3/lib ./.libs/libaspell.a -lpthreadGC2 -lintl
z:/mingw32-4.8.1/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-mutex.o):mutex.c:(.text+0x498): multiple definition of `pthread_mutex_unlock'
z:/dl3/lib/libpthreadGC2.a(dtvbs00054.o):(.text+0x0): first defined here z:/mingw32-4.8.1/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-mutex.o):mutex.c:(.text+0x55c): multiple definition of `pthread_mutex_init'
z:/dl3/lib/libpthreadGC2.a(dtvbs00050.o):(.text+0x0): first defined here z:/mingw32-4.8.1/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-mutex.o):mutex.c:(.text+0x924): multiple definition of `pthread_mutex_lock'
z:/dl3/lib/libpthreadGC2.a(dtvbs00051.o):(.text+0x0): first defined here z:/mingw32-4.8.1/bin/../lib/gcc/mingw32/4.8.1/../../../libpthread.a(libwinpthread_la-mutex.o):mutex.c:(.text+0xa18): multiple definition of `pthread_mutex_destroy'
z:/dl3/lib/libpthreadGC2.a(dtvbs00049.o):(.text+0x0): first defined here collect2.exe: error: ld returned 1 exit status
make[1]: *** [aspell.exe] Error 1
make[1]: Leaving directory `/z/devlibs-local/src/aspell-0.60.6.1'
make: *** [all-recursive] Error 1
---
I understand there's a conflict between devlibs' pthreadGC2.a and Mingw32's pthread.a. I've tried to use -lpthread instead of -lpthreadGC2, but it also fails some lines before.

Any idea?