Building Mozilla for the first time on Win2K

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Building Mozilla for the first time on Win2K

Michael Bergman-2
Hi,
I am having a problem getting Mozilla built for the first time.

I have installed Cygwin at D:\Cygwin\.
I downloaded a snapshot of Mozilla and set it up at E:\Projects\ext\.
I have Visual Studio .NET 2003 installed at D:\Program Files\.
I have Moztools set up at E:\Projects\ext\.

This is my batch file for starting up Cygwin:

rem -----------------------------------
rem -- begin cygwin.bat
@echo off

SET MOZ_TOOLS=E:\Projects\ext\moztools

SET GLIB_PREFIX=E:\Projects\ext\moztools\vc71
SET LIBIDL_PREFIX=E:\Projects\ext\moztools\vc71
SET CYGWINBASE=D:\cygwin

rem --- Clean slate start
SET INCLUDE=
SET LIB=
SET PATH=C:\;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\wbem

D:
chdir D:\cygwin
call vcvars32.bat
call setenv.bat /RETAIL
chdir D:\cygwin\bin

SET PATH=%PATH%;%MOZ_TOOLS%\bin;%CYGWINBASE%\bin
SET PATH=%PATH%;%GLIB_PREFIX%;%GLIB_PREFIX%\bin
SET INCLUDE=%GLIB_PREFIX%\include;%INCLUDE%
SET LIB=%GLIB_PREFIX%\lib;%LIB%
SET HOME=E:\Projects\ext\mozilla

SET CVSROOT=:pserver:[hidden email]:/cvsroot

SET WINPATH=/cygdrive/d/Program Files/Microsoft
SDK/Bin:/cygdrive/d/Program Files/Microsoft
SDK/Bin/WinNT:/cygdrive/d/Program Files/Microsoft Visual Studio .NET
2003/Common7/IDE:/cygdrive/d/Program Files/Microsoft Visual Studio .NET
2003/VC7/BIN:/cygdrive/d/Program Files/Microsoft Visual Studio .NET
2003/Common7/Tools:/cygdrive/d/Program Files/Microsoft Visual Studio
.NET 2003/Common7/Tools/bin/prerelease:/cygdrive/d/Program
Files/Microsoft Visual Studio .NET
2003/Common7/Tools/bin:/cygdrive/d/Program Files/Microsoft Visual Studio
.NET
2003/SDK/v1.1/bin:/cygdrive/c/WINNT/Microsoft.NET/Framework/v1.1.4322:/c
ygdrive/c:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT
/system32/wbem:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:.:/cygdrive/e
/Projects/ext/moztools/bin:/usr/bin:/cygdrive/e/Projects/ext/moztools/vc
71:/cygdrive/e/Projects/ext/moztools/vc71/bin:/usr/lib/lapack


bash --login -i
rem -- end cygwin.bat
rem -----------------------------------

and here is my .mozconfig file:

# -----------------------------------
# begin .mozconfig
# sh
# Build configuration script
#
# See http://www.mozilla.org/build/unix.html for build instructions.
#

# Options for client.mk.
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

# Options for 'configure' (same as command-line options).
ac_add_options --enable-application=browser
ac_add_options --enable-ui-locale=en-US
ac_add_options --enable-calendar
ac_add_options --disable-mailnews
ac_add_options --enable-static-mail
ac_add_options --with-branding=default
ac_add_options --enable-ctl
ac_add_options --enable-native-uconv
ac_add_options --enable-leaky
ac_add_options --enable-xpctools
ac_add_options --enable-xpcom-lea
ac_add_options --enable-places
ac_add_options --enable-storage
# end  .mozconfig
# -----------------------------------
 


When I login to Cygwin, I reset my PATH environment to use the WINPATH
value in the cygwin.bat file shown above. The result PATH is this:

PATH=/cygdrive/d/Program Files/Microsoft SDK/Bin:/cygdrive/d/Program
Files/Microsoft SDK/Bin/WinNT:/cygdrive/d/Program Files/Microsoft Visual
Studio .NET 2003/Common7/IDE:/cygdrive/d/Program Files/Microsoft Visual
Studio .NET 2003/VC7/BIN:/cygdrive/d/Program Files/Microsoft Visual
Studio .NET 2003/Common7/Tools:/cygdrive/d/Program Files/Microsoft
Visual Studio .NET 2003/Common7/Tools/bin/prerelease:/cygdrive/d/Program
Files/Microsoft Visual Studio .NET
2003/Common7/Tools/bin:/cygdrive/d/Program Files/Microsoft Visual Studio
.NET
2003/SDK/v1.1/bin:/cygdrive/c/WINNT/Microsoft.NET/Framework/v1.1.4322:/c
ygdrive/c:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cygdrive/c/WINNT
/system32/wbem:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:.:/cygdrive/e
/Projects/ext/moztools/bin:/usr/bin:/cygdrive/e/Projects/ext/moztools/vc
71:/cygdrive/e/Projects/ext/moztools/vc71/bin:/usr/lib/lapack



And finally, here is the build log result from running the line:

make -f client.mk build

Adding client.mk options from
/cygdrive/e/Projects/ext/mozilla/.mozconfig:
    MOZ_CO_PROJECT=browser
    MOZ_OBJDIR=$(TOPSRCDIR)/obj-$(CONFIG_GUESS)
cd /cygdrive/e/Projects/ext/mozilla/obj-i686-pc-cygwin
/cygdrive/e/Projects/ext/mozilla/configure
Adding configure options from
/cygdrive/e/Projects/ext/mozilla/.mozconfig:
  --enable-application=browser
  --enable-ui-locale=en-US
  --enable-calendar
  --disable-mailnews
  --enable-static-mail
  --with-branding=default
  --enable-ctl
  --enable-native-uconv
  --enable-leaky
  --enable-xpctools
  --enable-xpcom-lea
  --enable-places
  --enable-storage
configure: warning: Productions: invalid host type
loading cache ./config.cache
checking host system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking target system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking build system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for ranlib... (cached) ranlib
checking for as... (cached) /usr/bin/as
checking for ar... (cached) ar
checking for ld... (cached) ld
checking for strip... (cached) strip
checking for windres... (cached) windres
checking for gawk... (cached) gawk
checking whether gcc and cc understand -c and -o together... (cached)
yes
checking how to run the C preprocessor... (cached) gcc -E
checking how to run the C++ preprocessor... (cached) c++ -E
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether ln -s works... (cached) yes
checking for perl5... (cached) /usr/bin/perl
checking for minimum required perl version >= 5.004... 5.008007
checking for full perl installation... yes
checking for doxygen... (cached) /usr/bin/doxygen
checking for whoami... (cached) /usr/bin/whoami
checking for autoconf... (cached) /usr/bin/autoconf
checking for unzip... (cached) /usr/bin/unzip
checking for zip... (cached) /usr/bin/zip
checking for makedepend... (cached) /usr/X11R6/bin/makedepend
checking for xargs... (cached) /usr/bin/xargs
checking for gmake... (cached)
/cygdrive/e/Projects/ext/moztools/bin/gmake
checking for X... (cached) no
checking whether ld has archive extraction flags... (cached) yes
checking for 64-bit OS... no
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for mode_t... (cached) yes
checking for off_t... (cached) yes
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking for st_blksize in struct stat... (cached) yes
checking for siginfo_t... (cached) yes
checking for int16_t... (cached) yes
checking for int32_t... (cached) yes
checking for int64_t... (cached) yes
checking for int64... (cached) no
checking for uint... (cached) yes
checking for uint_t... (cached) no
checking for uint16_t... (cached) yes
checking for uname.domainname... (cached) no
checking for uname.__domainname... (cached) no
checking for usable wchar_t (2 bytes, unsigned)... (cached) yes
checking for .hidden assembler directive... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for sys/byteorder.h... (cached) no
checking for compat.h... (cached) no
checking for getopt.h... (cached) yes
checking for sys/bitypes.h... (cached) no
checking for memory.h... (cached) yes
checking for unistd.h... (cached) yes
checking for gnu/libc-version.h... (cached) no
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for X11/XKBlib.h... (cached) yes
checking for sys/statvfs.h... (cached) yes
checking for sys/statfs.h... (cached) yes
checking for sys/vfs.h... (cached) yes
checking for sys/mount.h... (cached) yes
checking for mmintrin.h... (cached) no
checking for new... (cached) yes
checking for sys/cdefs.h... (cached) yes
checking for gethostbyname_r in -lc_r... (cached) no
checking for atan in -lm... (cached) yes
checking for dlopen in -ldl... (cached) no
checking for socket in -lsocket... (cached) no
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... no
checking whether gcc accepts -pthreads... no
checking whether mmap() sees write()s... yes
checking whether gcc needs -traditional... (cached) no
checking for 8-bit clean memcmp... (cached) yes
checking for random... (cached) yes
checking for strerror... (cached) yes
checking for lchown... (cached) yes
checking for fchmod... (cached) yes
checking for snprintf... (cached) yes
checking for statvfs... (cached) yes
checking for memmove... (cached) yes
checking for rint... (cached) yes
checking for flockfile... (cached) yes
checking for getpagesize... (cached) yes
checking for localtime_r... (cached) yes
checking for strtok_r... (cached) yes
checking for wcrtomb... (cached) yes
checking for mbrtowc... (cached) yes
checking for res_ninit()... (cached) no
checking for gnu_get_libc_version()... (cached) no
checking for iconv in -lc... (cached) no
checking for iconv in -liconv... (cached) no
checking for libiconv in -liconv... (cached) yes
checking for iconv()... (cached) yes
checking for iconv() with const input... (cached) yes
checking for nl_langinfo and CODESET... (cached) yes
checking for an implementation of va_copy()... (cached) yes
checking for an implementation of __va_copy()... (cached) yes
checking whether va_lists can be copied by value... (cached) yes
checking for C++ exceptions flag... (cached) -fno-exceptions
checking for gcc 3.0 ABI... (cached) yes
checking for C++ "explicit" keyword... (cached) yes
checking for C++ "typename" keyword... (cached) yes
checking for modern C++ template specialization syntax support...
(cached) yes
checking whether partial template specialization works... (cached) yes
checking whether operators must be re-defined for templates derived from
templates... (cached) no
checking whether we need to cast a derived template to pass as its base
class... (cached) no
checking whether the compiler can resolve const ambiguities for
templates... (cached) yes
checking whether the C++ "using" keyword can change access... (cached)
yes
checking whether the C++ "using" keyword resolves ambiguity... (cached)
yes
checking for "std::" namespace... (cached) yes
checking whether standard template operator!=() is ambiguous... (cached)
unambiguous
checking for C++ reinterpret_cast... (cached) yes
checking for C++ dynamic_cast to void*... (cached) yes
checking whether C++ requires implementation of unused virtual
methods... (cached) yes
checking for trouble comparing to zero near std::operator!=()...
(cached) no
checking for LC_MESSAGES... (cached) yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking for XpGetPrinterList in -lXp... (cached) no
configure: warning: Cannot build gnomevfs without required libraries.
Removing gnomevfs from MOZ_EXTENSIONS.
checking for gssapi.h... (cached) no
checking for gssapi/gssapi.h... (cached) no
checking for gss_init_sec_context in -lgss... (cached) no
checking for gss_init_sec_context... (cached) no
configure: warning: Cannot build negotiateauth without GSSAPI. Removing
negotatiate from MOZ_EXTENSIONS.
checking for __cxa_demangle... (cached) yes
checking for gcc -pipe support... yes
checking whether compiler supports -Wno-long-long... yes
checking whether C compiler supports -fprofile-generate... yes
checking whether C++ compiler has -pedantic long long bug... no
checking for correct temporary object destruction order... yes
checking for correct overload resolution with const and templates... no
checking for glib-config... /usr/bin/glib-config
checking for GLIB - version >= 1.2.0... yes
checking for libIDL-config... /usr/bin/libIDL-config
checking for libIDL - version >= 0.6.3... yes
creating mozilla-config.h
==== mozilla-config.h =================================
/* List of defines generated by configure. Included with preprocessor
flag,
 * -include, to avoid long list of -D defines on the compile command-
line.
 * Do not edit.
 */

#ifndef _MOZILLA_CONFIG_H_
#define _MOZILLA_CONFIG_H_

#define ACCESSIBILITY 1
#define D_INO d_ino
#define DETECT_WEBSHELL_LEAKS 1
#define HAVE___CXA_DEMANGLE 1
#define HAVE_DIRENT_H 1
#define HAVE_FCHMOD 1
#define HAVE_FLOCKFILE 1
#define HAVE_GETOPT_H 1
#define HAVE_I18N_LC_MESSAGES 1
#define HAVE_INT16_T 1
#define HAVE_INT32_T 1
#define HAVE_INT64_T 1
#define HAVE_LANGINFO_CODESET 1
#define HAVE_LCHOWN 1
#define HAVE_LIBM 1
#define HAVE_LOCALTIME_R 1
#define HAVE_MALLOC_H 1
#define HAVE_MEMMOVE 1
#define HAVE_MEMORY_H 1
#define HAVE_NL_TYPES_H 1
#define HAVE_RANDOM 1
#define HAVE_RINT 1
#define HAVE_SIGINFO_T 1
#define HAVE_SNPRINTF 1
#define HAVE_ST_BLKSIZE 1
#define HAVE_STRERROR 1
#define HAVE_STRTOK_R 1
#define HAVE_SYS_CDEFS_H 1
#define HAVE_SYS_STATFS_H 1
#define HAVE_SYS_STATVFS_H 1
#define HAVE_UINT 1
#define HAVE_UINT16_T 1
#define HAVE_UNISTD_H 1
#define HAVE_VA_COPY 1
#define HAVE_X11_XKBLIB_H 1
#define IBMBIDI 1
#define JS_THREADSAFE 1
#define MOZ_APP_NAME "mozilla"
#define MOZ_DEFAULT_TOOLKIT "gtk"
#define MOZ_DEMANGLE_SYMBOLS 1
#define MOZ_DISTRIBUTION_ID "org.mozilla"
#define MOZ_DISTRIBUTION_ID_UNQUOTED org.mozilla
#define MOZ_DLL_SUFFIX ".so"
#define MOZ_ENABLE_COREXFONTS 1
#define MOZ_ENABLE_XREMOTE 1
#define MOZ_EXTRA_X11CONVERTERS 1
#define MOZ_JSLOADER 1
#define MOZ_LOGGING 1
#define MOZ_MATHML 1
#define MOZ_PROFILELOCKING 1
#define MOZ_PROFILESHARING 1
#define MOZ_REFLOW_PERF 1
#define MOZ_REFLOW_PERF_DSP 1
#define MOZ_STATIC_MAIL_BUILD 1
#define MOZ_USE_NATIVE_UCONV 1
#define MOZ_USER_DIR ".mozilla"
#define MOZ_VIEW_SOURCE 1
#define MOZ_WIDGET_GTK 1
#define MOZ_X11 1
#define MOZ_XPINSTALL 1
#define MOZ_XUL 1
#define MOZILLA_LOCALE_VERSION "1.7"
#define MOZILLA_REGION_VERSION "1.7"
#define MOZILLA_SKIN_VERSION "1.5"
#define MOZILLA_VERSION "1.7.10"
#define NO_X11 1
#define NS_PRINT_PREVIEW 1
#define NS_PRINTING 1
#define OJI 1
#define STDC_HEADERS 1
#define SUNCTL 1
#define VA_COPY va_copy
#define X_DISPLAY_MISSING 1
#define XPCOM_USE_LEA 1

#endif /* _MOZILLA_CONFIG_H_ */

creating ./config.status
creating config/autoconf.mk
creating config/doxygen.cfg
creating xpfe/global/buildconfig.html
creating gfx/gfx-config.h
gfx/gfx-config.h is unchanged
creating netwerk/necko-config.h
netwerk/necko-config.h is unchanged
creating xpcom/xpcom-config.h
xpcom/xpcom-config.h is unchanged
creating xpcom/xpcom-private.h
xpcom/xpcom-private.h is unchanged
configuring in nsprpub
running /bin/sh /cygdrive/e/Projects/ext/mozilla/nsprpub/configure  --
enable-application=browser --enable-ui-locale=en-US --enable-calendar --
disable-mailnews --enable-static-mail --with-branding=Databerg
Productions --enable-ctl --enable-native-uconv --enable-leaky --enable-
xpctools --enable-xpcom-lea --enable-places --enable-storage --with-
dist-prefix=/cygdrive/e/Projects/ext/mozilla/obj-i686-pc-cygwin/dist --
with-mozilla --cache-file=.././config.cache --
srcdir=/cygdrive/e/Projects/ext/mozilla/nsprpub
configure: warning: Productions: invalid host type
loading cache .././config.cache
checking host system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking target system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking build system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking for whoami... (cached) /usr/bin/whoami
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for as... (cached) /usr/bin/as
checking for ar... (cached) /usr/bin/ar
checking for ld... (cached) /usr/bin/ld
checking for strip... (cached) /usr/bin/strip
checking for windres... (cached) /usr/bin/windres
checking for gcc -pipe support... yes
checking for perl5... (cached) /usr/bin/perl
checking for dlopen in -ldl... (cached) no
checking whether gcc needs -traditional... (cached) no
checking for lchown... (cached) yes
checking for strerror... (cached) yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... no
checking whether gcc accepts -pthreads... no
creating ./config.status
creating Makefile
creating config/Makefile
creating config/autoconf.mk
creating config/nsprincl.mk
creating config/nsprincl.sh
creating config/nspr-config
creating lib/Makefile
creating lib/ds/Makefile
creating lib/libc/Makefile
creating lib/libc/include/Makefile
creating lib/libc/src/Makefile
creating lib/tests/Makefile
creating pkg/Makefile
creating pkg/linux/Makefile
creating pkg/solaris/Makefile
creating pkg/solaris/SUNWpr/Makefile
creating pkg/solaris/SUNWprx/Makefile
creating pr/Makefile
creating pr/include/Makefile
creating pr/include/md/Makefile
creating pr/include/obsolete/Makefile
creating pr/include/private/Makefile
creating pr/src/Makefile
creating pr/src/io/Makefile
creating pr/src/linking/Makefile
creating pr/src/malloc/Makefile
creating pr/src/md/Makefile
creating pr/src/md/unix/Makefile
creating pr/src/memory/Makefile
creating pr/src/misc/Makefile
creating pr/src/threads/Makefile
creating pr/tests/Makefile
creating pr/tests/dll/Makefile
creating pr/src/pthreads/Makefile
configure: warning: Recreating autoconf.mk with updated nspr-config
output
configuring in directory/c-sdk
running /bin/sh /cygdrive/e/Projects/ext/mozilla/directory/c-
sdk/configure  --enable-application=browser --enable-ui-locale=en-US --
enable-calendar --disable-mailnews --enable-static-mail --with-
branding=Databerg Productions --enable-ctl --enable-native-uconv --
enable-leaky --enable-xpctools --enable-xpcom-lea --enable-places --
enable-storage --prefix=/cygdrive/e/Projects/ext/mozilla/obj-i686-pc-
cygwin/dist --with-dist-prefix=/cygdrive/e/Projects/ext/mozilla/obj-
i686-pc-cygwin/dist --without-nss --with-mozilla --cache-
file=../.././config.cache --
srcdir=/cygdrive/e/Projects/ext/mozilla/directory/c-sdk
configure: warning: Productions: invalid host type
loading cache ../.././config.cache
checking host system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking target system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking build system type... Invalid configuration `Productions':
machine `Productions' not recognized

checking for nspr-config... no
checking for NSPR - version >= 4.0.0 (skipping)... no
checking for whoami... (cached) /usr/bin/whoami
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for ranlib... (cached) ranlib
checking for as... (cached) /usr/bin/as
checking for ar... (cached) /usr/bin/ar
checking for ld... (cached) /usr/bin/ld
checking for strip... (cached) /usr/bin/strip
checking for windres... (cached) /usr/bin/windres
checking for gcc -pipe support... yes
checking for perl5... (cached) /usr/bin/perl
checking for dlopen... (cached) yes
checking whether gcc needs -traditional... (cached) no
checking for lchown... (cached) yes
checking for strerror... (cached) yes
checking for pthread_create in -lpthreads... no
checking for pthread_create in -lpthread... yes
checking whether gcc accepts -pthread... no
checking whether gcc accepts -pthreads... no
creating ./config.status
creating Makefile
creating config/Makefile
creating config/autoconf.mk
creating ldap/Makefile
creating ldap/build/Makefile
creating ldap/clients/tools/Makefile
creating ldap/include/Makefile
creating ldap/libraries/Makefile
creating ldap/libraries/libldap/Makefile
creating ldap/libraries/libprldap/Makefile
creating ldap/libraries/libldif/Makefile
creating ldap/libraries/liblber/Makefile
creating ldap/libraries/libiutil/Makefile
creating ldap/libraries/libssldap/Makefile
make  -C /cygdrive/e/Projects/ext/mozilla/obj-i686-pc-cygwin
make[1]: Entering directory `/cygdrive/e/Projects/ext/mozilla/obj-i686-
pc-cygwin'
rm -f -rf ./dist/sdk
/cygdrive/e/Projects/ext/moztools/bin/gmake -C config export
Makefile:70: /cygdrive/e/Projects/ext/mozilla/config/config.mk: No such
file or directory
Makefile:75: /cygdrive/e/Projects/ext/mozilla/config/rules.mk: No such
file or directory
e:\Projects\ext\moztools\bin\gmake.exe[2]: Entering directory
`e:/Projects/ext/mozilla/obj-i686-pc-cygwin/config'
e:\Projects\ext\moztools\bin\gmake.exe[2]: Leaving directory
`e:/Projects/ext/mozilla/obj-i686-pc-cygwin/config'
e:\Projects\ext\moztools\bin\gmake.exe[2]: *** No rule to make target
`/cygdrive/e/Projects/ext/mozilla/config/rules.mk'.  Stop.
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i686-
pc-cygwin'
make: *** [build] Error 2

It looks like the build is trying to use gcc as the compiler.  I thought
by changing the PATH env it would see CL first, but apparently that is
not happening.

Question 1: where does CL.exe get invoked in the build process?
Question 2: is there anything here that is obviously wrong with my
setup?

TIA.
Michael Bergman
[hidden email]
Databerg Productions

_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Gopalarathnam Venkatesan
On 11/15/05, Michael Bergman <[hidden email]> wrote:

> Hi,
> I am having a problem getting Mozilla built for the first time.
>
> I have installed Cygwin at D:\Cygwin\.
> I downloaded a snapshot of Mozilla and set it up at E:\Projects\ext\.
> I have Visual Studio .NET 2003 installed at D:\Program Files\.
> I have Moztools set up at E:\Projects\ext\.
>
> This is my batch file for starting up Cygwin:
>
> rem -----------------------------------
> rem -- begin cygwin.bat
> @echo off
>
> SET MOZ_TOOLS=E:\Projects\ext\moztools
>
> SET GLIB_PREFIX=E:\Projects\ext\moztools\vc71
> SET LIBIDL_PREFIX=E:\Projects\ext\moztools\vc71
> SET CYGWINBASE=D:\cygwin
>
> rem --- Clean slate start
> SET INCLUDE=
> SET LIB=
> SET PATH=C:\;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\wbem
>
>

(big snip)

Can you also set CC=cl CXX=cl
For these autoconfiguration tools, you can override the compiler,
linker using the CC, CXX, CPP, etc environment variables.

BTW have a look at http://gemal.dk/ too for steps to compiling on Win32 systems.

_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

daa-2
In reply to this post by Michael Bergman-2
Gopalarathnam Venkatesan wrote:

> BTW have a look at http://gemal.dk/ too for steps to compiling on Win32 systems.
>

as mentioned here repeatedly -http://gemal.dk/  is NOT the normal build
instructions, but instructions on building using MinGW (gcc) to build.
This will build a version without accessablity and other things that
need MSVC++ to build.

dave
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Chris Seawood
In reply to this post by Michael Bergman-2
Michael Bergman wrote:

> make -f client.mk build
>
> Adding client.mk options from
> /cygdrive/e/Projects/ext/mozilla/.mozconfig:
>     MOZ_CO_PROJECT=browser
>     MOZ_OBJDIR=$(TOPSRCDIR)/obj-$(CONFIG_GUESS)
> cd /cygdrive/e/Projects/ext/mozilla/obj-i686-pc-cygwin
> /cygdrive/e/Projects/ext/mozilla/configure
> Adding configure options from
> /cygdrive/e/Projects/ext/mozilla/.mozconfig:
>   --enable-application=browser
>   --enable-ui-locale=en-US
>   --enable-calendar
>   --disable-mailnews
>   --enable-static-mail
>   --with-branding=default
>   --enable-ctl
>   --enable-native-uconv
>   --enable-leaky
>   --enable-xpctools
>   --enable-xpcom-lea
>   --enable-places
>   --enable-storage
> configure: warning: Productions: invalid host type
> loading cache ./config.cache
> checking host system type... Invalid configuration `Productions':
> machine `Productions' not recognized
>
> checking target system type... Invalid configuration `Productions':
> machine `Productions' not recognized
>
> checking build system type... Invalid configuration `Productions':
> machine `Productions' not recognized

Your configure line has extra arguments that is causing your system to
be incorrectly identified.  Check to make sure that you don't have any
extra lines in your mozconfig file that aren't commented out using #s.

- cls
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Michael Bergman-2
Thanks, that gets me closer. I also had to fix some PATH problems. Here
is the new PATH:

/cygdrive/e/Projects/ext/moztools/vc71:/cygdrive/e/Projects/ext/moztools
/vc71/bin:/cygdrive/d/Program
Files/Microsoft SDK/Bin:/cygdrive/d/Program Files/Microsoft
SDK/Bin/WinNT:/cygdrive/d/Program Files/Microsoft Visual Studio
.NET 2003/Common7/IDE:/cygdrive/d/Program Files/Microsoft Visual Studio
.NET 2003/VC7/BIN:/cygdrive/d/Program
Files/Microsoft Visual Studio .NET
2003/Common7/Tools:/cygdrive/d/Program Files/Microsoft Visual Studio
.NET
2003/Common7/Tools/bin/prerelease:/cygdrive/d/Program Files/Microsoft
Visual Studio .NET
2003/Common7/Tools/bin:/cygdrive/d/Program Files/Microsoft Visual Studio
.NET
2003/SDK/v1.1/bin:/cygdrive/c/WINNT/Microsoft.NET/Framework/v1.1.4322:/c
ygdrive/c:/cygdrive/c/WINNT/system32:/cygdrive/c/WI
NNT:/cygdrive/c/WINNT/system32/wbem:.:/cygdrive/e/Projects/ext/moztools/
bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/us
r/lib/lapack


The problem I am now having is this:

checking for correct overload resolution with const and templates... no
configure: error: Cannot build ctl without gmodule support in glib.
*** Fix above errors and then restart with "make -f client.mk build"
make: *** [/cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc/Makefile]
Error 1

Thanks.
m.

In article <dlc2ed$[hidden email]>, [hidden email] says...

> Michael Bergman wrote:
>
> > make -f client.mk build
> >
> > Adding client.mk options from
> > /cygdrive/e/Projects/ext/mozilla/.mozconfig:
> >     MOZ_CO_PROJECT=browser
> >     MOZ_OBJDIR=$(TOPSRCDIR)/obj-$(CONFIG_GUESS)
>
> Your configure line has extra arguments that is causing your system to
> be incorrectly identified.  Check to make sure that you don't have any
> extra lines in your mozconfig file that aren't commented out using #s.
>
> - cls
>
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Gopalarathnam Venkatesan
On 11/15/05, Michael Bergman <[hidden email]> wrote:

> Thanks, that gets me closer. I also had to fix some PATH problems. Here
> is the new PATH:
>
> /cygdrive/e/Projects/ext/moztools/vc71:/cygdrive/e/Projects/ext/moztools
> /vc71/bin:/cygdrive/d/Program
> Files/Microsoft SDK/Bin:/cygdrive/d/Program Files/Microsoft
> SDK/Bin/WinNT:/cygdrive/d/Program Files/Microsoft Visual Studio
> .NET 2003/Common7/IDE:/cygdrive/d/Program Files/Microsoft Visual Studio
> .NET 2003/VC7/BIN:/cygdrive/d/Program
> Files/Microsoft Visual Studio .NET
> 2003/Common7/Tools:/cygdrive/d/Program Files/Microsoft Visual Studio
> .NET
> 2003/Common7/Tools/bin/prerelease:/cygdrive/d/Program Files/Microsoft
> Visual Studio .NET
> 2003/Common7/Tools/bin:/cygdrive/d/Program Files/Microsoft Visual Studio
> .NET
> 2003/SDK/v1.1/bin:/cygdrive/c/WINNT/Microsoft.NET/Framework/v1.1.4322:/c
> ygdrive/c:/cygdrive/c/WINNT/system32:/cygdrive/c/WI
> NNT:/cygdrive/c/WINNT/system32/wbem:.:/cygdrive/e/Projects/ext/moztools/
> bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/us
> r/lib/lapack
>
>
> The problem I am now having is this:
>
> checking for correct overload resolution with const and templates... no
> configure: error: Cannot build ctl without gmodule support in glib.
> *** Fix above errors and then restart with "make -f client.mk build"
> make: *** [/cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc/Makefile]
> Error 1
>
> Thanks.
> m.
>

Like Christopher mentioned, just remove the unwanted lines from your
.mozconfig and you should be fine.

Have only the following lines in your .mozconfig and try:

-------------- cut ----------------
mk_add_options MOZ_CO_PROJECT=browser
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@

# Options for 'configure' (same as command-line options).
ac_add_options --enable-application=browser
ac_add_options --disable-mailnews
-------------- paste --------------

The rest should be detected and used automatically.
BTW, if you want only the browser, any reason you didn't try
downloading/building Firefox?

_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Chris Seawood
In reply to this post by Michael Bergman-2
Michael Bergman wrote:

> The problem I am now having is this:
>
> checking for correct overload resolution with const and templates... no
> configure: error: Cannot build ctl without gmodule support in glib.
> *** Fix above errors and then restart with "make -f client.mk build"
> make: *** [/cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc/Makefile]
> Error 1

That's because you have --enable-ctl in your mozconfig file.  The win32
versions of glib distributed by mozilla.org do not contain gmodule
support so you cannot build with ctl support unless you build glib yourself.

- cls
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Michael Bergman-2
In article <dldg20$[hidden email]>, [hidden email] says...
>
> That's because you have --enable-ctl in your mozconfig file.  The win32
> versions of glib distributed by mozilla.org do not contain gmodule
> support so you cannot build with ctl support unless you build glib yourself.
>
> - cls
>
Thanks.
Is this documented on the Mozilla website?  I am just wondering what
else I am missing.

Again, thanks.

Michael Bergman
Databerg Productions
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Benjamin Smedberg
Michael Bergman wrote:

> Thanks.
> Is this documented on the Mozilla website?  I am just wondering what
> else I am missing.

The build docs do indicate that you shouldn't use a configure flag unless
you know the consequences;
http://developer.mozilla.org/en/docs/Configuring_Build_Options#Selecting_Build_Options

Your initial mozconfig is bogus in several ways:

Why combine --disable-mailnews and --enable-static-mail ?
--with-branding=default cannot be right
Do you really want the --enable-leaky --enable-xpctools or
--enable-xpcom-lea debugging options, but not --enable-debug ?

Basically, you seem to be using configure flags you don't understand. If
this is your first time building, you should really be using as few build
options as possible.

--BDS
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Christian Biesinger
In reply to this post by Michael Bergman-2
Gopalarathnam Venkatesan wrote:
> ac_add_options --enable-application=browser
> ac_add_options --disable-mailnews
> -------------- paste --------------
>
> The rest should be detected and used automatically.

FWIW, --disable-mailnews is also not needed,
--enable-application=browser will automatically do that.
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Michael Bergman-2
In article <dlibdd$[hidden email]>, [hidden email] says...

> Gopalarathnam Venkatesan wrote:
> > ac_add_options --enable-application=browser
> > ac_add_options --disable-mailnews
> > -------------- paste --------------
> >
> > The rest should be detected and used automatically.
>
> FWIW, --disable-mailnews is also not needed,
> --enable-application=browser will automatically do that.
>
Okay... I cleaned up the .mozconfig file and I figured out that I needed
to delete the MOZ_OBJDIR directory and it went well until I got this
output:


make[4]: Entering directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
pc-msvc-suite/netwerk/resources'
+++ making chrome /cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc-
suite/netwerk/resources  => ../../dist/bin/chrome/comm.jar
+++ adding chrome ../../dist/bin/chrome/installed-chrome.txt
+++ content,install,url,jar:resource:/chrome/comm.jar!/content/necko/
        zip warning: ../comm.jar not found or empty
  adding: content/necko/redirect_loop.xul (stored 0%)
+++ overriding content/necko/contents.rdf
  adding: content/necko/contents.rdf (stored 0%)
error: file '/cygdrive/e/Projects/ext/mozilla/toolkit/locales/en-
US/chrome/necko/contents.rdf' doesn't exist at
/cygdrive/e/Projects/ext/mozilla/config/make-jars.pl line 418, <STDIN>
line 9.
+++ making chrome /cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc-
suite/netwerk/resources  => ../../dist/bin/chrome/en-US.jar
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
pc-msvc-suite/netwerk/resources'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
pc-msvc-suite/netwerk'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
pc-msvc-suite'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
pc-msvc-suite'
make: *** [build] Error 2

where MOZ_OBJDIR = /cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc-
suite.

Indeed, contents.rdf is not in
/cygdrive/e/Projects/ext/mozilla/toolkit/locales/en-US/chrome/necko/

If it is suppose to be in that directory, how is it suppose to get
there?  Do I need to copy it from another directory?

Michael Bergman
Databerg Productions



_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds
Reply | Threaded
Open this post in threaded view
|

Re: Building Mozilla for the first time on Win2K

Michael Bergman-2
I apologize for asking this question. The answer was in the Mozilla
Build FAQ at http://developer.mozilla.org/en/docs/Mozilla_Build_FAQ
:


error: file '../../toolkit/locales/en-US/chrome/necko/contents.rdf'
doesn't exist at ../../config/make-jars.pl line 418, <STDIN> line 9.
You are trying to build Firefox without following the instructions on
Configuring Build Options. In particular, your mozconfig file must
source the Firefox default mozconfig file:

. $topsrcdir/browser/config/mozconfig
# add your custom additional options here

That appears to be helping.


Michael Bergman
Databerg Productions



In article <[hidden email]>,
[hidden email] says...

> +++ overriding content/necko/contents.rdf
>   adding: content/necko/contents.rdf (stored 0%)
> error: file '/cygdrive/e/Projects/ext/mozilla/toolkit/locales/en-
> US/chrome/necko/contents.rdf' doesn't exist at
> /cygdrive/e/Projects/ext/mozilla/config/make-jars.pl line 418, <STDIN>
> line 9.
> +++ making chrome /cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc-
> suite/netwerk/resources  => ../../dist/bin/chrome/en-US.jar
> make[4]: *** [libs] Error 2
> make[4]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
> pc-msvc-suite/netwerk/resources'
> make[3]: *** [libs] Error 2
> make[3]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
> pc-msvc-suite/netwerk'
> make[2]: *** [tier_9] Error 2
> make[2]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
> pc-msvc-suite'
> make[1]: *** [default] Error 2
> make[1]: Leaving directory `/cygdrive/e/Projects/ext/mozilla/obj-i586-
> pc-msvc-suite'
> make: *** [build] Error 2
>
> where MOZ_OBJDIR = /cygdrive/e/Projects/ext/mozilla/obj-i586-pc-msvc-
> suite.
>
> Indeed, contents.rdf is not in
_______________________________________________
mozilla-builds mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-builds