[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#663519: Failure to build ICU on BSD



Dear Peter,

we try to build the Tex Live package on the FreeBSD kernel arch
included in Debian. The build fails, wenn the ICU lib is compiled:

g++ -DU_ENABLE_DYLOAD=0 -DICU_USE_THREADS=0
-I/build/buildd-texlive-bin_2011.20120307-1-kfreebsd-amd64-yy0HsF/texlive-bin-2011.20120307/Work/libs/icu/../../../libs/icu/icu-49.1/common
-I/build/buildd-texlive-bin_2011.20120307-1-kfreebsd-amd64-yy0HsF/texlive-bin-2011.20120307/Work/libs/icu/../../../libs/icu/icu-49.1/i18n
"-DU_BUILD=\"x86_64-pc-kfreebsd-gnu\"" "-DU_HOST=\"x86_64-pc-kfreebsd-gnu\""
"-DU_CC=\"gcc\"" "-DU_CXX=\"g++\"" -DU_ATTRIBUTE_DEPRECATED=
 -DU_TOOLUTIL_IMPLEMENTATION -O2  -c   -o udbgutil.ao
/build/buildd-texlive-bin_2011.20120307-1-kfreebsd-amd64-yy0HsF/texlive-bin-2011.20120307/Work/libs/icu/../../../libs/icu/icu-49.1/tools/toolutil/udbgutil.cpp
/build/buildd-texlive-bin_2011.20120307-1-kfreebsd-amd64-yy0HsF/texlive-bin-2011.20120307/Work/libs/icu/../../../libs/icu/icu-49.1/tools/toolutil/udbgutil.cpp:
In function 'const char* udbg_getPlatform()':
/build/buildd-texlive-bin_2011.20120307-1-kfreebsd-amd64-yy0HsF/texlive-bin-2011.20120307/Work/libs/icu/../../../libs/icu/icu-49.1/tools/toolutil/udbgutil.cpp:348:1:
error: expected ';' before '}' token

The relevant code block is

U_CAPI const char *udbg_getPlatform(void)
{
#if U_PLATFORM_HAS_WIN32_API
    return "Windows";
#elif U_PLATFORM == U_PF_UNKNOWN
    return "unknown"
#else
    return "Other (POSIX-like)";
#endif
}

After appending an ; after 'return "unknown"' at least I can
compile the lib. Please evaluate.

Regards,
  Hilmar
-- 
http://www.hilmar-preusse.de.vu/



Reply to: