[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#316951: openoffice.org2: compile errors



Package: openoffice.org2
Version: 1.9.108-1
Severity: serious
Tags: experimental
Justification: no longer builds from source

When compiling on a Ubuntu system with gcc-4.0 4.0_4.0.0ds1-11 ported
from Debian, I noticed some compile errors. I think some of these are
applicable to Debian, so I am reporting my solutions here in case they
can help others.

#1. configure script reported error that it can't find jni.h. I found
this was because jni.h is located under the gcc 4.0 include directory:

brian@dbase1:/var/cache/pbuilder/result$ dpkg -c libgcj6-dev_4.0.0-11.ivt.1_i386.deb  | grep jni.h
-rw-r--r-- root/root     62692 2005-07-04 17:22:24 ./usr/lib/gcc/i486-linux-gnu/4.0.1/include/jni.h

Meaning it can only be found by gcc-4.0.1. However, debian/rules
was still using 3.4.

Solution:

GCC_VERSION = 3.4

Changed to:

GCC_VERSION = 4.0


#2. Error that libjawt doesn't exist. This is because it was renamed to
libgcjawt in version gcc-4.0 4.0.0ds1-9ubuntu1, which is in the Debian
version.

Solution:

1. delete bean-no-libgcjawt.diff from ooo-build/patches/src680/.

2. also delete the following lines from ooo-build/patches/src680/apply.

--- cut ---
[ GCJ >= src680-m108 ]
# libgcjawt.so exists only for traget gcc 4.1.0, 4.0.x has libjawt.so
bean-no-libgcjawt.diff
--- cut ---


#3. Compile error:

[...]

if ( -e ../../../unxlngi6.pro/slo/forms_EventThread.o) touch ../../../unxlngi6.pro/slo/forms_EventThread.obj
--- NOOPTFILES OVER ---
------------------------------
Making: ../../../unxlngi6.pro/slo/forms_Button.obj
g++ -Wreturn-type -fmessage-length=0 -c -I.  -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solver/680/unxlngi6.pro/inc/offuh -I../inc -I../../../inc -I../../../inc/bf_forms -I../../../unx/inc -I../../../unxlngi6.pro/inc -I. -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solver/680/unxlngi6.pro/inc/stl -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solver/680/unxlngi6.pro/inc/external -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solver/680/unxlngi6.pro/inc -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solenv/unxlngi6/inc -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solenv/inc -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/res -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solver/680/unxlngi6.pro/inc/stl -I/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/solenv/inc/Xp31 -I/usr/lib/jvm/java-gcj/include -I/usr/X11R6/i
 nclude     -I. -I../../../res -I. -g -Os -fno-strict-aliasing -Wuninitialized   -pipe -mtune=pentiumpro -Wno-ctor-dtor-privacy -fvisibility-inlines-hidden -fexceptions -fno-enforce-eh-specs   -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DINTEL -DGXX_INCLUDE_PATH=/usr/lib/gcc/i486-linux-gnu/4.0.1/../../../../include/c++/4.0.1 -DCVER=C341 -D_USE_NAMESPACE -DNPTL -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC_VISIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680   -DSHAREDLIB -D_DLL_  -DMULTITHREAD  -o ../../../unxlngi6.pro/slo/forms_Button.o /tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/forms_Button.cxx
In file included from ../inc/property.hrc:69,
                 from /tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/FormComponent.hxx:170,
                 from /tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/Image.hxx:66,
                 from /tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/Button.hxx:66,
                 from /tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/forms_Button.cxx:67:
../inc/strings.hxx:123:8: warning: extra tokens at end of #endif directive
/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/Image.hxx:212: error: ISO C++ forbids declaration of 'OImageControlThread_Impl' with no type
/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/Image.hxx:212: error: expected ';' before '*' token
/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/forms_Button.cxx: In member function 'long int binfilter::frm::OButtonControl::OnClick(void*)':
/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/forms_Button.cxx:374: error: 'm_pThread' was not declared in this scope
/tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component/forms_Button.cxx:380: error: 'm_pThread' was not declared in this scope
dmake:  Error code 1, while making '../../../unxlngi6.pro/slo/forms_Button.obj'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /tmp/buildd/openoffice.org2-1.9.108/ooo-build/build/src680-m108/binfilter/bf_forms/source/component
make[1]: *** [stamp/build] Error 1
make[1]: Leaving directory `/tmp/buildd/openoffice.org2-1.9.108/ooo-build'
make: *** [debian/stampdir/build] Error 2
pbuilder: Failed autobuilding of package

So far this third problem has me stuck, I don't see any easy solutions.

I would speculate that the newest gcc-4.0 has broken something.

At the moment, I am still looking for the declaration of
OImageControlThread_Impl - where is it suppose to belong?

I can find the functions that belong to the class in
ooo-build/build/src680-m108/binfilter/bf_forms/source/component/forms_Image.cxx,
but no declaration of the class.

Maybe the fact I can't find it is why the compiler is also getting upset.  Or
maybe I haven't looked in the right spot.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (50, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-k7
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)



Reply to: