LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   building openoffice 3 dev m17 (https://www.linuxquestions.org/questions/slackware-14/building-openoffice-3-dev-m17-648135/)

dr.karabas 06-09-2008 05:57 PM

building openoffice 3 dev m17
 
Hi! I'm trying tu build open office 3 dev m17 and I get this error:
Quote:

/dane/Oo/DEV300_m17/transex3/layout
------------------------------
Making: ../unxlngx6.pro/obj/tralay.obj
x86_64-pc-linux-g++ -Wreturn-type -fmessage-length=0 -c -O2 -fno-strict-aliasing -Wuninitialized -I. -I../unxlngx6.pro/misc -I../unxlngx6.pro/inc/tralay -I../inc -I../inc/pch -I../inc -I../unx/inc -I../unxlngx6.pro/inc -I. -I/dane/Oo/DEV300_m17/solver/300/unxlngx6.pro/inc/stl -I/dane/Oo/DEV300_m17/solver/300/unxlngx6.pro/inc/external -I/dane/Oo/DEV300_m17/solver/300/unxlngx6.pro/inc -I/dane/Oo/DEV300_m17/solenv/unxlngx6/inc -I/dane/Oo/DEV300_m17/solenv/inc -I/dane/Oo/DEV300_m17/res -I/dane/Oo/DEV300_m17/solver/300/unxlngx6.pro/inc/stl -I/dane/Oo/DEV300_m17/solenv/inc/Xp31 -I/usr/lib/java/include -I/usr/lib/java/include/linux -I/usr/lib/java/include/native_threads/include -I/usr/include -I/dane/Oo/DEV300_m17/solver/300/unxlngx6.pro/inc/offuh -I. -I../res -I. -pipe -Wno-ctor-dtor-privacy -fno-use-cxa-atexit -fvisibility-inlines-hidden -Wall -Wextra -Wendif-labels -Wshadow -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -DLINUX -DUNX -DVCL -DGCC -DC341 -DX86_64 -DCVER=C341 -DNPTL -DGLIBC=2 -DX86_64 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/lib/gcc/x86_64-pc-linux/4.2.3/../../../../include/c++/4.2.3 -DSUPD=300 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DCUI -DSOLAR_JAVA -DDEV300=DEV300 -fexceptions -fno-enforce-eh-specs -DEXCEPTIONS_ON -o ../unxlngx6.pro/obj/tralay.o /dane/Oo/DEV300_m17/transex3/layout/tralay.cxx
/dane/Oo/DEV300_m17/transex3/layout/tralay.cxx: In member function 'void TranslateLayout::MergeLanguage(const ByteString&)':
/dane/Oo/DEV300_m17/transex3/layout/tralay.cxx:186: error: no matching function for call to 'SimpleXMLParser::Execute(String, LayoutXMLFile*&)'
../inc/xmlparse.hxx:546: note: candidates are: XMLFile* SimpleXMLParser::Execute(const String&, const String&, XMLFile*)
../inc/xmlparse.hxx:551: note: XMLFile* SimpleXMLParser::Execute(SvMemoryStream*)
dmake: Error code 1, while making '../unxlngx6.pro/obj/tralay.obj'

ERROR: Error 65280 occurred while making /dane/Oo/DEV300_m17/transex3/layout
dmake: Error code 1, while making 'build_instsetoo_native'
does anybody know how to deal with it?

willysr 06-09-2008 09:43 PM

i think it's easier to use the rpm and convert it using rpm2tgz :)

dr.karabas 06-09-2008 10:46 PM

tried that already... didn't work well...

dugan 06-10-2008 01:58 AM

Or use RPM to install the RPMs. RPM is part of Slackware.

Use the --nodeps switch.

willysr 06-14-2008 06:16 AM

it's not supported though

gnashley 06-14-2008 10:44 AM

Xou might try converting the binary rpm using src2pkg -should do a better job than rpm2tgz.

As to the original error, though, you need the perl SimpleXML module. For compiling OOO from source you will probably need lots of other things which are not included in Slackware.

dugan 06-14-2008 02:20 PM

Another possibility (which hasn't been mentioned yet) is to use alien to convert the RPMs.

digger95 06-15-2008 06:34 AM

Hi,

I was looking for a rainy day project yesterday so...
I built this using (or should I say butchering) Robby's slackbuild script for 2.4.
I'm pretty new at this so please feel free to check my work and comment.

I put the following in my build directory:

OOo-Dev_DEV300_m19_LinuxIntel_install_en-US.tar.gz
openoffice.org.SlackBuild
slack-desc

I removed the following RPM's from the source archive:

jre-6u6-linux-i586.rpm
ooobasis-dev3.0-gnome-integration-3.0.0-9317.i586.rpm
ooobasis-dev3.0-kde-integration-3.0.0-9317.i586.rpm

I edited the SlackBuild to look like this:

Code:

#!/bin/bash

# Slackware build script for OpenOffice.org (binary repackaging)

# Copyright 2006-2008  Robby Workman, Northport, Alabama, ASA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=openoffice.org
VERSION=DEV300_m19
ARCH=i586
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

OOLANG=${OOLANG:-en-US}
PKG_LANG=$(echo $OOLANG | sed s/-/_/)

set -e

SOURCEDIR=$(tar -tzf $CWD/OOo-Dev_${VERSION}_LinuxIntel_install_${OOLANG}.tar.gz | head -1 | tr -d \/)

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SOURCEDIR
tar xvf $CWD/OOo-Dev_${VERSION}_LinuxIntel_install_${OOLANG}.tar.gz
cd $SOURCEDIR/RPMS/
for FILE in *.rpm ; do rpm2cpio < $FILE | cpio -imdv ; done
mv opt $PKG
cd $PKG

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

chown -R root:root .
find . -type d -exec chmod 755 {} \;
chmod -R u+rw,go+r-w,a-s .
/sbin/makepkg -c n -l y $OUTPUT/$PRGNAM-${VERSION}_${PKG_LANG}-$ARCH-$BUILD$TAG.tgz

It builds fine and the resulting package installs everything to /opt/ooo-dev and /opt/ooo-dev3.
I intentionally left out all desktop integration.
Nothing installs outside of the /opt directory (no docs, symlinks, etc).
The package uninstalls cleanly and has no interaction with OpenOffice 2.4.

The startup scripts are in /opt/ooo-dev3/program/.

You can symlink to them or create your own menu entries manually.

screenshot1

screenshot2

Dig

dr.karabas 06-15-2008 08:28 PM

Thanks simplexml was the one I needed :)

Quote:

Originally Posted by gnashley (Post 3184646)
Xou might try converting the binary rpm using src2pkg -should do a better job than rpm2tgz.

As to the original error, though, you need the perl SimpleXML module. For compiling OOO from source you will probably need lots of other things which are not included in Slackware.


digger95 06-16-2008 08:30 PM

Hi dr.karabas,

Very glad you got everything worked out. I posted the slackbuild info because I love playing around with Slackware and I thought others might benefit from building the package as I did. It was just for information purposes only.

So what do you think of OpenOffice 3.0 so far?

I think it's pretty cool, and I especially like that the Optimization Solver in Calc is built in now.

Regards,

Dig


All times are GMT -5. The time now is 01:58 AM.