Bug 77287 - OOo2 cannot build without Mozilla
Summary: OOo2 cannot build without Mozilla
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-openoffice (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-09 02:00 UTC by Adam Weinberger
Modified: 2005-06-19 03:48 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Weinberger freebsd_committer 2005-02-09 02:00:39 UTC
	OOo2 build fails if WITHOUT_MOZILLA is defined. It gives the following:

	Making: ../../../../../../unxfbsd.pro/obj/akmngr.obj
	ccache gcc-ooo -Wreturn-type -fmessage-length=0 -c -I.  -I. -I../inc -I../../../../../     inc -I../../../../../../unx/inc -I../../../../../../unxfbsd.pro/inc -I. -I/usr/ports/e     ors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/inc/dont_use_stl -I/usr/ports/edi     s/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/inc/external -I/usr/ports/editors/o     office-2.0-devel/work/solver/680/unxfbsd.pro/inc -I/usr/ports/editors/openoffice-2.0-d     l/work/solenv/unxfbsd/inc -I/usr/ports/editors/openoffice-2.0-devel/work/solenv/inc -I     r/ports/editors/openoffice-2.0-devel/work/res -I/usr/ports/editors/openoffice-2.0-deve     ork/solver/680/unxfbsd.pro/inc/dont_use_stl -I/usr/ports/editors/openoffice-2.0-devel/     k/solenv/inc/Xp31 -INO_JAVA_HOME/include -INO_JAVA_HOME/include/freebsd -INO_JAVA_HOME     clude/bsd -INO_JAVA_HOME/include/native_threads/include -I/usr/X11R6/include -I/usr/po     /editors/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/inc/mozilla -I/usr/po
 rts/edi     s/openoffice-2.0-devel/work/solver/680/unxfbsd.pro/inc/mozilla/nspr -I/usr/ports/edito     openoffice-2.0-devel/work/solver/680/unxfbsd.pro/inc/mozilla/nss     -I. -I../../../..     /../res -I. -Wuninitialized -Os -fno-strict-aliasing   -DHAVE_CONFIG_H -DPACKAGE=\"xml     1\" -DXMLSEC_NO_XSLT=1 -D_REENTRANT -DXMLSEC_NO_XKMS -I../../include -I../.. -pipe -mt     =pentiumpro  -DFREEBSD -DUNX -DVCL -DGCC -DC300 -DINTEL -DGXX_INCLUDE_PATH=/usr/local/     /gcc-ooo/i386-portbld-freebsd5.3/3.4.1/include/c++ -DCVER=C300 -D_USE_NAMESPACE  -DX86     _PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -DHAVE_GCC     SIBILITY_FEATURE -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=680 -DPRODUCT -DNDEBUG -DPROD     _FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSRC680   -DMULTITHREAD        ../../../../../../unxfbsd.pro/obj/akmngr.o akmngr.c
	akmngr.c:11:18: nspr.h: No such file or directory
	akmngr.c:13:22: pk11func.h: No such file or directory
	akmngr.c:14:18: cert.h: No such file or directory
	akmngr.c:15:19: keyhi.h: No such file or directory
	In file included from akmngr.c:23:
	../../include/xmlsec/nss/tokens.h:49: error: parse error before "CK_MECHANISM_TYPE_PTR
	../../include/xmlsec/nss/tokens.h:49: warning: no semicolon at end of struct or union
	../../include/xmlsec/nss/tokens.h:50: warning: data definition has no type or storage      ss
	../../include/xmlsec/nss/tokens.h:51: error: parse error before '}' token
	../../include/xmlsec/nss/tokens.h:56: error: parse error before "CK_MECHANISM_TYPE_PTR
	../../include/xmlsec/nss/tokens.h:62: error: parse error before "CK_MECHANISM_TYPE"
	../../include/xmlsec/nss/tokens.h:68: error: parse error before "CK_MECHANISM_TYPE"
	../../include/xmlsec/nss/tokens.h:72: error: parse error before "xmlSecNssKeySlotGetMe     ist"
	../../include/xmlsec/nss/tokens.h:74: warning: data definition has no type or storage      ss
	../../include/xmlsec/nss/tokens.h:79: error: parse error before "PK11SlotInfo"
	../../include/xmlsec/nss/tokens.h:85: error: parse error before "PK11SlotInfo"
	../../include/xmlsec/nss/tokens.h:93: error: parse error before '*' token
	../../include/xmlsec/nss/tokens.h:96: warning: data definition has no type or storage      ss
	../../include/xmlsec/nss/tokens.h:120: error: parse error before "CK_MECHANISM_TYPE"
	../../include/xmlsec/nss/tokens.h:126: error: parse error before "CK_MECHANISM_TYPE"
	../../include/xmlsec/nss/tokens.h:163: error: parse error before '*' token
	../../include/xmlsec/nss/tokens.h:163: error: parse error before "type"
	../../include/xmlsec/nss/tokens.h:163: warning: data definition has no type or storage     ass
	../../include/xmlsec/nss/tokens.h:175: error: parse error before '*' token
	In file included from akmngr.c:24:
	../../include/xmlsec/nss/akmngr.h:27: error: parse error before '*' token
	../../include/xmlsec/nss/akmngr.h:34: error: parse error before "PK11SymKey"
	../../include/xmlsec/nss/akmngr.h:40: error: parse error before "SECKEYPublicKey"
	../../include/xmlsec/nss/akmngr.h:46: error: parse error before "SECKEYPrivateKey"
	In file included from akmngr.c:25:
	../../include/xmlsec/nss/pkikeys.h:24: error: parse error before '*' token
	../../include/xmlsec/nss/pkikeys.h:27: error: parse error before '*' token
	../../include/xmlsec/nss/pkikeys.h:27: warning: data definition has no type or storage     ass
	../../include/xmlsec/nss/pkikeys.h:29: error: parse error before '*' token
	../../include/xmlsec/nss/pkikeys.h:29: warning: data definition has no type or storage     ../../include/xmlsec/nss/akmngr.h:34: error: parse error before "PK11SymKey"
	../../include/xmlsec/nss/akmngr.h:40: error: parse error before "SECKEYPublicKey"
	../../include/xmlsec/nss/akmngr.h:34: error: parse error before "PK11SymKey"
	../../include/xmlsec/nss/akmngr.h:40: error: parse error before "SECKEYPublicKey"
	../../include/xmlsec/nss/akmngr.h:46: error: parse error before "SECKEYPrivateKey"
	In file included from akmngr.c:25:
	../../include/xmlsec/nss/pkikeys.h:24: error: parse error before '*' token
	../../include/xmlsec/nss/pkikeys.h:27: error: parse error before '*' token
	../../include/xmlsec/nss/pkikeys.h:27: warning: data definition has no type or storage class
	../../include/xmlsec/nss/pkikeys.h:29: error: parse error before '*' token
	../../include/xmlsec/nss/pkikeys.h:29: warning: data definition has no type or storage class
	../../include/xmlsec/nss/pkikeys.h:31: error: parse error before "xmlSecNssPKIKeyDataGetKeyType"
	../../include/xmlsec/nss/pkikeys.h:31: warning: data definition has no type or storage class
	In file included from akmngr.c:26:
	../../include/xmlsec/nss/ciphers.h:22: error: parse error before "PK11SymKey"
	../../include/xmlsec/nss/ciphers.h:24: error: parse error before '*' token
	../../include/xmlsec/nss/ciphers.h:26: error: parse error before '*' token
	../../include/xmlsec/nss/ciphers.h:26: warning: data definition has no type or storage class
	akmngr.c:40: error: parse error before '*' token
	akmngr.c:184: error: parse error before "PK11SymKey"
	akmngr.c: In function `xmlSecNssAppliedKeysMngrSymKeyLoad':
	akmngr.c:190: error: `mngr' undeclared (first use in this function)
	akmngr.c:190: error: (Each undeclared identifier is reported only once
	akmngr.c:190: error: for each function it appears in.)
	akmngr.c:191: error: `symKey' undeclared (first use in this function)
	akmngr.c: At top level:
	akmngr.c:251: error: parse error before "SECKEYPublicKey"
	akmngr.c: In function `xmlSecNssAppliedKeysMngrPubKeyLoad':
	akmngr.c:257: error: `mngr' undeclared (first use in this function)
	akmngr.c:258: error: `pubKey' undeclared (first use in this function)
	akmngr.c: At top level:
	akmngr.c:318: error: parse error before "SECKEYPrivateKey"
	akmngr.c: In function `xmlSecNssAppliedKeysMngrPriKeyLoad':
	akmngr.c:324: error: `mngr' undeclared (first use in this function)
	akmngr.c:325: error: `priKey' undeclared (first use in this function)
	dmake:  Error code 1, while making '../../../../../../unxfbsd.pro/obj/akmngr.obj'
	'---* tg_merge.mk *---'
	dmake:  Error code 255, while making './unxfbsd.pro/misc/build/so_built_so_xmlsec1'
	'---* tg_merge.mk *---'

	ERROR: Error 65280 occurred while making /usr/ports/editors/openoffice-2.0-devel/work/libxmlsec
	dmake:  Error code 1, while making 'instsetoo_native/prj/build_all'
	*** Error code 255

	Stop in /usr/ports/editors/openoffice-2.0-devel.

Fix: 

I'm not even convinced that this problem is FreeBSD-related. Configure
	gets passed --disable-mozilla, and it certainly skips the mozilla build.
	But then it fails because certain mozilla headers aren't installed.
	IIRC, it wasn't even happy if it was trained to look for the headers
	installed by the nspr port, but I'm not 100% on that one.

	FWIW, this also fails with the same error if mozilla or nspr ports are
	installed on the system.
How-To-Repeat: 
	cd /usr/ports/editors/openoffice-2.0-devel ; make -DWITHOUT_MOZILLA
Comment 1 Adam Weinberger freebsd_committer 2005-02-09 02:03:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->openoffice

Over to maintainers.
Comment 2 Maho Nakata freebsd_committer 2005-06-19 03:48:07 UTC
State Changed
From-To: open->closed

OOo it self should build with without mozilla, but currently 
WIP status. I disabled this knob for while. 
thanks for your report.