OpenOffice compile error regarding VBA

DJ Lucas dj at
Sat Feb 9 23:21:14 PST 2008

Alonso Graterol wrote:
> Hello,
>   While installing OOo-2.3.1 in an AMD64 Pure64 CLFS SVN-20070923 with
> kernel I get the following error, with the configuring
> parameters indicated
> ./configure --prefix=/opt/openoffice-2.3.1 --enable-libart
> --disable-fontooo --without-fonts --with-system-stdlibs
> --with-system-freetype --with-system-expat --with-system-libxml
> --with-system-zlib --with-build-version=CBLFS
> --with-package-format=native --disable-binfilter --with-lang="es"
> --with-openldap --disable-pam --enable-kde --disable-kdeab
> --disable-neon --disable-odk --disable-mozilla --disable-qadevooo
> --enable-vba --disable-gnome-vfs --with-ant-home=/opt/ant && cd .. &&
> umask 0022 && unset LANG LC_ALL
> "Making: ../../../
> g++  -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing
> -Wuninitialized   -I.  -I../../../ -I../inc
> -I../../../inc/pch -I../../../inc -I../../../unx/inc
> -I../../../ -I.
> -I/sources/OOo-2.3.1/solver/680/
> -I/sources/OOo-2.3.1/solver/680/
> -I/sources/OOo-2.3.1/solver/680/
> -I/sources/OOo-2.3.1/solenv/unxlngx6/inc
> -I/sources/OOo-2.3.1/solenv/inc -I/sources/OOo-2.3.1/res
> -I/sources/OOo-2.3.1/solver/680/
> -I/sources/OOo-2.3.1/solenv/inc/Xp31 -I/opt/jdk/include
> -I/opt/jdk/include/linux -I/opt/jdk/include/native_threads/include
> -I/usr/X11R7/include
> -I/sources/OOo-2.3.1/solver/680/ -I.
> -I../../../res -I. -pipe  -Wno-ctor-dtor-privacy -fno-use-cxa-atexit
> -fvisibility-inlines-hidden    -fpic -DLINUX -DUNX -DVCL -DGCC -DC341
> -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -D_PTHREADS
> -DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.2.1/../../../../include/c++/4.2.1
> -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON  -o
> ../../../
> /sources/OOo-2.3.1/sc/source/ui/vba/vbaapplication.cxx
> In file included from ../../../inc/docuno.hxx:44,
>                  from /sources/OOo-2.3.1/sc/source/ui/vba/vbaapplication.cxx:69:
> /sources/OOo-2.3.1/solver/680/
> error: #error "class is using css as namespace define .-)"

Unfortunately, I'm still working in 32 bit only, so I can't speak from 
experience.  Appearently, it's fixed upstream though...

> ------- Additional comments from fst Mon Jul 9 09:17:18 +0000 2007 -------
> VBA is not Main OOo, Noel seems to be yours.
> Frank
> ------- Additional comments from npower Mon Jul 9 12:52:35 +0000 2007 -------
> fixed in cws_npower7

I don't have any idea what is npower7.  As ususal, there is a lot more 
to it than a simple patch when dealing with OOo's build system.  Take a 
look at how I did the patches for previous versions of OOo-2.2.x for 
some examples of how to add a patch into the OOo build system, but 
updating to a later version of a dependent project could break the build 
entirely too.  I don't follow the code to figure out where this is 
coming from, but basically
OOG680_m9/sfx2/inc/sfx2/sfxbasemodel.hxx if you really want to try and 
track it down...might even be able to get away with stripping out the 
error, but I don't have the slightest idea what that would do...or break.

Good Luck.

-- DJ Lucas

More information about the blfs-support mailing list