Re: clucene-core-0.9.21b-1004
Jack Howarth <[email protected]>
| Newsgroups | gmane.os.apple.fink.devel |
|---|---|
| Message-ID | <CAP5Ds0C-iVfGbMbeyB2vxFq4qNmTpbiha4NOOfOW1eU16wW3iw@mail.gmail.com> |
Jack,
I finally found the proper fix to eliminate the "call to 'wcsstr' is
ambiguous" errors under libc++ and committed it in
clucene-core-0.9.21b-1005. The correct fix is to use
-D_WCHAR_H_CPLUSPLUS_98_CONFORMANCE_
on CXXFLAGS which allows 'fink -m' to fully pass on 10.9. Tested on 10.8 as
well under libstdc++.
Jack
On Sat, May 10, 2014 at 9:59 PM, Jack Howarth <[email protected]>wrote:
> Jack,
> I committed a fix to clucene-core in the 10.7 tree that allows the
> package to build on 10.9 against libc++.. The fixes are based on those used
> by FreeBSD…
>
> http://www.freebsd.org/cgi/query-pr.cgi?pr=169872&cat=
>
> The make check can't be run yet as the test suite has a variation of this
> compiler error in
>
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../src -I../src -I/sw/include
> -D_THREAD_SAFE -Os -c -o TestAnalyzers.o `test -f
> '../test/analysis/TestAnalyzers.cpp' || echo
> './'`../test/analysis/TestAnalyzers.cpp
> In file included from ../test/analysis/TestAnalyzers.cpp:7:
> In file included from ./test.h:9:
> In file included from ../src/CLucene.h:15:
> In file included from ../src/CLucene/index/IndexWriter.h:18:
> In file included from ../src/CLucene/store/TransactionalRAMDirectory.h:10:
> In file included from ../src/CLucene/store/RAMDirectory.h:17:
> ../src/CLucene/util/Arrays.h:154:19: warning: comparison of unsigned
> expression >= 0 is always true [-Wtautological-compare]
> while ( --size >= 0 ){
> ~~~~~~ ^ ~
> ../test/analysis/TestAnalyzers.cpp:18:16: error: call to 'wcsstr' is
> ambiguous
> while( (pos = _tcsstr(pos+1, _T(";"))) != NULL ) {
> ^~~~~~~
> ../src/CLucene/config/repl_tchar.h:37:21: note: expanded from macro
> '_tcsstr'
> #define _tcsstr wcsstr //find location of a string
> ^~~~~~
> /usr/include/wchar.h:141:10: note: candidate function
> wchar_t *wcsstr(const wchar_t * __restrict, const wchar_t * __restrict);
> ^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cwchar:189:49:
> note: candidate function
> inline _LIBCPP_INLINE_VISIBILITY const wchar_t* wcsstr(const wchar_t*
> __s1, const wchar_t* __s2) {return ::wcsstr(__s1, __s2);}
> ^
> which I haven't puzzled out a fix for yet.
> Jack
>
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel