Paul,

Attached is the patch you need. It is confirmed to work on SL. I haven't
committed it to master yet since I'm awaiting on test results from Linux
systems.

Itamar. 

-----Original Message-----
From: Paul J. Lucas [mailto:p...@lucasmail.org] 
Sent: ד 13 ינואר 2010 22:54
To: clucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] 2.3.2 build failure on Mac OS X 10.6.x

Using Mac OS X 10.6.2 (Snow Leopard):

$ uname -a
Darwin paulbook.pauljlucas.org 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov
3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386

and g++ 4.2.1:

$ g++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 
i686-apple-darwin10-g++1)

when compiling via:

$ cd clucene
$ mkdir build
$ cd build
$ cmake -G'Unix Makefiles' ..

I eventually get:

IndexFileDeleter.cpp: In member function 'void
lucene::index::IndexFileDeleter::message(std::string)':
IndexFileDeleter.cpp:93: error: cast from '_opaque_pthread_t*' to 'int32_t'
loses precision

This is because the default for Snow Leopard's g++ is to produce 64-bit
binaries and trying to cast any 64-bit pointer into an int_32t won't work.
Hence, this is a bug for 64-bit systems.

In the mean-time, can somebody tell be how to pass the -m32 option to g++ to
force it to build 32-bit binaries?  If this were just plain configure, I
could do:

$ CFLAGS="-m32" ./configure

but it's not clear to me how to do the equivalent using cmake.

- Paul
----------------------------------------------------------------------------
--
This SF.Net email is sponsored by the Verizon Developer Community Take
advantage of Verizon's best-in-class app development support A streamlined,
14 day to market process makes app distribution fast and easy Join now and
get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Attachment: patch0.patch
Description: Binary data

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to