Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344993 - app-office/openoffice-3.2.1 fails to build with libX11-1.3.99.903 from overlay
Summary: app-office/openoffice-3.2.1 fails to build with libX11-1.3.99.903 from overlay
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Office Team
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
: 345211 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-10 22:34 UTC by Jesús Guerrero Botella (RETIRED)
Modified: 2010-11-12 20:45 UTC (History)
6 users (show)

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


Attachments
build.log.gz (build.log.gz,267.35 KB, application/x-gzip)
2010-11-10 22:36 UTC, Jesús Guerrero Botella (RETIRED)
Details
Patch to check for both defines (ooo-build-x11.diff,304 bytes, patch)
2010-11-12 14:37 UTC, John Keeping
Details | Diff
Patch for the ebuild to apply the above patch (openoffice-3.2.1-r1.ebuild.patch,522 bytes, patch)
2010-11-12 14:38 UTC, John Keeping
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-10 22:34:29 UTC
I am unable to build openoffice 3.2.1. It fails complaining that the vcl module needs to be rebuilt. I have found lots of errors related to vcl in the net, mostly dated stuff. I attach the whole build log, because I have no idea what else to look for.



Reproducible: Always

Steps to Reproduce:
1. emerge openoffice
2. watch it fail
3.



Expected Results:  
It should compile

# emerge --info
Portage 2.1.9.24 (default/linux/amd64/10.0/desktop, gcc-4.4.5, glibc-2.12.1-r3, 2.6.36 x86_64)
=================================================================
System uname: Linux-2.6.36-x86_64-AMD_Phenom-tm-_II_X2_545_Processor-with-gentoo-2.0.1
Timestamp of tree: Wed, 10 Nov 2010 09:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ABI="amd64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL AdobeFlash-10.1 AdobeFlash-10"
ACCEPT_PROPERTIES="*"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 cgi cgid 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"
ARCH="amd64"
ASFLAGS_x86="--32"
AUTOCLEAN="yes"
BROWSER="firefox"
CBUILD="x86_64-pc-linux-gnu"
CDEFINE_amd64="__x86_64__"
CDEFINE_x86="__i386__"
CFLAGS="-O2 -march=native -pipe"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x86="i686-pc-linux-gnu"
CLEAN_DELAY="5"
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog"
COLLISION_IGNORE="/lib/modules"
COLORFGBG="7;default"
COLORTERM="rxvt"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CVS_RSH="ssh"
CXXFLAGS="-O2 -march=native -pipe"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-Nlq1pvYa9w,guid=8da2748762740efadb667c5900000014"
DCCC_PATH="/usr/lib64/distcc/bin"
DEFAULT_ABI="amd64"
DESKTOP_SESSION="KDE-4"
DISPLAY=":0"
DISTCC_LOG=""
DISTCC_VERBOSE=""
DISTDIR="/var/portage/distfiles"
DM_CONTROL="/var/run/xdmctl"
EDITOR="/bin/nano"
ELIBC="glibc"
EMERGE_WARNING_DELAY="10"
EPREFIX=""
EROOT="/"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FETCHCOMMAND="/usr/bin/wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; exec sftp \"\${x%%/*}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}""
FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; exec rsync -avP \"\${x%%/*}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
GCC_SPECS=""
GDK_USE_XFT="1"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx"
GS_LIB="/home/i92guboj/.fonts"
GTK2_RC_FILES="/root/.gtkrc-2.0:/root/.kde/share/config/gtkrc-2.0:/etc/gtk-2.0/gtkrc"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/i92guboj/.gtkrc::/home/i92guboj/.kde4/share/config/gtkrc"
GUILE_LOAD_PATH="/usr/share/guile/1.8"
HG="/usr/bin/hg"
HOME="/root"
INFOPATH="/usr/share/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/info:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/info"
INPUT_DEVICES="ps2mouse evdev"
KDE_FULL_SESSION="true"
KDE_MULTIHEAD="false"
KDE_SESSION_UID="1000"
KDE_SESSION_VERSION="4"
KERNEL="linux"
LADSPA_PATH="/usr/lib64/ladspa"
LANG="es_ES.utf8"
LANGUAGE="es_ES:es"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_COLLATE="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LDFLAGS_x86="-m elf_i386"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LIBDIR_amd64="lib64"
LIBDIR_amd64_fbsd="lib64"
LIBDIR_ppc="lib32"
LIBDIR_ppc64="lib64"
LIBDIR_sparc32="lib32"
LIBDIR_sparc64="lib64"
LIBDIR_x86="lib32"
LIBDIR_x86_fbsd="lib32"
LINGUAS="es es_ES en"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;35:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=04;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mng=01;35:*.xcf=01;35:*.pcx=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.avi=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.mov=01;35:*.qt=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.mp3=00;36:*.wav=00;36:*.mid=00;36:*.midi=00;36:*.au=00;36:*.ogg=00;36:*.flac=00;36:*.aac=00;36:"
MAKEOPTS="-j3"
MANPATH="/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.20.1/man:/usr/share/gcc-data/x86_64-pc-linux-gnu/4.4.5/man"
MULTILIB_ABIS="amd64 x86"
MULTILIB_STRICT_DENY="64-bit.*shared object"
MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib"
MULTILIB_STRICT_EXEMPT="(perl5|gcc|gcc-lib|binutils|eclipse-3|debug|portage)"
NETBEANS="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml"
OOO_FORCE_DESKTOP="gnome"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/root/bin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
PHP_TARGETS="php5-2"
PKGDIR="/var/portage/packages"
PORTAGE_ARCHLIST="ppc x86-openbsd ppc-openbsd ppc64 x86-winnt x86-fbsd ppc-aix alpha arm x86-freebsd s390 amd64 arm-linux x86-macos x64-openbsd ia64-hpux hppa x86-netbsd x86-cygwin amd64-linux ia64-linux x86 sparc-solaris x64-freebsd sparc64-solaris x86-linux x64-macos sparc m68k-mint ia64 mips ppc-macos x86-interix hppa-hpux amd64-fbsd x64-solaris mips-irix m68k sh x86-solaris sparc-fbsd"
PORTAGE_BINHOST="ftp://foo:LNrGc9JpBujgweJd@jesgue.homelinux.org/packages/All/"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib64/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ECLASS_WARNING_ENABLE="0"
PORTAGE_ELOG_CLASSES="warn error info log qa"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_IONICE_COMMAND="ionice -c 3 -p ${PID}"
PORTAGE_NICENESS="19"
PORTAGE_PYM_PATH="/usr/lib64/portage/pym"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=50"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="-1"
PORTAGE_SANDBOX_COMPAT_LEVEL="16"
PORTAGE_SYNC_STALE="30"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/var/portage"
PORTDIR_OVERLAY="/var/portage/local/layman/sunrise /var/portage/local/layman/x11 /var/portage/local"
PRELINK_PATH_MASK="/usr/lib64/klibc:/usr/lib64/libfreebl3.so:/usr/lib64/libnssdbm3.so:/usr/lib64/libsoftokn3.so"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/home/i92guboj"
PYTHONDONTWRITEBYTECODE="1"
QT_PLUGIN_PATH="/home/i92guboj/.kde4/lib64/kde4/plugins/:/usr/lib64/kde4/plugins/"
RESUMECOMMAND="/usr/bin/wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}""
RESUMECOMMAND_RSYNC="rsync -avP "${URI}" "${DISTDIR}/${FILE}""
RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; exec rsync -avP \"\${x%%/*}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}""
ROOT="/"
ROOTPATH="/opt/bin:/usr/x86_64-pc-linux-gnu/i686-pc-linux-gnu/gcc-bin/4.5.1:/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5"
RPMDIR="/usr/portage/rpm"
RUBY_TARGETS="ruby18"
SANE_BACKENDS="epson"
SESSION_MANAGER="local/jesgue:@/tmp/.ICE-unix/2875,unix/jesgue:/tmp/.ICE-unix/2875"
SHELL="/bin/bash"
SHLVL="3"
STAGE1_USE="multilib nptl nptlonly unicode"
STRIGI_PLUGIN_PATH="/usr/lib64/strigi:"
SYMLINK_LIB="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="screen"
TMUX="/tmp//tmux-1000/default,2994,0"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv ipv6 jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 cgi cgid 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="ps2mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" SANE_BACKENDS="epson" USERLAND="GNU" VIDEO_CARDS="radeon vesa r600" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS COLLECTD_PLUGINS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS GPSD_PROTOCOLS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES NGINX_MODULES_HTTP NGINX_MODULES_MAIL PHP_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS USERLAND VIDEO_CARDS XFCE_PLUGINS XTABLES_ADDONS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="radeon vesa r600"
WINDOWID="31457302"
WINDOWPATH="3"
XAUTHORITY="/root/.xauthA6Ag9w"
XCURSOR_THEME="Oxygen_Black"
XDG_CONFIG_DIRS="/etc/xdg"
XDG_DATA_DIRS="/usr/share:/usr/local/share:/usr/share"
XDG_MENU_PREFIX="kde-4.5-"
XDG_SESSION_COOKIE="8a422582aab36423db97c00046030548-1289373659.480723-220468248"
XDM_MANAGED="method=classic,auto"
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
XZ_OPT="--memory=max"
_="/usr/bin/emerge"
Comment 1 Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-10 22:36:31 UTC
Created attachment 253925 [details]
build.log.gz
Comment 2 Hugo Mildenberger 2010-11-11 15:20:11 UTC
(In reply to comment #1)
> Created an attachment (id=253925) [details]
> build.log
> 

Just retry to build oo with -j1 in MAKEOPTS (in /etc/make.conf). I recently successfully build version 3.2.1, and succeed (on amd64) despite of the errors like the following:

   Entering /var/tmp/portage/app-
    office/openoffice-3.2.1/work/ooo/build/OOO320_m19/
    xmerge/source/xmerge
   Compiling: vcl/source/gdi/print.cxx
   Dsolar.langs="en-US es " -Dsolar.localized="true"
   /bin/bash: Dsolar.langs=en-US es : command not found
Comment 3 Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-11 16:12:29 UTC
I already had MAKEOPTS=-j1. It's the only -j level I dare to use when emerging openoffice because it always failts for one or another reason. My CFLAGS are standard.

I am trying to recompile 3.2.0 right now. OOo is the most annoying blob when it comes to compilation. I will report back.

Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-11 19:32:19 UTC
Might be related to you trying to build without java, this worked fine a few weeks ago, but OOo is notoriously sensitive to dependency changes.
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-11 23:38:45 UTC
Can reproduce this locally (on x86, also without java), the actual error is:


In file included from ../../../unx/inc/salobj.h:33,
                 from /var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/vcl/unx/source/app/saldisp.cxx:98:
../../../inc/vcl/salobj.hxx:74: warning: unused parameter 'bEnable'
In file included from /var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/vcl/unx/source/app/saldisp.cxx:101:
../../../unx/inc/dtint.hxx:41: error: using typedef-name 'Display' after 'struct'
/usr/include/X11/Xlib.h:495: error: 'Display' has a previous declaration here
../../../unx/inc/dtint.hxx:42: error: using typedef-name 'XEvent' after 'struct'
/usr/include/X11/Xlib.h:1017: error: 'XEvent' has a previous declaration here
dmake:  Error code 1, while making '../../../unxlngi6.pro/slo/saldisp.obj'

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/vcl/unx/source/app
rmdir /var/tmp/portage/app-office/openoffice-3.2.1-r1/temp/g7B6QXj7S4
make: *** [stamp/build] Error 1

Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-11 23:39:40 UTC
@Hanno: Have you seen that bug in your tests before?
Comment 7 Guillaume Castagnino 2010-11-12 00:17:10 UTC
(In reply to comment #5)
> Can reproduce this locally (on x86, also without java), the actual error is:
> 
> 
> In file included from ../../../unx/inc/salobj.h:33,
>                  from
> /var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/vcl/unx/source/app/saldisp.cxx:98:
> ../../../inc/vcl/salobj.hxx:74: warning: unused parameter 'bEnable'
> In file included from
> /var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/vcl/unx/source/app/saldisp.cxx:101:
> ../../../unx/inc/dtint.hxx:41: error: using typedef-name 'Display' after
> 'struct'
> /usr/include/X11/Xlib.h:495: error: 'Display' has a previous declaration here
> ../../../unx/inc/dtint.hxx:42: error: using typedef-name 'XEvent' after
> 'struct'
> /usr/include/X11/Xlib.h:1017: error: 'XEvent' has a previous declaration here
> dmake:  Error code 1, while making '../../../unxlngi6.pro/slo/saldisp.obj'
> 
> ERROR: Error 65280 occurred while making
> /var/tmp/portage/app-office/openoffice-3.2.1-r1/work/ooo/build/OOO320_m19/vcl/unx/source/app
> rmdir /var/tmp/portage/app-office/openoffice-3.2.1-r1/temp/g7B6QXj7S4
> make: *** [stamp/build] Error 1
> 

I have exactly the same error here.
But it's due to libX11-1.3.99.903 (x11 overlay). Downgrading to 1.3.6 (portage) and it now builds fine
Comment 8 Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-12 08:04:00 UTC
Right, I am using the same libX11, so you can close as invalid, unless someone with a standard setup can reproduce this.

Sorry for the noise.
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-12 09:51:14 UTC
Ok, same problem here ;-) Indeed closing as invalid, thanks for the quick answer!
Comment 10 Graham Murray 2010-11-12 10:12:37 UTC
Just for info, it also fails for me in the same way with Java and libX11-1.3.99.903
Comment 11 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-12 10:25:49 UTC
(In reply to comment #10)
> Just for info, it also fails for me in the same way with Java and
> libX11-1.3.99.903
> 

Thanks, correcting title
Comment 12 John Keeping 2010-11-12 11:12:00 UTC
It looks like the file ooo/build/OOO320_m19/vcl/unx/inc/dtint.hxx relies on X11/Xlib.h defining _XLIB_H_ if it is included. But the version of Xlib.h on my system (x11-libs/libX11-1.3.99.903) defines _X11_XLIB_H_.

Indeed this seems to be an intentional change so openoffice will need to be updated at some point: http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=d0cbf388919364fe6b5b9127f36426eb744090a0

I suspect that changing the #ifdef _XLIB_H_ to check for either _XLIB_H_ or _X11_XLIB_H_ and am compile a copy patched to change this.
Comment 13 Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-11-12 11:29:44 UTC
(In reply to comment #12)
> It looks like the file ooo/build/OOO320_m19/vcl/unx/inc/dtint.hxx relies on
> X11/Xlib.h defining _XLIB_H_ if it is included. But the version of Xlib.h on my
> system (x11-libs/libX11-1.3.99.903) defines _X11_XLIB_H_.
> 
> Indeed this seems to be an intentional change so openoffice will need to be
> updated at some point:
> http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=d0cbf388919364fe6b5b9127f36426eb744090a0
> 
> I suspect that changing the #ifdef _XLIB_H_ to check for either _XLIB_H_ or
> _X11_XLIB_H_ and am compile a copy patched to change this.
> 
I was investigating amongst this same lines. I can confirm that changing that define in dtint.hxx allows you to compile OOo with the new libX11 version.

What I did, in case someone else needs to know, is to run "ebuild openoffice-3.2.1-r1.ebuild compile", wait, then modify the relevant file under /var/tmp/portage/..... and continue from there again.

I changed the relevant section this way:

#ifndef _XLIB_H_
#ifndef _X11_XLIB_H_
// forwards from X
struct Display;
struct XEvent;
#define Atom UINT32
#define XLIB_Window UINT32
#endif
#endif

I have no idea how (if possible at all) to put this in an ebuild, because this file that needs patching is not available from the ebuild, since it's created by the Makefile script itself. So for now I will have to merge the ebuild myself by hand (not a big deal).

Thanks again for all the pointers.
Comment 14 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-12 12:01:26 UTC
Reopening, guess better to keep this around visibly
Comment 15 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-12 12:02:43 UTC
@x11 herd: could you please comment on this with some advice / insight? upcoming libX11 releases seem to break OOo...
Comment 16 Tomáš Chvátal (RETIRED) gentoo-dev 2010-11-12 13:45:49 UTC
(In reply to comment #15)
> @x11 herd: could you please comment on this with some advice / insight?
> upcoming libX11 releases seem to break OOo...
> 

They changed internal ifdefs to be prefixed with _X11_ on Xlib.h so nothing that use former ifdefs won't compile.
See the upstream bug. Just include the Xlib.h.
Comment 17 John Keeping 2010-11-12 14:37:52 UTC
Created attachment 254091 [details, diff]
Patch to check for both defines

This patch fixes the compile failure for me.

It checks for both defines rather than including Xlib.h since that's what the version in LibreOffice's git does: http://cgit.freedesktop.org/libreoffice/libs-gui/tree/vcl/unx/inc/dtint.hxx
Comment 18 John Keeping 2010-11-12 14:38:49 UTC
Created attachment 254093 [details, diff]
Patch for the ebuild to apply the above patch
Comment 19 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-12 18:24:55 UTC
*** Bug 345211 has been marked as a duplicate of this bug. ***
Comment 20 Andreas Proschofsky (RETIRED) gentoo-dev 2010-11-12 20:45:49 UTC
Fix is now in the tree, thanks @John for providing the patch!