Fritti wrote:

> Hi,
> 
> I'm trying to build PSM from mozilla-0.7 source on FreeBSD, and I keep
> running into errors. I'm trying to build in a seperate dir. The steps
> I've taken come down to this:

There were some missing files in the original 0.7 source tarball that 
was up on ftp.mozilla.org.  leaf should have fixed that and the newer 
source tarballs should work.

--Chris

> 
> 1. untar mozilla-source-0.7.tar.gz
> 2. cat <<EOF > mozilla/.mozconfig;
> export GTK_CONFIG=/usr/X11R6/bin/gtk12-config
> export GLIB_CONFIG=/usr/local/bin/glib12-config
> ac_add_options --disable-mailnews
> ac_add_options --disable-tests
> ac_add_options --enable-optimize
> ac_add_options --disable-debug
> ac_add_options --disable-idltool
> ac_add_options --disable-md
> ac_add_options --disable-pedantic
> ac_add_options --enable-strip-libs
> ac_add_options --disable-editor
> ac_add_options --disable-cpp-rtti
> ac_add_options --enable-x11-shm
> ac_add_options --with-pthreads
> ac_add_options --with-jpeg=/usr/local
> ac_add_options --with-png=/usr/local
> ac_add_options --enable-mathml
> ac_add_options --disable-pics
> ac_add_options --enable-toolkit=gtk
> ac_add_options --enable-nspr-autoconf
> EOF
> 
> 3. cd mozilla/security/coreconf && ln -s FreeBSD.mk FreeBSD4.2.mk
> 4. mkdir obj
> 5. cd obj && ../mozilla/configure i386--freebsd4.2
> 6. gmake BUILD_MODULES=psm
> [this errors out in nsprpub/config where now.c reports
>  'Unsupported architecture']
> 7. add -DXP_UNIX=1 to DEFINES in ${objdir}/nsprpub/config/autoconf.mk
> 8. gmake BUILD_MODULES=psm
> 
> But this then errors out at:
> 
> cd base; gmake export
> gmake[4]: Entering directory `/usr/home/stijn/src/mozilla/obj/security/nss/lib/base'
> Makefile:35: manifest.mn: No such file or directory
> Makefile:36: /coreconf/config.mk: No such file or directory
> Makefile:37: config.mk: No such file or directory
> Makefile:38: /coreconf/rules.mk: No such file or directory
> gmake[4]: *** No rule to make target `/coreconf/rules.mk'.  Stop.
> gmake[4]: Leaving directory `/usr/home/stijn/src/mozilla/obj/security/nss/lib/base'
> gmake[3]: *** [export] Error 2
> gmake[3]: Leaving directory `/usr/home/stijn/src/mozilla/obj/security/nss/lib'
> 
> I thought that this indicated that I shouldn't build in a separate dir.
> However, when I try to build in the source dir, nsprpub complains! What
> should I do to get PSM working?
> 
> --Fritti



Reply via email to