Hi all,
some notes about building the above apps...
I have a nice new xorg 7.0 and Firefox 1.5 with the system NSS/NSPR
install all working fine.
When I get to OOo is where the trouble starts...
OOo needs imake :-(
To build OOo I found that one has to install (at least) these xorg
utility files:
imake-X11R7.0-1.0.1.tar.bz2 , gccmakedep-X11R7.0-1.0.1.tar.bz2,
xorg-cf-files-1.0.1.tar.bz2 ...
The site.def file installed into /usr/X11R7/lib/X11/config (I used ~dj's
build method for xorg 7.0) has a hardwired reference to
PROJECTROOT=/usr/X11R6! This needs to be changed or the build of nas-1.6
barfs with the "No such file" Imake.tmpl error.
I had built Firefox using Randy's new method of the system NSS/NSPR
libraries. During the OO build it barfs because it can't find
"prtypes.h" which resides in /usr/include/nspr. Now I can't for the life
of me work out why it can't find it. During configure, it correctly sets
a couple of env vars: Here's the relevant output from configure:
======================configure.log=============================
checking whether to enable build of Mozilla/Mozilla NSS-using components... no
checking whether to build Mozilla addressbook connectivity... no
checking whether to build XML Security support... no, since Mozilla (NSS)
disabled but needed
checking whether to build LDAP configuration backend... no. Either Mozilla or
OpenLDAP needed.
checking which mozilla to use... external
checking whether to use Mozilla or Firefox... Firefox
checking for firefox-xpcom ... yes
checking MOZILLAXPCOM_CFLAGS... -I/usr/include/firefox-1.5 -I/usr/include/firefox-1.5/xpcom -I/usr/include/firefox-1.5/string -I/usr/include/nspr
checking MOZILLAXPCOM_LIBS... -L/usr/lib/firefox-1.5 -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl
checking for firefox-nss ... yes
checking MOZ_NSS_CFLAGS... -I/usr/include/nss -I/usr/include/nspr
checking MOZ_NSS_LIBS... -lnss3 -lsmime3 -lssl3 -lsoftokn3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl
checking for PK11_GetCertFromPrivateKey in -lnss3... yes
checking which sane header to use... internal
checking for X... libraries /usr/X11R7/lib, headers /usr/X11R7/include
=======================end configure snippet==================
Here's my configure line:
===============================================================
./configure --prefix=/opt/openoffice-2.0.1
--x-includes=/usr/X11R7/include --x-libraries=/usr/X11R7/lib
--enable-libart --enable-libsn --enable-xsltproc --disable-mozilla
--disable-fontooo --without-fonts --with-system-stdlibs
--with-system-jpeg --with-system-curl --with-system-freetype
--with-system-expat --with-system-libxml --with-system-zlib
--with-system-mozilla --with-firefox --with-system-db
--with-db-jar=/usr/lib/db.jar --with-system-neon --with-system-python
--with-build-version=BLFS --with-package-format=native
--disable-binfilter --disable-cups --disable-gnome-vfs --with-lang="en
uk" --with-dict=ENGB,ENUS
=================================================================
And here's the error log:
==================================================================
cd ./unxlngi6.pro/misc/build && cat
../../../mozilla-source-M16-stub.patch | patch -b -p2 && touch
so_patched_npsdk
patching file mozilla/include/npapi.h
patching file mozilla/include/npupp.h
patching file mozilla/plugin/oji/MRJ/plugin/Source/makefile.mk
patching file mozilla/plugin/oji/MRJ/plugin/Source/npunix.c
patching file mozilla/plugin/oji/MRJ/plugin/Source/npwin.cpp
patching file mozilla/sun-java/stubs/include/jri.h
patching file mozilla/sun-java/stubs/include/jri_md.h
patching file mozilla/sun-java/stubs/include/jritypes.h
touch ./unxlngi6.pro/misc/build/so_patched_npsdk
touch ./unxlngi6.pro/misc/build/so_configured_npsdk
mkdir ./unxlngi6.pro/misc/build/mozilla/plugin/oji/MRJ/plugin/Source
mkdir: cannot create directory
`./unxlngi6.pro/misc/build/mozilla/plugin/oji/MRJ/plugin/Source': File
exists
cd ./unxlngi6.pro/misc/build/mozilla/plugin/oji/MRJ/plugin/Source &&
dmake product="full" && touch so_built_npsdk
------------------------------
Making: ../../../../../../../../../unxlngi6.pro/misc/npsdk.dpc
dmake subdmake=true -f makefile.mk product="full" depend=t ALLDPC
Making : Dependencies
touch ../../../../../../../../../unxlngi6.pro/misc/npsdk.dpc
------------------------------
Making: ../../../../../../../../../unxlngi6.pro/slo/npunix.obj
gcc -Wreturn-type -fmessage-length=0 -c -I.
-I/usr/include/firefox-1.5/nspr -I/usr/include/firefox-1.5/java
-I/usr/include/firefox-1.5/plugin -I../inc
-I../../../../../../../../../inc -I../../../../../../../../../unx/inc
-I../../../../../../../../../unxlngi6.pro/inc -I.
-I/home/alord/OOA680_m1/solver/680/unxlngi6.pro/inc/dont_use_stl
-I/home/alord/OOA680_m1/solver/680/unxlngi6.pro/inc/external
-I/home/alord/OOA680_m1/solver/680/unxlngi6.pro/inc
-I/home/alord/OOA680_m1/solenv/unxlngi6/inc
-I/home/alord/OOA680_m1/solenv/inc -I/home/alord/OOA680_m1/res
-I/home/alord/OOA680_m1/solver/680/unxlngi6.pro/inc/dont_use_stl
-I/home/alord/OOA680_m1/solenv/inc/Xp31 -I/opt/jdk/jdk/include
-I/opt/jdk/jdk/include/linux
-I/opt/jdk/jdk/include/native_threads/include -I/usr/X11R7/include
-I. -I../../../../../../../../../res -I. -Os -fno-strict-aliasing
-Wuninitialized -pipe -fpic -DLINUX -DUNX -DVCL -DGCC -DC341 -DINTEL
-DGXX_INCLUDE_PATH=/usr/lib/gcc/i686-pc-linux-gnu/4.0.2/../../../../include/c++/4.0.2
-DCVER=C341 -D_USE_NAMESPACE -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_OFF -DCUI -DSOLAR_JAVA -DOOA680 -DSHAREDLIB
-D_DLL_ -DMULTITHREAD -o
../../../../../../../../../unxlngi6.pro/slo/npunix.o npunix.c
In file included from npunix.c:19:
/usr/include/firefox-1.5/plugin/npapi.h:51:21: error: prtypes.h: No such
file or directory
In file included from /usr/include/firefox-1.5/java/jritypes.h:45,
from /usr/include/firefox-1.5/java/jri.h:45,
from /usr/include/firefox-1.5/plugin/npapi.h:79,
from npunix.c:19:
/usr/include/firefox-1.5/java/jri_md.h:46:59: error: prtypes.h: No such
file or directory
In file included from npunix.c:19:
/usr/include/firefox-1.5/plugin/npapi.h:224: error: syntax error before
'NPError'
/usr/include/firefox-1.5/plugin/npapi.h:224: warning: data definition
has no type or storage class
/usr/include/firefox-1.5/plugin/npapi.h:225: error: syntax error before
'NPReason'
===============================================================
Seeing as I specifically disabled mozilla in the configure command I am
surprised it is even going here but there you go... I have set
CPPFLAGS="-I/usr/include/nspr" as well but that doesn't seem to make any
difference. *It's funny but inside this mozilla package, the
-I/usr/include/nspr dissapears although it shows up during most of the
previous package builds - could this be a clue???*
Any one got any bright ideas??????????????
Cheers
Alan
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page