https://issues.apache.org/ooo/show_bug.cgi?id=121955

Ariel Constenla-Haile <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #8 from Ariel Constenla-Haile <[email protected]> ---
The code in configure might be the root of the problem:

dnl ===================================================================
dnl Check for system libxml
dnl ===================================================================
AC_MSG_CHECKING([which libxml to use])
if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \
            "$_os" = "Darwin" && \
    test "$with_system_libxml" != "no"; then
    AC_MSG_RESULT([external])
    SYSTEM_LIBXML=YES
    BUILD_TYPE="$BUILD_TYPE LIBXMLSEC"

    if test "$_os" != "Darwin"; then
        PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.0)
    else
        LIBXML_CFLAGS=`xml2-config --cflags`
        LIBXML_LIBS=`xml2-config --libs`
    fi
else
    AC_MSG_RESULT([internal])
    SYSTEM_LIBXML=NO
    BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
fi
AC_SUBST(SYSTEM_LIBXML)
AC_SUBST(LIBXML_CFLAGS)
AC_SUBST(LIBXML_LIBS)


The condition

if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \
            "$_os" = "Darwin" && \
    test "$with_system_libxml" != "no"; then

translates to

if the length of "$with_system_libxml" is nonzero
OR the length of $with_system_libs" is nonzero
OR the OS is MacOS
AND "$with_system_libxml" is NOT equal to "no"


It looks like you have to explicitly configure with --with-system-libxml=no in
MacOS to build with the internal libxml.
Looking at configure.in, there are other cases like this (libxslt, python,
etc.).

For example

dnl ===================================================================
dnl Check for system zlib
dnl ===================================================================
if test "$_os" = "Darwin" && test "$with_system_zlib" != "no"; then
   with_system_zlib=yes
fi

which results in your config.log

configure:12698: checking which zlib to use
configure:12702: result: external

If you look at the switches used in our releases 
https://cwiki.apache.org/confluence/display/OOOUSERS/Development+Snapshot+Builds#DevelopmentSnapshotBuilds-buildflags
there are no --with-system-xxx=no, so it seems that in MacOS you have to link
to system libraries.
I can't find information on
http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_MacOsX
or
http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_MacOSX

Setting Jürgen on CC, he might know if this is a feature or a bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to