Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created December 27, 2010 18:03
Show Gist options
  • Save ongaeshi/756364 to your computer and use it in GitHub Desktop.
Save ongaeshi/756364 to your computer and use it in GitHub Desktop.
Windowsでgroongaコンパイル時にエラー
i686-w64-mingw32-gcc は、cygwin付属のcygwin.dllに依存しないgcc4です。
% cd ~/work/rroonga/vendor/groonga-1.0.4
% ./configure CC='i686-w64-mingw32-gcc' CFLAGS='-g -O0 -mno-cygwin' prefix='/c/users/ongaeshi/work/rroonga/vendor/local' i386-pc-mingw32
% make
.
.
.
.
Making all in src
make[2]: Entering directory `/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src'
/bin/sh ../libtool --tag=CC --mode=link i686-w64-mingw32-gcc -fno-strict-aliasing -I/usr/include/editline -g -O0 -mno-cygwin -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-initializers -Wformat=2 -Wstrict-aliasing=2 -Wdisabled-optimization -Wfloat-equal -Wpointer-arith -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wredundant-decls -no-undefined -L/usr/lib -o groonga.exe groonga-groonga.o ../lib/libgroonga.la -ledit -lcurses -lpthread -lm -ladvapi32 -lws2_32
libtool: link: i686-w64-mingw32-gcc -fno-strict-aliasing -I/usr/include/editline -g -O0 -mno-cygwin -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-initializers -Wformat=2 -Wstrict-aliasing=2 -Wdisabled-optimization -Wfloat-equal -Wpointer-arith -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wredundant-decls -o .libs/groonga.exe groonga-groonga.o -L/usr/lib ../lib/.libs/libgroonga.dll.a /usr/lib/libedit.dll.a -lcurses -lpthread -ladvapi32 -lws2_32 -L/c/users/ongaeshi/work/rroonga/vendor/local/lib
groonga-groonga.o: In function `cache_init':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:969: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:996: undefined reference to `__imp__pthread_mutex_unlock'
groonga-groonga.o: In function `h_worker':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1494: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1499: undefined reference to `__imp__pthread_cond_wait'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1506: undefined reference to `__imp__pthread_mutex_unlock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1509: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1513: undefined reference to `__imp__pthread_mutex_unlock'
groonga-groonga.o: In function `h_handler':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1533: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1538: undefined reference to `__imp__pthread_create'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1540: undefined reference to `__imp__pthread_cond_signal'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1541: undefined reference to `__imp__pthread_mutex_unlock'
groonga-groonga.o: In function `h_server':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1552: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1553: undefined reference to `__imp__pthread_cond_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1554: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1555: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1556: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1600: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1602: undefined reference to `__imp__pthread_mutex_unlock'
groonga-groonga.o: In function `g_worker':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1649: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1655: undefined reference to `__imp__pthread_cond_wait'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1668: undefined reference to `__imp__pthread_mutex_unlock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1691: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1704: undefined reference to `__imp__pthread_mutex_unlock'
groonga-groonga.o: In function `dispatcher':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1712: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1719: undefined reference to `__imp__pthread_create'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1721: undefined reference to `__imp__pthread_cond_signal'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1723: undefined reference to `__imp__pthread_mutex_unlock'
groonga-groonga.o: In function `g_handler':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1750: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1755: undefined reference to `__imp__pthread_mutex_unlock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1766: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1767: undefined reference to `__imp__pthread_mutex_init'
groonga-groonga.o: In function `g_server':
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1793: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1794: undefined reference to `__imp__pthread_cond_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1795: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1796: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1797: undefined reference to `__imp__pthread_mutex_init'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1841: undefined reference to `__imp__pthread_mutex_lock'
/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src/groonga.c:1843: undefined reference to `__imp__pthread_mutex_unlock'
collect2: ld returned 1 exit status
make[2]: *** [groonga.exe] Error 1
make[2]: Leaving directory `/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/users/ongaeshi/work/rroonga/vendor/groonga-1.0.4'
make: *** [all] Error 2
%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment