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.
Here's what I've tried:
1. Download aspell-0.60.6.1 from http:// aspell. net/. win32-relocatab le LDFLAGS= "-L/z/dl3/ lib -lpthreadGC2" string. o libaspell.la 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' lib/libpthreadG C2.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' lib/libpthreadG C2.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' lib/libpthreadG C2.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' lib/libpthreadG C2.a(dtvbs00049 .o):(.text+ 0x0): first defined here collect2.exe: error: ld returned 1 exit status local/src/ aspell- 0.60.6. 1'
2. Patch the files with the attached diff.
3. Launch configure with the following options: --enable-
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_
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-
z:/dl3/
z:/dl3/
z:/dl3/
z:/dl3/
make[1]: *** [aspell.exe] Error 1
make[1]: Leaving directory `/z/devlibs-
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?