Apache OpenOffice (AOO) Bugzilla – Issue 121955
Cannot build redland module while building open office from source on Mac OSX 10.6(Snow leapord)
Last modified: 2013-03-25 13:37:54 UTC
This is the error I get :- ============= Building module redland ============= ... checking for libxml sources... no checking for xmlCreatePushParserCtxt... no checking for system (GNOME) libxml library... no checking libxml/nanohttp.h usability... no checking libxml/nanohttp.h presence... no checking for libxml/nanohttp.h... no checking libxml/parser.h usability... no checking libxml/parser.h presence... no checking for libxml/parser.h... no checking for libxml/hash.h... no checking for libxml/SAX2.h... no checking if libxml xmlEntity has name_length field... no checking if libxml xmlEntity has etype field... no checking if libxml xmlSAXHandler has initialized field... no checking if libxml xmlSAXHandler has externalSubset field... no checking for xmlSAX2InternalSubset... no checking for xmlCtxtUseOptions... no checking if libxml has parser option XML_PARSE_NONET... no checking libxml/HTMLparser.h usability... no checking libxml/HTMLparser.h presence... no checking for libxml/HTMLparser.h... no checking if libxml has parser option HTML_PARSE_NONET... no checking for xsltSaveResultToString... yes checking for system libxslt library... yes - version 1.1.24 checking for xsltInit... no checking libxslt/xslt.h usability... yes checking libxslt/xslt.h presence... yes checking for libxslt/xslt.h... yes checking XML parser to use... configure: error: No XML parser available - please install expat or libxml dmake: Error code 1, while making '../unxmacxi.pro/misc/build/so_configured_so_raptor' 1 module(s): redland need(s) to be rebuilt Reason(s): ERROR: error 65280 occurred while making /Users/sidharthamani/AOO/trunk/main/redland/raptor When you have fixed the errors in that module you can resume the build by running: build --all:redland I have libxml installed, i just installed expat as well. There is a libxml2 from my XCODE 3.2.6 installation as well. The problem is only with the redland module, the rest of the modules are installing properly, open office works when I install using the OSX binaries. Steps to reproduce : 1. cd into trunk/main 2. ./configure --with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4.12.tar.bz2 --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz --disable-mozilla 3. ./bootstrap 4. source MacOSXX86Env.Set.sh 5. cd into instsetoo_native 6. build --all System environment before building =================================== SYSTEM_LIBXSLT=YES HAVE_READDIR_R=YES BUILD_UNOWINREG=NO LOCALINI=/Users/sidharthamani/AOO/trunk/main/solenv/config OUTPATH=unxmacxi DIC_DADK=TRUE GPERF=/opt/local/bin/gperf ENABLE_LAYOUT=FALSE JAVAINTERPRETER=/usr/bin/java USE_XINERAMA=YES WITH_LDAP=NO NEW_JAR_PACK=TRUE JDK=sun MOC4=moc SHELL=/bin/bash TERM=xterm-color MKOUT=mkout.pl TMPDIR=/var/folders/-5/-573iJvgEp8Dnw5OYk-jPU+++TI/-Tmp-/ SYSTEM_APR_UTIL=NO WITH_BINFILTER=NO SOLARENV=/Users/sidharthamani/AOO/trunk/main/solenv BUILD_STAX=YES OPENSSL_LIBS=-lssl -lcrypto SOLARINC= -I. -I/Users/sidharthamani/AOO/trunk/main/solver/350/unxmacxi.pro/inc/stl -I/Users/sidharthamani/AOO/trunk/main/solver/350/unxmacxi.pro/inc/external -I/Users/sidharthamani/AOO/trunk/main/solver/350/unxmacxi.pro/inc -I/Users/sidharthamani/AOO/trunk/main/solenv/unxmacxi/inc -I/Users/sidharthamani/AOO/trunk/main/solenv/inc -I/Users/sidharthamani/AOO/trunk/main/res -I/Users/sidharthamani/AOO/trunk/main/solver/350/unxmacxi.pro/inc/stl -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/JavaVM.framework/Headers STAR_SSOLARINI=/Users/sidharthamani/AOO/trunk/main/solenv/config/ssolar.ini UPD=350 PATH_SEPERATOR=: SOURCE_ROOT_DIR=/Users/sidharthamani/AOO/trunk SYSTEM_LIBTEXTCAT=NO SYSTEM_GLIB=YES SOLARVER=/Users/sidharthamani/AOO/trunk/main/solver/350 BIG_SVX=TRUE PROFULLSWITCH=product=full DIC_ENUS=TRUE OOO_SHELL=/bin/bash PERL=/opt/local/bin/perl ENABLE_STATIC_GTK=FALSE DIC_DEDE=TRUE ZIPDEP=zipdep.pl SYSTEM_GDKPIXBUF=YES ENABLE_BEANSHELL=NO OLDPWD=/Users/sidharthamani/AOO/trunk/main/instsetoo_native SRC_ROOT=/Users/sidharthamani/AOO/trunk/main SYSTEM_SERF=NO OS=MACOSX STAR_INIROOT=/Users/sidharthamani/AOO/trunk/main/solenv/config COM=GCC DIC_SWTZ=TRUE ANT_HOME=/usr/share/ant SYSTEM_EXPAT=NO STLPORT_VER=400 ENABLE_JAVASCRIPT=NO USER=root EPM_URL=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz SCPDEFS= -DENABLE_ONLINE_UPDATE -DWITH_CATA_FONTS SUDO_USER=sidharthamani GXX_INCLUDE_PATH=/usr/include/c++/4.0.0 SYSTEM_LUCENE=NO SOLAREXTRALIB= -L/lib -L/usr/lib WORKDIR=/Users/sidharthamani/AOO/trunk/main/solver/350/unxmacxi.pro/workdir DEFAULT_TO_ENGLISH_FOR_PACKING=yes SUDO_UID=501 SYSTEM_PANGO=YES PYTHON_LIBS=-framework Python WITH_MOZILLA=NO BMP_WRITES_FLAG=TRUE SYSTEM_MDDS=NO STAR_STANDLST=/Users/sidharthamani/AOO/trunk/main/solenv/config/stand.lst GVER=VCL SOLAR_JAVA=TRUE CALL_CDECL=TRUE FRAMEWORKSHOME=/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks SSH_AUTH_SOCK=/tmp/launch-0EXViq/Listeners JAVACOMPILER=/usr/bin/javac WORK_STAMP=AOO350 __CF_USER_TEXT_ENCODING=0x0:0:0 SYSTEM_JPEG=NO ENABLE_MEDIAWIKI=NO BUILD_SOSL=true USERNAME=root OUTDIR=/Users/sidharthamani/AOO/trunk/main/solver/350/unxmacxi.pro COMMON_BUILD_TOOLS=/Users/sidharthamani/AOO/trunk/main/external/common XINERAMA_LINK=dynamic JAVADOC=/usr/bin/javadoc BUILD_SOSL_RELEASE=TRUE CPUNAME=INTEL ENABLE_PRESENTER_SCREEN=NO ANT_LIB=/usr/share/ant/lib LSCOLORS=ExFxCxDxBxegedabagacad PYTHON_CFLAGS=-I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3 AWTLIB=-ljawt XCLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/jre/lib/rt.jar:. PATH=.:/Users/sidharthamani/AOO/trunk/main/solenv/unxmacxi.pro/bin:/Users/sidharthamani/AOO/trunk/main/solenv/bin:.:/Users/sidharthamani/AOO/trunk/main/solenv/unxmacxi.pro/bin:/Users/sidharthamani/AOO/trunk/main/solenv/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/go/bin:/usr/texbin:/usr/X11/bin: /usr/local/mysql/bin HAVE_GETOPT=YES CPU=I TF_FILTER=TRUE SYSTEM_HSQLDB=NO LFS_CFLAGS=-D_FILE_OFFSET_BITS=no SOLARLIB= -L/Users/sidharthamani/AOO/trunk/main/solver/350/unxmacxi.pro/lib -L/usr/lib DO_FETCH_TARBALLS=yes gb_REPOS=/Users/sidharthamani/AOO/trunk/main /Users/sidharthamani/AOO/trunk/ext_libraries SYSTEM_STDLIBS=NO SOLARVERSION=/Users/sidharthamani/AOO/trunk/main/solver/350 SO3=TRUE DIC_ENGB=TRUE PWD=/Users/sidharthamani/AOO/trunk/main/instsetoo_native/res GNUMAKE=make GUIBASE=aqua PROEXT=.pro build_deliver=true JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home SYSTEM_BOOST=NO LIBXML_CFLAGS=-I/opt/local/include/libxml2 WITH_FONTS=YES DMAKE_PATH=/Users/sidharthamani/AOO/trunk/main/solenv/unxmacxi.pro/bin/dmake SYSTEM_MYTHES=NO SYSTEM_CURL=YES CURL_LIBS=-lcurl LIBXSLT_LIBS=-lxslt -lxml2 -lz -lpthread -licucore -lm SYSTEM_LIBXML=YES DMAKEROOT=/Users/sidharthamani/AOO/trunk/main/solenv/inc/startup STLPORT4=NO_STLPORT4 IS_SYSTEM_DMAKE=YES SYSTEM_GETTEXT=YES SYSTEM_VIGRA=NO SYSTEM_SANE_HEADER=NO BUILD_TYPE=OOo EPM ODK JPEG EXPAT LIBXMLSEC LUCENE HSQLDB APR APR_UTIL SERF MDDS BOOST VIGRA UNIXODBC SANE ICU X11_EXTENSIONS REDLAND MYTHES LIBTEXTCAT LIBTEXTCATDATA MATHMLDTD MORE_FONTS AFMS ENABLE_ONLINE_UPDATE=YES SYSTEM_REDLAND=NO SYSTEM_LIBPNG=NO INPATH=unxmacxi.pro SYSTEM_SAXON=NO SYSTEM_BSH=NO SYSTEM_LIBC=YES SYSTEM_COINMP=NO STAR_INIROOTOLD=/Users/sidharthamani/AOO/trunk/main/solenv/config COMPATH=/usr SYSTEM_ICU=NO PKGFORMAT=dmg CXX=/usr/bin/g++-4.0 MOC=moc SYSTEM_LIBJPEG=NO LIBXSLT_CFLAGS=-I/opt/local/include/libxml2 WITH_CATA_FONTS=YES SYSTEM_DICTS=NO SHLVL=1 SUDO_COMMAND=/bin/bash HOME=/Users/sidharthamani GNUPATCH=/usr/bin/patch DISABLE_SAXON=YES ENABLE_CAIRO_CANVAS=FALSE ENABLE_NSS_MODULE=NO SOLAR_PLUGIN=TRUE ENABLE_COINMP=NO OOODMAKEMODE=YES SAL_ENABLE_FILE_LOCKING=1 SYSTEM_ODBC_HEADERS=NO SYSTEM_APR=NO ENABLE_PDFIMPORT=NO NO_REC_RES=TRUE OOO_JUNIT_JAR=/usr/share/java/junit.jar ENABLE_MINIMIZER=NO LIBXML_LIBS=-L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm SYSTEM_CPPUNIT=NO MACOSX_DEPLOYMENT_TARGET=10.4 TARFILE_LOCATION=/Users/sidharthamani/AOO/trunk/ext_sources UPDATER=YES DIC_ITIT=TRUE DIC_HUHU=TRUE ANT=/usr/share/ant/bin/ant LOGNAME=root SYSTEM_PYTHON=YES SOLARENVINC=/Users/sidharthamani/AOO/trunk/main/solenv/inc SYSTEM_XRENDER_HEADERS=NO ENABLE_MYSQLC=NO SYSTEM_ZLIB=YES BUILD_EPM=YES CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/jre/lib/rt.jar:. PRODUCT=full LC_CTYPE=UTF-8 HAVE_LD_HASH_STYLE=FALSE JAVAIFLAGS=-d32 NO_BSYMBOLIC=TRUE ENABLEUNICODE=TRUE SOLARSRC=/Users/sidharthamani/AOO/trunk/main ENABLE_REPORTBUILDER=NO DIC_RURU=TRUE DIC_ALL=TRUE GNUTAR=gnutar GUI=UNX EXTERNAL_WARNINGS_NOT_ERRORS=TRUE ADDITIONAL_REPOSITORIES=../ext_libraries CC=/usr/bin/gcc-4.0 CVER=C341 SUDO_GID=20 DISPLAY=/tmp/launch-8mgmdd/org.x:0 DELIVER=deliver.pl DIC_THTH=TRUE SYSTEM_OPENSSL=YES ENABLE_GRAPHITE=FALSE PSPRINT=TRUE USE_SYSTEM_STL=YES WITH_CATB_FONTS=NO STAR_SSCOMMON=/Users/sidharthamani/AOO/trunk/main/solenv/config/ssolar.cmn MKDEPENDSOLVER=TRUE VCL=TRUE _=/usr/bin/env System configuration ====================== I downloaded the OpenOffice source using svn, using the URL given in the official website Mac OSX 10.6 Snow Leapord XCode 3.2.6(libxml is included as a part of this as well)
I have managed to resolve this and proceed with the compilation of Open Office on Mac OSX. install expat and put itits PATH into the environment cd into $PROJ_DIR/main/redland/unxmacxi.pro/misc/build/raptor-1.4.18/ vim configure in line 25209: add the following : need_expat=1 cd into $PROJ_DIR/main/redland/unxmacxi.pro/misc/build/raptor-1.4.18/librdfa/ vim rdfa.c remove the macro XMLCALL before the following function calls start_element end_element character_data save this file now perform the normal building process
(In reply to comment #0) > This is the error I get :- > checking XML parser to use... configure: error: No XML parser available - > please install expat or libxml given these switches > 2. ./configure > --with-dmake-url=http://dmake.apache-extras.org.codespot.com/files/dmake-4. > 12.tar.bz2 > --with-epm-url=http://ftp.easysw.com/pub/epm/3.7/epm-3.7-source.tar.gz > --disable-mozilla you are not building with the system's libxml, or did you pass --with-system-libxml ? > LIBXML_CFLAGS=-I/opt/local/include/libxml2 > SYSTEM_LIBXML=YES > LIBXML_LIBS=-L/opt/local/lib -lxml2 -lz -lpthread -liconv -lm > System configuration > ====================== > > I downloaded the OpenOffice source using svn, using the URL given in the > official website > > Mac OSX 10.6 Snow Leapord > XCode 3.2.6(libxml is included as a part of this as well) but if you don't pass --with-system-libxml the build system should use the internal one. Reopening. This might be really a bug.
(In reply to comment #2) I did not pass '--with-system-libxml' switch
(In reply to comment #3) > I did not pass '--with-system-libxml' switch Then your flags in MacOSXX86Env.Set.sh should look like BUILD_TYPE=" ... LIBXML2 ..." SYSTEM_LIBXML="NO" Please attach the following files: * main/config.log * main/redland/unxmacxi.pro/misc/build/raptor-1.4.18/config.log or investigate them to know what is going wrong. The first one should show something like configure:13475: checking which libxml to use configure:13582: result: internal if you are not building with system libxml.
Created attachment 80456 [details] main/config.log This is the config.log file found in main/
Created attachment 80457 [details] main/redland/unxmacxi.pro/misc/build/raptor-1.4.18/config.log This is the config.log file found in main/redland/unxmacxi.pro/misc/build/raptor-1.4.18
(In reply to comment #4) > Please attach the following files: > > * main/config.log > * main/redland/unxmacxi.pro/misc/build/raptor-1.4.18/config.log > I have attached the files. > or investigate them to know what is going wrong. > The first one should show something like > > configure:13475: checking which libxml to use > configure:13582: result: internal > I get the following :- configure:13437: checking which libxml to use configure:13442: result: external for the previously indicated switches.
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.