You're right. Mostly platforms have timeb, so this wasn't a problem.
I've fixed the test there, you have to have at least timeb OR the
gettimeofday function (used in Misc.cpp).

see commit 8e62637381d848bede94dc6093c2baadd47195b5

Thanks!

ben

2009/10/8 Shripad Bodas <shripadbo...@gmail.com>:
> Can anyone explain why HAVE_TYPE__TIMEB is in MUSTDEFINE_VAR? where
> its used (may be i am not using that module as it never caused me any
> problem???).. I am sure this is just the work around to make it
> compile...
>
> Thanks,
> Shripad Bodas
>
>
>
>
>
> On Thu, Oct 8, 2009 at 11:41 AM, Michel Nadeau <aka...@gmail.com> wrote:
>> Hi!
>>
>> Here's my results -
>>
>>> grep -r HAVE_TYPE__TIMEB .
>>> ./src/shared/CMakeLists.txt:            HAVE_TYPE__TIMEB
>>>
>>> ./src/shared/CMakeLists.txt:MUSTDEFINE_VAR("_CL_HAVE_TRY_BLOCKS;HAVE_TYPE__TIMEB")
>>> ./CMakeCache.txt://Chose option for HAVE_TYPE__TIMEB - not found
>>> ./CMakeCache.txt:_CHOOSE_STATUS_OPTION_HAVE_TYPE__TIMEB:INTERNAL=ON
>>
>> You changed this -
>>
>>>
>>> ./src/shared/CMakeLists.txt:MUSTDEFINE_VAR("_CL_HAVE_TRY_BLOCKS")#;HAVE_TYPE__TIMEB")
>>
>> I applied the same change and was able to compile successfully -
>>
>>> [100%] Built target clucene-core
>>
>> Thanks!!!!
>>
>> Michel
>>
>> On Thu, Oct 8, 2009 at 11:03 AM, Shripad Bodas <shripadbo...@gmail.com>
>> wrote:
>>>
>>> Hi Michel,
>>>
>>> As far as I remember I compiled CLucene 2.3.2 successfully on FreeBSD
>>> 7.2.. I dont remember if i played with CMakeLists.txt to make it
>>> compile. This is the grep output of HAVE_TYPE__TIMEB from my
>>> checkout(its bit old though)... Just compare it with yours and see if
>>> there are any changes and see if you can compile by making those if
>>> any..
>>>
>>>  grep -r HAVE_TYPE__TIMEB .
>>> ./src/shared/CMakeLists.txt:            HAVE_TYPE__TIMEB
>>>
>>> ./src/shared/CMakeLists.txt:MUSTDEFINE_VAR("_CL_HAVE_TRY_BLOCKS")#;HAVE_TYPE__TIMEB")
>>> ./CMakeCache.txt://Chose option for HAVE_TYPE__TIMEB - not found
>>> ./CMakeCache.txt:_CHOOSE_STATUS_OPTION_HAVE_TYPE__TIMEB:INTERNAL=ON
>>>
>>> Regards,
>>> Shripad Bodas
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Oct 8, 2009 at 10:43 AM, Michel Nadeau <aka...@gmail.com> wrote:
>>> > Hi!
>>> >
>>> > I was able to compile CLucene 2.3.2 under Debian 4.0 and now I'm trying
>>> > to
>>> > compile the same version under FreeBSD 7.0; but I get this CMake error:
>>> >
>>> >> CMake Error: The symbol 'HAVE_TYPE__TIMEB' was not defined.
>>> >
>>> > I have cmake version 2.4-patch 7
>>> >
>>> > Any idea what this can be? I googled "HAVE_TYPE__TIMEB" and found, hm,
>>> > nothing.
>>> >
>>> > Thanks!
>>> >
>>> > - Mike
>>> > aka...@gmail.com
>>> >
>>> >
>>> > ------------------------------------------------------------------------------
>>> > Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> > is the only developer event you need to attend this year. Jumpstart your
>>> > developing skills, take BlackBerry mobile applications to market and
>>> > stay
>>> > ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> > http://p.sf.net/sfu/devconference
>>> > _______________________________________________
>>> > CLucene-developers mailing list
>>> > CLucene-developers@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/clucene-developers
>>> >
>>> >
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> CLucene-developers mailing list
>>> CLucene-developers@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> CLucene-developers mailing list
>> CLucene-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>>
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> CLucene-developers mailing list
> CLucene-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/clucene-developers
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to