[haiku-gsoc] Re: Full Text Search and Indexing -- Looking for opinions/comments

  • From: Ankur Sethi <get.me.ankur@xxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Tue, 2 Jun 2009 19:40:43 +0530

It appears that configure is failing because of a parse error in the
program it uses to test pthread support. Here's the output:

configure:15438: checking whether pthreads work without any flags
configure:15538: gcc -o conftest -g -O2    conftest.c   >&5
/Files/Source/clucene/conftest.c: In function `main':
/Files/Source/clucene/conftest.c:28: parse error before `mtx'
/Files/Source/clucene/conftest.c:28: `mtx' undeclared (first use in
this function)
/Files/Source/clucene/conftest.c:28: (Each undeclared identifier is
reported only once
/Files/Source/clucene/conftest.c:28: for each function it appears in.)
configure:15545: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "clucene-core"
| #define VERSION "0.9.21-svn"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| #include <pthread.h>
| int
| main ()
| {
| pthread_t th=pthread_self(); pthread_attr_t attr;pthread_join(th, 0);
|                                       pthread_attr_init(&attr);
|                                       pthread_mutex_t mtx; 
pthread_mutex_init(&mtx,0);
|                                       pthread_mutex_lock(&mtx); 
pthread_mutex_unlock(&mtx);
|                  pthread_mutex_destroy(&mtx)
|   ;
|   return 0;
| }
configure:15568: result: no

-- 
Ankur Sethi
http://uncool.in

Other related posts: