cvs commit: hints javafromscratch.txt mozilla.txt openoffice.txt

timothy at linuxfromscratch.org timothy at linuxfromscratch.org
Sat Dec 28 12:02:38 PST 2002


timothy     02/12/28 15:02:38

  Modified:    .        javafromscratch.txt mozilla.txt openoffice.txt
  Log:
  Updates by author.
  
  Revision  Changes    Path
  1.8       +42 -18    hints/javafromscratch.txt
  
  Index: javafromscratch.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/javafromscratch.txt,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- javafromscratch.txt	17 Nov 2002 23:16:31 -0000	1.7
  +++ javafromscratch.txt	28 Dec 2002 20:02:38 -0000	1.8
  @@ -1,8 +1,8 @@
   TITLE:		Compiling Java 2 SDK from Scratch
   
  -LFS VERSION:	Any.
  +LFS VERSION:	LFS-4.0
   
  -AUTHOR:		Tushar Teredesai <Tush at Yahoo.Com>
  +AUTHOR:		Tushar Teredesai <Tushar at LinuxFromScratch.Org>
   
   SYNOPSIS:
   	How to compile Java 2 SDK Source (available from Sun) using gcc3 so that
  @@ -10,9 +10,10 @@
   
   HINT:
   
  -The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  -Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  -available at that site. Please refer to the primary location before submitting
  +Primary Location of this hint:
  +	http://www.linuxfromscratch.org/~tushar/
  +The latest version of the hint and any relevant patches are available at that
  +site. Please refer to the primary location before submitting
   bug-reports/enhancements to this hint.
   
   You may freely copy this document or create derivate works or distribute the
  @@ -27,6 +28,8 @@
   at LinuxFromScratch.Org.
   
   Change Log:
  +[2002-12-25]
  +	* Changed primary location and e-mail address.
   [2002-11-13]
   	* Removed -O3 from the Makefiles since it causes miscompilation.
   [2002-10-27]
  @@ -62,7 +65,7 @@
   
   Future Plans:
   * Use system installed Mozilla headers and build only Mozilla-1.0 plugin and
  -  Netscape Plugin.
  +  Netscape Plugin. [Check the unfinished patch.]
   * Remove the dependency on the sun's binary jdk and to use some source based
     compiler such as jikes/japhar/kaffe for bootstrapping.
   
  @@ -112,7 +115,7 @@
   Though this library may already be installed, you will need the source code to
   update the source code that comes with j2sdk.
   	* Java 2 SDK Source <http://wwws.sun.com/software/java2/download.html>
  ->From Sun's website, download the following files (you will need to sign up and
  +From Sun's website, download the following files (you will need to sign up and
   agree to SCSL):
   	- j2sdk-1_4_0-src-scsl.zip
   	- j2sdk-1_4_0-mozilla_headers-unix.zip
  @@ -123,10 +126,6 @@
   certificate authority). j2sdk-1_4_0-motif-linux-i386.zip is not required since
   we link against system installed lesstif (motif clone) libraries.
   
  -The Java Source doesn't work well with locally installed mozilla and motif
  -headers and requires the download of the header files from the above site where
  -you download the source.
  -
   Also download the patches from the primary site of this hint. Each patch should
   have a short blurb on what it does.
   You agree that by downloading the patch, you accept the SUN COMMUNITY SOURCE
  @@ -148,18 +147,23 @@
   	chmod +x install.sfx.$$
   	# Extract the files and move them to where we want the jdk installed.
   	./install.sfx.$$
  +	cd j2sdk${VERSION}
   	install -d /opt/java/j2sdk-precompiled-1.4
   	mv * /opt/java/j2sdk-precompiled-1.4
   
   This location is referred to as JAVA_HOME. So set the variable now.
   	export JAVA_HOME=/opt/java/j2sdk-precompiled-1.4
  -Also since the JDK binary from Sun is linked against gcc2, download the lib from
  -it from <http://www.linuxfromscratch.org/~timothy/misc/> and move it where the
  -jdk can find it.
  +Sun's binary JDK is linked against gcc2 libraries, hence you will need the gcc2
  +libraries for compatibility reasons. There are two options to get this library.
  +One is to compile gcc2 (with c++) in a temporary prefix (such as /var/tmp) and
  +then move the resulting shared libraries in /var/tmp/lib to /usr/lib. Another
  +option is to download the precompiled library from
  +<http://www.linuxfromscratch.org/~timothy/misc and move it to where the JDK can
  +find it.
   	mv libstdc++-* $JAVA_HOME/jre/lib/i386/
   Try running $JAVA_HOME/bin/java and if it reports any missing libraries, make
  -appropriate links in $JAVA_HOME/jre/lib/i386.
  -	cd $JAVA_HOME/jre/lib/i386
  +appropriate links. For example, if you are using gcc-2.95.3 libs, then make the
  +following symlink.
   	ln -sf libstdc++-libc6.3-2.so.3 libstdc++-libc6.1-1.so.2
   
   
  @@ -185,6 +189,11 @@
   link to the static versoon of the library. Don't apply the lesstif patch if you
   want to use the static version.
   
  +Also, if the JDK gets linked against system installed OpenMotif, the resulting
  +plugin crashes Mozilla whenever an applet is encountered. Check the Workarounds
  +section at the end for a possible hack (untested since I don't install
  +OpenMotif).
  +
   On my system, I install LessTif to /usr. Point to where you have installed
   LessTif.
   	export ALT_MOTIF_DIR=/usr
  @@ -321,7 +330,7 @@
   
   * Harald Meier reported that if there are problems, try removing the "-z defs"
     from LDFLAGS_COMMON from line 263 in the file
  -  $SRC/j2sdk_ori/j2se/make/common/Defs-linux.gmk.
  +  $SRC/j2se/make/common/Defs-linux.gmk.
   * Parkanyi Balazs and Kelledin reported that trying to manually run java_vm
     results in unresolved libraries. Adding the relevant directories to
     /etc/ld.so.conf does not fix the problem (unless of course you have a 386
  @@ -335,7 +344,22 @@
     space, the build gives some very strange errors rather than the usual "Out of
     disk space" error.
   * Gentoo users have had problems with the compiled j2sdk with openmotif
  -  installed. So please remove openmotif from your system before compiling.
  +  installed. So please remove openmotif from your system before compiling. An
  +  untested alternative is to install the static version of lesstif with a
  +  different prefix (e.g. /opt/lesstif) and use that prefix as the ALT_MOTIF_DIR.
  +  Also to prevent jdk linking against the OpenMotif libs, rename the motif libs
  +  for the duration of jdk comoile.
  +	for lib in /usr/{,X11R6}/lib/libXm.{a,so}
  +	do
  +		mv $lib $lib.tmp
  +	done
  +  Remember to rename the files after compiling j2sdk else other packages won't
  +  be able to link against OpenMotif.
  +	for lib in /usr/{,X11R6}/lib/libXm.{a,so}
  +	do
  +		mv $lib.tmp $lib
  +	done
  +  It is advisable to not use the dynamic lesstif patch for this situation.
   
   CLASSPATH script:
   
  
  
  
  1.14      +22 -9     hints/mozilla.txt
  
  Index: mozilla.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/mozilla.txt,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- mozilla.txt	6 Dec 2002 13:35:35 -0000	1.13
  +++ mozilla.txt	28 Dec 2002 20:02:38 -0000	1.14
  @@ -1,17 +1,18 @@
   TITLE:		Compiling Mozilla and Installing Plugins
   
  -LFS VERSION:	All
  +LFS VERSION:	LFS-4.0
   
  -AUTHOR:		Tushar Teredesai <Tush at Yahoo.Com>
  +AUTHOR:         Tushar Teredesai <Tushar at LinuxFromScratch.Org>
   
   SYNOPSIS:
   	How to compile 'Mozilla from Scratch' and install some relevant plugins.
   
   HINT:
   
  -The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  -Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  -available at that site. Please refer to the primary location before submitting
  +Primary Location of this hint:
  +        http://www.linuxfromscratch.org/~tushar/
  +The latest version of the hint and any relevant patches are available at that
  +site. Please refer to the primary location before submitting
   bug-reports/enhancements to this hint.
   
   You may freely copy this document or create derivate works or distribute the
  @@ -26,6 +27,8 @@
   at LinuxFromScratch.Org.
   
   Change Log:
  +[2002-12-25]
  +        * Changed primary location and e-mail address.
   [2002-11-29]
   	* Added fontconfig and Xft2 support for gtk2 builds (unstable).
   	* Upgrade to mozilla-1.2.
  @@ -332,12 +335,10 @@
   
   Disable all debugging options and enable all optimization options. Pick and
   choose.
  -	echo ac_add_options --disable-jsd >> .mozconfig
   	echo ac_add_options --disable-accessibility >> .mozconfig
   	echo ac_add_options --disable-tests >> .mozconfig
   	echo ac_add_options --disable-debug >> .mozconfig
   	echo ac_add_options --enable-optimize=-O3 >> .mozconfig
  -	echo ac_add_options --disable-dtd-debug >> .mozconfig
   	echo ac_add_options --disable-logging >> .mozconfig
   	echo ac_add_options --enable-reorder >> .mozconfig
   	echo ac_add_options --enable-strip >> .mozconfig
  @@ -346,6 +347,10 @@
   Among the above options, --disable-accessibility and --disable-logging cause
   problems in a GTK2 build.
   
  +Some features are only required for developer of webapplications (Optional):
  +	echo ac_add_options --disable-jsd >> .mozconfig
  +	echo ac_add_options --disable-dtd-debug >> .mozconfig
  +
   The following option is for enabling the xterm title with the current command
   when compiling.
   	echo ac_add_options --enable-xterm-updates >> .mozconfig
  @@ -564,12 +569,20 @@
   options since they have alreay been discussed before. Most of the options
   discussed above apply (such as the wallet hack and creating the registry for
   multi user installs) apply when building phoenix.
  -	cd $MOZ_SRC
  +
  +One problem with Phoenix is that the source tar balls for each version are not
  +available, so the only way to install is to use cvs. There is a bug report to
  +make source tarballs available for Phoenix (Bug # 175934).
  +
  +In the following PHOENIX_SRC refers to the directory where you want to compile
  +Phoenix source code.
  +	cd $PHOENIX_SRC
   	cd ..
   	export CVSROOT=":pserver:anonymous at cvs-mirror.mozilla.org:/cvsroot"
  +	cvs co mozilla
   	cvs co mozilla/toolkit
   	cvs co mozilla/browser
  -	cd  $MOZ_SRC
  +	cd  $PHOENIX_SRC
   	export MOZILLA_OFFICIAL=1
   	export BUILD_OFFICIAL=1
   	export MOZ_INTERNAL_LIBART_LGPL=1
  
  
  
  1.7       +23 -8     hints/openoffice.txt
  
  Index: openoffice.txt
  ===================================================================
  RCS file: /home/cvsroot/hints/openoffice.txt,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- openoffice.txt	22 Sep 2002 17:05:44 -0000	1.6
  +++ openoffice.txt	28 Dec 2002 20:02:38 -0000	1.7
  @@ -1,17 +1,18 @@
   TITLE:		Compiling OpenOffice.Org from Scratch
   
  -LFS VERSION:	CVS (with gcc-3.1)
  +LFS VERSION:	LFS-4.0
   
  -AUTHOR:		Tushar Teredesai <Tush at Yahoo.Com>
  +AUTHOR:         Tushar Teredesai <Tushar at LinuxFromScratch.Org>
   
   SYNOPSIS:
   	How to compile 'OpenOffice.org from Scratch'.
   
   HINT:
   
  -The primary location for this site is <http://tushar.lfsforum.org>, thanks to
  -Deutsche LFS Foren. The latest version of the hint and any relevant patches are
  -available at that site. Please refer to the primary location before submitting
  +Primary Location of this hint:
  +        http://www.linuxfromscratch.org/~tushar/
  +The latest version of the hint and any relevant patches are available at that
  +site. Please refer to the primary location before submitting
   bug-reports/enhancements to this hint.
   
   You may freely copy this document or create derivate works or distribute the
  @@ -26,6 +27,8 @@
   at LinuxFromScratch.Org.
   
   Change Log:
  +[2002-12-25]
  +        * Changed primary location and e-mail address.
   [2002-09-11]
   	* Upgraded to OpenOffice 1.0.1.
   [2002-06-20]
  @@ -65,7 +68,11 @@
   * You don't need to install PAM You just need the PAM headers in
     /usr/include/security. You can either download PAM and do a "./configure
     --prefix=/tmp --includedir=/usr/include && make install" or download the
  -  headers from <http://linuxfromscratch.org/~timothy/misc/tush/>.
  +  headers from the hint's primary site. Alternately if you don't want to install
  +  the headers system wide, you can follow the instructions given below to
  +  install them in the OpenOffice source tree. Please not that I have submitted
  +  the patch to the OpenOffice bugzilla, but dunno if or when it will be
  +  incorporated.
   * If you have set the LS_COLORS variable, do a export LS_COLORS="" to prevent
     tcsh from reading bash syntax for LS_COLORS.
   
  @@ -168,10 +175,16 @@
   	for i in mozjs msgbaseutil ldap50 nspr4 plc4 plds4 xpcom prldap50
   	do
   		cp -a ${MOZ_PREFIX}/lib/mozilla/lib${i}.so .
  +	done
   	zip -r ${OOSRC}/moz/zipped/LINUXGCCIruntime.zip *
   	cd ..
   	rm -rf mozilla/
   
  +If you don't want to install Linux PAM system wide (even the headers as
  +mentioned above), download the Linux-PAM header tar ball from the hint's primary
  +location and move the headers to $OOSRC/external/pam. Also apply the patch to
  +use internal PAM.
  +
   Configure OOo with the options. This will generate LinuxIntelEnv.Set in $OOSRC
   directory. We need to run autoconf since in the above patches we patch
   configure.in but not configure.
  @@ -191,12 +204,14 @@
   with --includedir=/usr/include/gcc)
   
   Now some workarounds to 'fix' the build process. If you do a "make clean"
  -remember to repeat the following steps again.
  +remember to repeat the following steps again. Note that libgcc_s.so* files in
  +your installation could be in /lib.
   	cd $OOSRC
   	mkdir -p solver/641/unxlngi4.pro/inc/
   	touch solver/641/unxlngi4.pro/inc/minormkchanged.flg
   	mkdir -p solver/641/unxlngi4.pro/lib/
  -	cp -f /usr/lib/libstdc++.so.5* /usr/lib/libgcc_s.so* solver/641/unxlngi4.pro/lib/
  +	cp -f /usr/lib/libstdc++.so.5* /usr/lib/libgcc_s.so* \
  +		solver/641/unxlngi4.pro/lib/
   	chmod +x solenv/bin/zipdep.pl
   
   Now run the bootstrapping program which will build the pre-requisites such as
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe hints' in the subject header of the message



More information about the hints mailing list