Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256773 - app-office/openoffice does not build with net-libs/xulrunner-1.9.1
Summary: app-office/openoffice does not build with net-libs/xulrunner-1.9.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 273712 275147 278111 278369 278700 282868 (view as bug list)
Depends on:
Blocks: 268394
  Show dependency tree
 
Reported: 2009-01-29 11:36 UTC by Alexey Shvetsov
Modified: 2009-08-27 07:59 UTC (History)
25 users (show)

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


Attachments
environment (environment,225.27 KB, text/plain)
2009-01-29 11:37 UTC, Alexey Shvetsov
Details
java-pkg-depend (java-pkg-depend,30 bytes, text/plain)
2009-01-29 11:37 UTC, Alexey Shvetsov
Details
build.log.gz (build.log.gz,1.01 MB, application/gzip)
2009-01-29 11:38 UTC, Alexey Shvetsov
Details
oo patch to work with xulrunner 1.9.1 (oo.patch,364 bytes, patch)
2009-07-12 20:13 UTC, Marcin Deranek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Shvetsov archtester gentoo-dev 2009-01-29 11:36:59 UTC
Portage 2.2_rc23 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r1, 2.6.28-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7200_@_2.53GHz-with-gentoo-2.0.0
Timestamp of tree: Thu, 29 Jan 2009 07:35:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.6.1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.3.3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-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/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -pipe -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages gpg parallel-fetch prelink preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-O3 -pipe -march=native -mtune=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1,--hash-style=gnu,--sort-common,--as-needed"
LINGUAS="ru en"
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/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/kde-testing /usr/local/portage/layman/vmware /usr/local/portage/layman/mozilla /usr/local/portage/layman/science /usr/local/overlays/portage /usr/local/overlays/cross"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi addressbook akonadi alsa amd64 amr amrnb amrr amrwb analogtv avahi bash-completion berkdb bittorrent blas branding bzip2 cairo cdaudio cdinstall cdr cli consolekit context cracklib crypt cups cvs cyrillic daap dbus detex dga dhcp djvu dri dts dv dvb dvbplayer dvbsetup dvd dvdnav dvdr dvdread ebook embedded emboss enca encode evo exif extra fam fbcondecor ffmpeg fftw flac fontconfig foomaticdb fortran ftp gdbm gif gimp git glitz gmp google-gadgets gpg gphoto2 gpm grace graphics graphviz gs gsl gstreamer gtk hal humanities iconv idn ieee1394 imagemagick inotify ipv6 isdnlog ithreads jadetex java javascript jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea ladspa lapack latex lcms ldap libffi libnotify live lm_sensors lzo mad marble md5sum mdnsresponder-compat midi mikmod mktemp mmx mmxext mng mp2 mp3 mp4 mpeg mpi mpi-threads mplayer mudflap multilib music mysql ncurses nemesi nepomuk network-cron nls nptl nptlonly nsplugin ogg omega openal openexr opengl openmp pam pch pcntl pcre pdf perl phonon plasma png pnm ppds pppd ps pstricks publishers python qt3support qt4 quicktime rar readline reflection resolvconf rtc sandbox schroedinger science sdl semantic-desktop sensord session setup slang smp speex spell spl srt sse sse2 ssl ssse3 startup-notification subversion svg symlink sysfs tcpd tetex tex tex4ht themes theora threads tiff truetype umfpack unicode urandom usb utempter vde vhook vim vim-syntax visualization vorbis webdav webkit wmf x264 x86emu xattr xcb xcomposite xetex xml xorg xpm xscreensaver xulrunner xv xvid xvmc zeroconf 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 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexey Shvetsov archtester gentoo-dev 2009-01-29 11:37:34 UTC
Created attachment 180083 [details]
environment

env
Comment 2 Alexey Shvetsov archtester gentoo-dev 2009-01-29 11:37:48 UTC
Created attachment 180085 [details]
java-pkg-depend

java-pkg-depend
Comment 3 Alexey Shvetsov archtester gentoo-dev 2009-01-29 11:38:22 UTC
Created attachment 180086 [details]
build.log.gz

build.log.gz
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-29 12:12:40 UTC
Could you please post the relevant build error, makes it a lot easier than having to search inside the whole build log.
Comment 5 Alexey Shvetsov archtester gentoo-dev 2009-01-29 12:25:14 UTC
(In reply to comment #4)
> Could you please post the relevant build error, makes it a lot easier than
> having to search inside the whole build log.
> 

Checking DLL ../unxlngx6.pro/lib/check_libvbaobjlx.uno.so ...: ok                                                        
-rwxr-xr-x 1 root root 3659822 Jan 29 14:21 ../unxlngx6.pro/lib/libvbaobjlx.uno.so                                       
Making: ../unxlngx6.pro/bin/scen-US.res                                                                                  
Making: ../unxlngx6.pro/bin/scru.res                                                                                     
using rsc multi-res feature                                                                                              
rsc -presponse @/var/tmp/portage/app-office/openoffice-3.0.1/temp/mkhycugh > /dev/null                                   
-------------                                                                                                            
echo . > ../unxlngx6.pro/misc/linkinc.ls                                                                                 
Running processes: 0                                                                                                     
deliver -- version: 1.130                                                                                                
Module 'sc' delivered successfully. 170 files copied, 6 files unchanged                                                  

1 module(s): 
        extensions
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/extensions/source/plugin/base

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from extensions"

rmdir /tmp/5583
make: *** [stamp/build] Error 1
Comment 6 Peter Alfredsen (RETIRED) gentoo-dev 2009-01-29 12:26:01 UTC
This is *a* error from the log.

Making: ../../unxlngx6.pro/slo/bibload.obj
In file included from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/basegfx/polygon/b2dpolypolygon.hxx:36,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/vcl/region.hxx:39,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/vcl/outdev.hxx:42,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/vcl/window.hxx:37,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/vcl/syswin.hxx:37,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/vcl/dialog.hxx:37,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/desktop/source/deployment/gui/dp_gui_dialog2.hxx:36,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/desktop/source/deployment/gui/dp_gui_dialog2.cxx:40:
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/o3tl/cow_wrapper.hxx:281: warning: type qualifiers ignored on function return type
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/o3tl/cow_wrapper.hxx:285: warning: type qualifiers ignored on function return type
Making: ../../../unxlngx6.pro/slo/dp_gui_theextmgr.obj
In file included from ../inc/plugin/unx/plugcon.hxx:105,
                 from ../inc/plugin/unx/sysplug.hxx:35,
                 from ../inc/plugin/impl.hxx:85,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/extensions/source/plugin/base/service.cxx:38:
/usr/include/xulrunner-1.9/unstable/npapi.h:94:1: warning: "NP_VERSION_MINOR" redefined
In file included from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npupp.h:58,
                 from ../inc/plugin/unx/plugcon.hxx:103,
                 from ../inc/plugin/unx/sysplug.hxx:35,
                 from ../inc/plugin/impl.hxx:85,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/extensions/source/plugin/base/service.cxx:38:
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:96:1: warning: this is the location of the previous definition
In file included from ../inc/plugin/unx/plugcon.hxx:106,
                 from ../inc/plugin/unx/sysplug.hxx:36,
                 from ../inc/plugin/impl.hxx:86,
                 from /var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/extensions/source/plugin/base/service.cxx:39:
/usr/include/xulrunner-1.9/unstable/npapi.h:155: error: redefinition of 'struct _NPP'
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:210: error: previous definition of 'struct _NPP'
/usr/include/xulrunner-1.9/unstable/npapi.h:159: error: invalid type in declaration before ';' token
/usr/include/xulrunner-1.9/unstable/npapi.h:159: error: conflicting declaration 'typedef int NPP_t'
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:213: error: 'NPP_t' has a previous declaration as 'typedef struct _NPP NPP_t'
/usr/include/xulrunner-1.9/unstable/npapi.h:163: error: redefinition of 'struct _NPStream'
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:219: error: previous definition of 'struct _NPStream'
/usr/include/xulrunner-1.9/unstable/npapi.h:181: error: invalid type in declaration before ';' token
/usr/include/xulrunner-1.9/unstable/npapi.h:181: error: conflicting declaration 'typedef int NPStream'
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:226: error: 'NPStream' has a previous declaration as 'typedef struct _NPStream NPStream'
/usr/include/xulrunner-1.9/unstable/npapi.h:183: error: redefinition of 'struct _NPByteRange'
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:230: error: previous definition of 'struct _NPByteRange'
/usr/include/xulrunner-1.9/unstable/npapi.h:188: error: invalid type in declaration before ';' token
/usr/include/xulrunner-1.9/unstable/npapi.h:188: error: conflicting declaration 'typedef int NPByteRange'
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:234: error: 'NPByteRange' has a previous declaration as 'typedef struct _NPByteRange NPByteRange'
/usr/include/xulrunner-1.9/unstable/npapi.h:190: error: redefinition of 'struct _NPSavedData'
/var/tmp/portage/app-office/openoffice-3.0.1/work/ooo/build/ooo300-m15/solver/300/unxlngx6.pro/inc/npsdk/npapi.h:238: error: previous definition of 'struct _NPSavedData'
/usr/include/xulrunner-1.9/unstable/npapi.h:194: error: invalid type in declaration before ';' token
/usr/include/xulrunner-1.9/unstable/npapi.h:194: error: conflicting declaration 'typedef int NPSavedData'

Comment 7 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-29 12:52:29 UTC
(In reply to comment #6)
> This is *a* error from the log.

thanks, this is actually helpful ;) Looks like Alexey is using Firefox 3.0.1 / Xulrunner 1.9.1 which is not supported yet (it's not even in the tree). Feel free to file a bug upstream though. For the time being disable the nsplugin-use-flag for openoffice (if you don't want to downgrade to a supported Firefox)
Comment 8 Andreas Proschofsky (RETIRED) gentoo-dev 2009-01-29 12:53:51 UTC
Regarding the last post: I meant Firefox 3.1, mixing up numbers here...
Comment 9 Matt 2009-03-12 22:03:42 UTC
was it fixed meanwhile or is my system-configuration an exception ?

Portage 2.2_rc24 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-rc7-zen2_test x86_64)
=================================================================
System uname: Linux-2.6.29-rc7-zen2_test-x86_64-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-glibc2.4
Timestamp of tree: Wed, 11 Mar 2009 13:20:01 +0000
app-shells/bash:     3.2_p48-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.4
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r4, 2.18.50.0.9, 2.19.50.0.1, 2.19.51.0.1, 2.19.51.0.2, 2.19.51.0.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"

openoffice 3.0.1 and xulrunner 1.9.1_beta2 from mozilla-overlay

seems to work fine here
Comment 10 Gonçalo Silva 2009-03-12 22:44:23 UTC
Confirming this problem. I also have Firefox 3.1 installed, from the Mozilla overlay. Not sure it is directly related, though...
Comment 11 Christophe Saout 2009-05-24 19:14:30 UTC
Ok, the reason for this is rather shocking, but probably also easy to fix, or rather work around.

openoffice comes with its own copy of npapi.h, but still includes the system npapi.h first.  What happened now is that the #ifdef protection for double-inclusion of the header changed between gecko 1.9 and gecko 1.9.1, if you look at /usr/include/xulrunner-1.9/stable/npapi.h it changed from #ifndef _NPAPI_H_ to #ifndef npapi_h_, but the copy inside OOo still uses #ifndef _NPAPI_H_.

So, with FF 3.0 the npapi.h copy inside OOo was not used, because the #define _NPAPI_H_ from the system header prevented it to be parsed.  Now, since they differ, gcc will go through the copy a second time and die from the double-definition clashes.  So the fault is really that OOo is including the system and the local copy at the same time.

By changing npapi_h_ back to _NPAPI_H_ in the system header I got OOo to compile.  However, this is not the solution, one should rather fix OOo to not include its local copy if a system header is found. (or as a rather ugly workardoung change the #ifndef of the OOo npapi.h copy to 
"#if !defined(_NPAPI_H_) && !define(npapi_h_)
Comment 12 Andreas Proschofsky (RETIRED) gentoo-dev 2009-06-20 13:46:37 UTC
*** Bug 273712 has been marked as a duplicate of this bug. ***
Comment 13 Luca Wehrstedt 2009-06-20 19:06:53 UTC
I can confirm the bug and the workaround proposed by Christophe Saout
Comment 14 Andreas Proschofsky (RETIRED) gentoo-dev 2009-06-23 11:25:24 UTC
*** Bug 275147 has been marked as a duplicate of this bug. ***
Comment 15 Andreas Proschofsky (RETIRED) gentoo-dev 2009-06-24 12:07:45 UTC
fix summary...
Comment 16 Matthew 2009-06-25 09:12:18 UTC
I have attempted aforementioned "rather ugly workaround"...

Modified /usr/include/xulrunner-1.9.1/unstable/npapi.h, as follows:

- #ifndef npapi_h_
+ #if !defined(_NPAPI_H_) && !define(npapi_h_)

Attempted re-emerge, still broken, received similar error as Comment #5...

Making: ../unxlngi6.pro/bin/swen-US.res
using rsc multi-res feature
rsc -presponse @/var/tmp/portage/app-office/openoffice-3.1.0/temp/mkBuMMCD > /dev/null
Running processes: 0
deliver -- version: 266154
Module 'sw' delivered successfully. 265 files copied, 0 files unchanged

1 module(s): 
	extensions
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/extensions/source/plugin/base

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from extensions"

rmdir /tmp/14500
make: *** [stamp/build] Error 1
 * 
 * ERROR: app-office/openoffice-3.1.0 failed.


Comment 17 Small_Penguin 2009-07-03 09:50:48 UTC
Got the same issues here (AMD64).

ERROR: error 65280 occurred while making
/var/tmp/portage/app-office/openoffice-3.1.0/work/ooo/build/ooo310-m11/extensions/source/plugin/base
Comment 18 John Flatness 2009-07-04 16:35:37 UTC
The problems of comments #16 and #17 are probably typo-related.

#if !defined(_NPAPI_H_) && !defined(npapi_h_)

is the correct line (!defined instead of !define after the boolean and).
Comment 19 John Flatness 2009-07-04 16:42:25 UTC
(In reply to comment #18)
> The problems of comments #16 and #17 are probably typo-related.
> 
> #if !defined(_NPAPI_H_) && !defined(npapi_h_)
> 
> is the correct line (!defined instead of !define after the boolean and).
> 

Sorry for the double-post, but I also realized, comment #16 was also editing the wrong file.  Your options are to edit the xulrunner header so that it uses the old inclusion guard, changing it to 

#ifndef _NPAPI_H_
#define _NPAPI_H_

or to change the header in OOo to

#if !defined(_NPAPI_H_) && !defined(npapi_h_)

The second option is (slightly) preferred, both aren't optimal solutions, but both with cause OpenOffice to use your system xulrunner header over its own.
Comment 20 Paolo Pedroni 2009-07-07 08:46:35 UTC
(In reply to comment #19)
> Sorry for the double-post, but I also realized, comment #16 was also editing
> the wrong file.  Your options are to edit the xulrunner header so that it uses
> the old inclusion guard, changing it to 
> 
> #ifndef _NPAPI_H_
> #define _NPAPI_H_
> 
> or to change the header in OOo to
> 
> #if !defined(_NPAPI_H_) && !defined(npapi_h_)
> 
> The second option is (slightly) preferred, both aren't optimal solutions, but
> both with cause OpenOffice to use your system xulrunner header over its own.
> 

I tried the second option but it still doesn't work. It yields the same error as before.

The diff I "injected" in the ebuild is as follows:
unchanged:
--- np_sdk/mozsrc/npapi.h       2006-02-09 15:04:20.000000000 +0100
+++ np_sdk/mozsrc/npapi.h       2009-07-06 22:17:36.856489103 +0200
@@ -42,7 +42,7 @@
  *  Netscape client plug-in API spec
  */

-#ifndef _NPAPI_H_
+#if !defined(_NPAPI_H_) && !defined(npapi_h_)
 #define _NPAPI_H_

 #ifdef __OS2__

Did I patch the wrong file?
Comment 21 Paolo Pedroni 2009-07-07 09:39:10 UTC
(In reply to comment #20)
> 
> I tried the second option but it still doesn't work. It yields the same error
> as before.
> 
> The diff I "injected" in the ebuild is as follows:
> unchanged:
> --- np_sdk/mozsrc/npapi.h       2006-02-09 15:04:20.000000000 +0100
> +++ np_sdk/mozsrc/npapi.h       2009-07-06 22:17:36.856489103 +0200
> @@ -42,7 +42,7 @@
>   *  Netscape client plug-in API spec
>   */
> 
> -#ifndef _NPAPI_H_
> +#if !defined(_NPAPI_H_) && !defined(npapi_h_)
>  #define _NPAPI_H_
> 
>  #ifdef __OS2__
> 
> Did I patch the wrong file?
> 

Pleas allow me to reply to myself. I did not patch the wrong file, but in another file in the same directory (npupp.h) there is another check for _NPAPI_H_ which, if false, includes "npapi.h". I patched that as well and I'm trying to compile Openoffice again. I will report again at the end of the compilation run.
Comment 22 Paolo Pedroni 2009-07-07 10:39:41 UTC
No luck. The proposed fix doesn't work for me. :-(

I'll go with USE="-nsplugin" for the time being.
Comment 23 Sven Müller 2009-07-08 07:44:58 UTC
(In reply to comment #22)
> No luck. The proposed fix doesn't work for me. :-(
> 
> I'll go with USE="-nsplugin" for the time being.
> 

I didn't try the patch, but USE="-nsplugin" worked for me too. What does nsplugin do exactly in OpenOffice? I couldn't make out any differences for the first look.
Comment 24 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-10 17:31:17 UTC
openoffice is one of three packages that still fail with xulrunner-1.9.1
Comment 25 Marcin Deranek 2009-07-12 20:13:34 UTC
Created attachment 197670 [details, diff]
oo patch to work with xulrunner 1.9.1
Comment 26 Marcin Deranek 2009-07-12 20:19:30 UTC
Seems like npapi.h from oo is loaded as first and npapi.h system-wide as 2nd, so we need to prevent loading system-wide npapi.h (look into build.log where duplicate definition is). By adding:

cp -f "${FILESDIR}/oo.patch" "${S}/patches/hotfixes" || die

to src_prepere section I was able to compile openoffice with nsplugin USE flag.

After compilation I noticed that plugin is not visible in FF, so I had to create symlink (this is on amd64):

ln -s /usr/lib64/openoffice/program/libnpsoplugin.so /usr/lib64/mozilla-firefox/plugins/libnpsoplugin.so

After restarting FF I could see oo plugin on the list, but embedded oo documents shown in FF are still empty (dont' know why).. so plugin does not work for me.. :-(
Comment 27 Andreas Proschofsky (RETIRED) gentoo-dev 2009-07-13 09:02:11 UTC
(In reply to comment #26)
 
> After compilation I noticed that plugin is not visible in FF, so I had to
> create symlink (this is on amd64):
> 
> ln -s /usr/lib64/openoffice/program/libnpsoplugin.so
> /usr/lib64/mozilla-firefox/plugins/libnpsoplugin.so
> 

This part is really not necessary, you can activate the plugin through the OOo preferences, this will create a similar symlink in your firefox user settings.
Comment 28 Marcin Deranek 2009-07-14 18:32:01 UTC
Found it, thanx.
Replacing '#include "npapi.h"' with '#include <npapi.h>' (a few occurrences) also allows to compile openoffice with nsplugin USE flag.. Unfortunately it still doesn't show any content in the browser (blank page).
Comment 29 Jory A. Pratt gentoo-dev 2009-07-17 13:37:26 UTC
*** Bug 278111 has been marked as a duplicate of this bug. ***
Comment 30 Jonathan Callen (RETIRED) gentoo-dev 2009-07-20 03:20:34 UTC
*** Bug 278369 has been marked as a duplicate of this bug. ***
Comment 31 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-21 14:29:10 UTC
@openoffice: Ping?
Comment 32 Andreas Proschofsky (RETIRED) gentoo-dev 2009-07-21 15:08:40 UTC
Sorry was out of the country for quite some time, and just trying to get back to speed...(In reply to comment #31)
> @openoffice: Ping?
> 

Sorry was out of the country for quite some time, and just trying to get back to speed...
Comment 33 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-22 05:33:15 UTC
(In reply to comment #32)
> Sorry was out of the country for quite some time, and just trying to get back
> to speed...
> 

As a temporary solution, please fix the deps of openoffice[nsplugin] to pull in only 1.9.0*. 1.9.1 is going to be unmasked very soon.
Comment 34 Andreas Proschofsky (RETIRED) gentoo-dev 2009-07-22 20:22:45 UTC
*** Bug 278700 has been marked as a duplicate of this bug. ***
Comment 35 Andreas Proschofsky (RETIRED) gentoo-dev 2009-07-22 20:40:33 UTC
Just commited a new revision of OOo 3.1.0 which brings a bunch of changes, one them supporting xulrunner 1.9.1. Thanks everyone here, especially Marcin for providing the patch!

btw: patch works fine for me, can even open OOo docs in the browser (after enabling the plugin in the OOo settings)

Closing
Comment 36 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-08-27 07:59:31 UTC
*** Bug 282868 has been marked as a duplicate of this bug. ***