Date: prev next · Thread: first prev next last
2014 Archives by date, by thread · List index


On Sun, Jun 08, 2014 at 09:05:36AM -0700, julien2412 [via Document Foundation Mail Archive] wrote:

I gave a try to a MacOs build and had this error:
[build CXX] connectivity/source/drivers/odbc/OTools.cxx
/lo/core/connectivity/source/drivers/odbc/OPreparedStatement.cxx:338:9:
error: static_assert failed "sizeof(SQLWCHAR) == 2"
        BOOST_STATIC_ASSERT( sizeof(SQLWCHAR)    == 2 );
        ^                    ~~~~~~~~~~~~~~~~~~~~~~~~
/lo/core/workdir/UnpackedTarball/boost/boost/static_assert.hpp:78:41: note:
expanded from macro 'BOOST_STATIC_ASSERT'
#     define BOOST_STATIC_ASSERT( ... ) static_assert(__VA_ARGS__,
#__VA_ARGS__)


Can you find me what SQLWCHAR is #define-d to in your build? Or at
least the value of sizeof(SQLWCHAR)? What is your ODBC
implementation? Is it unixodbc? Has it been compiled with the
SQL_WCHART_CONVERT option, or do you set it in any way?


Our (TDF) official build seems to use --without-system-odbc

However, if the MacOS X "official" unixodbc uses SQL_WCHART_CONVERT,
then most probably the TDF build is incompatible with the official
MacOS X unixodbc :-( Is this a 32 bit build or 64 bit build? (In case
that makes a difference...)

All the code that fails to compile just blindly assumes that an ODBC
Unicode char is 2 bytes (UCS2 or UTF-16 encoding). If that's not true
on MacOS X, then it needs to be adapted :-|

-- 
Lionel




--
View this message in context: 
http://nabble.documentfoundation.org/Build-fail-with-MacOs-in-connectivity-part-tp4111804p4111812.html
Sent from the Dev mailing list archive at Nabble.com.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.