Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223385 - app-office/openoffice-2.4.0 - cannot convert 'sal_Int32*' to 'SQLINTEGER*'
Summary: app-office/openoffice-2.4.0 - cannot convert 'sal_Int32*' to 'SQLINTEGER*'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 21:32 UTC by Hans
Modified: 2008-06-15 03:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sal_Int32_to_SQLINTEGER.diff (sal_Int32_to_SQLINTEGER.diff,648 bytes, patch)
2008-05-25 10:01 UTC, Hanno Zysik (geki)
Details | Diff
fix SIZEOF_LONG for ppc64 (ppc64_sqltypes.diff,411 bytes, patch)
2008-05-25 13:12 UTC, Hanno Zysik (geki)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hans 2008-05-23 21:32:42 UTC
Making: ../../../unxlngppc64.pro/slo/OStatement.obj
/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/connectivity/source/drivers/odbc/OStatement.cxx: In member function 'sal_Int32 connectivity::odbc::OStatement_Base::getRowCount()':
/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/connectivity/source/drivers/odbc/OStatement.cxx:301: error: cannot convert 'sal_Int32*' to 'SQLINTEGER*' in argument passing
/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/connectivity/source/drivers/odbc/OStatement.cxx: In member function 'virtual com::sun::star::uno::Sequence<int> connectivity::odbc::OStatement::executeBatch()':
/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/connectivity/source/drivers/odbc/OStatement.cxx:567: error: cannot convert 'sal_Int32*' to 'SQLINTEGER*' in argument passing
dmake:  Error code 1, while making '../../../unxlngppc64.pro/slo/OStatement.obj'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/connectivity/source/drivers/odbc
make: *** [stamp/build] Error 1
 * 
 * ERROR: app-office/openoffice-2.4.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5329:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-2.4.0/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=ibm-jdk-bin-1.6  CLASSPATH="" JAVA_HOME="/opt/ibm-jdk-bin-1.6.0.0"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""

Reproducible: Always

Steps to Reproduce:
emerge app-office/openoffice-2.4.0



Portage 2.1.4.4 (default-linux/ppc/ppc64/2007.0/64bit-userland/power5, gcc-4.1.2, glibc-2.5-r4, 2.6.24-gentoo-r3 ppc64)
=================================================================
System uname: 2.6.24-gentoo-r3 ppc64 POWER5 (gr)
Timestamp of tree: Thu, 22 May 2008 22:36:20 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O3 -mcpu=power5 -mtune=power5 -m64"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -mcpu=power5 -mtune=power5 -m64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo ftp://lug.mtu.edu/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ "
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 acl alsa apm arts atk berkdb bidi cairo cli cracklib crypt cups dbus dri dts dvd dvdread emacs encode expat ffmpeg fortran gcj gdbm gif gnutls gpm gstreamer gtk hal ibm iconv imagemagick ipv6 isdnlog java jbig jpeg jpeg2k kde mad matroska midi mime mmap mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppc64 pppd pthread python qt3 qt4 readline reflection sdl server session sharedmem speex spl ssl svg tcpd theora threads tiff truetype unicode vorbis wmf x264 xml xorg xsl xv zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev mach64 mga nv r128 radeon vega"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2008-05-25 04:25:15 UTC
openoffice is just broken. sorry, you should talk to the openoffice developers. OO.o is neither keyworded ~ppc64 or even pppc, nor supported by us ppc64 developers in any way.
Comment 2 Hanno Zysik (geki) 2008-05-25 10:01:14 UTC
Created attachment 154239 [details, diff]
sal_Int32_to_SQLINTEGER.diff

@Hans
Please try this:
cd /var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/
patch -p0 < /tmp/sal_Int32_to_SQLINTEGER.diff
cd
ebuild /path/to/openoffice.ebuild compile
Comment 3 Hanno Zysik (geki) 2008-05-25 13:12:46 UTC
Created attachment 154259 [details, diff]
fix SIZEOF_LONG for ppc64

This should be the proper fix. :)

Though, I wonder if the __ppc64__ macro is correct.
ppc64 herd should know. ;)
Comment 4 Hans 2008-05-26 00:09:45 UTC
(In reply to comment #3)
> Created an attachment (id=154259) [edit]
> fix SIZEOF_LONG for ppc64
> 
> This should be the proper fix. :)
> 
> Though, I wonder if the __ppc64__ macro is correct.
> ppc64 herd should know. ;)
> 

Hanno,

Thank you very much for this working patch :)

I can also report that this ebuild of OpenOffice 2.4.0
emerged on ppc64/64bit UL. As far as I was able to test,
all OO applications are working fine.

Thanks again everone :)
Comment 5 Markus Rothe (RETIRED) gentoo-dev 2008-05-26 06:04:00 UTC
ok. so openoffice made some big steps forward regarding portability with newer versions.

I'll take a look and might add the patch to portage. This patch needs to be send upstream.
Comment 6 Hanno Zysik (geki) 2008-05-26 11:13:34 UTC
Caolan from Fedora told me what was wrong and was faster reporting. :)
http://www.openoffice.org/issues/show_bug.cgi?id=89955
Comment 7 Hanno Zysik (geki) 2008-05-26 23:45:20 UTC
Btw, version 2.4.1.1 has the patch; found here:
http://download.go-oo.org/OOH680/?C=M;O=D
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2008-05-27 21:09:46 UTC
A (masked) release candidate for OpenOffice.org 2.4.1 is now in the tree.

@ppc64-herd: Might be a good time to test and keyword accordingly ;)

@hanno: thanks a lot!

Closing
Comment 9 Greg Trigg 2008-06-15 03:06:13 UTC
(In reply to comment #8)
> A (masked) release candidate for OpenOffice.org 2.4.1 is now in the tree.
> 
> @ppc64-herd: Might be a good time to test and keyword accordingly ;)
> 
> @hanno: thanks a lot!
> 
> Closing
> 
I tested this on my IBM ppc64 and it still fails in exactly the same spot.  I have no idea why.  Is the patch in 2.4.1?  Emerge --info (if it matters):

Portage 2.1.4.4 (default/linux/powerpc/ppc64/2008.0/64bit-userland, gcc-4.2.4, glibc-2.7-r2, 2.6.24-gentoo-r3 ppc64)
=================================================================
System uname: 2.6.24-gentoo-r3 ppc64 POWER3 (630+)
Timestamp of tree: Fri, 13 Jun 2008 10:30:01 +0000
distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=power3 -mtune=power3"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -mcpu=power3 -mtune=power3"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://open-systems.ufl.edu/mirrors/gentoo "
LANG="en_US.utf8"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm ibm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppc64 pppd python readline reflection session spl ssl tcpd unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev mach64 mga nv r128 radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS