Umesh Bywar | 19 Apr 13:41 2005

Link errors while building a component

Hi all,
 
    I have added a new component which uses some other components. I am pasting my MakeFile and also the link errors that I am getting. The question I have is why should I get errors belonging to the libraries that I am referring to (i.e. xpcomds_s.lib & string_s.lib)?
    Please do let me know if you know what's going wrong.
    Thanks.
 
Errors:
 
string_s.lib(nsSubstring.obj) : error LNK2019: unresolved external symbol _NS_Free_P referenced in function "public: static void __cdecl nsMemory::Free(void *)" (?Free <at> nsMemory <at> <at> SAXPAX <at> Z)
xpcomds_s.lib(nsCRT.obj) : error LNK2001: unresolved external symbol _NS_Free_P
string_s.lib(nsReadableUtils.obj) : error LNK2019: unresolved external symbol _NS_Alloc_P referenced in function "public: static void * __cdecl nsMemory::Alloc(unsigned int)" (?Alloc <at> nsMemory <at> <at> SAPAXI <at> Z)
xpcomds_s.lib(nsCRT.obj) : error LNK2001: unresolved external symbol _NS_Alloc_P
myModule.dll : fatal error LNK1120: 2 unresolved externals
make[1]: *** [myModule.dll] Error 96
 
MakeFile:

DEPTH = ../../..

topsrcdir = <at> top_srcdir <at>

srcdir = <at> srcdir <at>

VPATH = <at> srcdir <at>

include $(DEPTH)/config/autoconf.mk

IS_COMPONENT = 1

MODULE = myModule

XPIDL_MODULE = myModule_x

LIBRARY_NAME = myModule

REQUIRES = xpcom \

string \

pref \

nkcache \

mimetype \

intl \

unicharutil \

caps \

xpconnect \

js \

uconv \

$(NULL)

XPIDLSRCS = myInterface1.idl \

$(NULL)

CPPSRCS = \

myCPP1.cpp \

myCPP2.cpp \

$(NULL)

DEFINES += -DXPCOM_GLUE

# separate libraries linked in.

EXTRA_DSO_LDOPTS = \

$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \

$(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \

$(DIST)/lib/$(LIB_PREFIX)xpcomds_s.$(LIB_SUFFIX) \

$(NSPR_LIBS) \

$(NULL)

LOCAL_INCLUDES=-I$(srcdir)/../../../base/src

#LIBS = \

# $(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \

# $(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \

# $(DIST)/lib/$(LIB_PREFIX)xpcomds_s.$(LIB_SUFFIX) \

# $(NSPR_LIBS) \

# $(NULL)

include $(topsrcdir)/config/rules.mk

Regards,
Umesh.
Enrico Weigelt | 5 Oct 17:01 2004
Picon

Build without Chatzilla


Hi folks,

how can I build Mozilla w/o Chatzilla ? 
I need a small build.

thx
--

-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service

  phone:     +49 36207 519931         www:       http://www.metux.de/
  fax:       +49 36207 519932         email:     contact <at> metux.de
  cellphone: +49 174 7066481
---------------------------------------------------------------------
 -- DSL ab 0 Euro. -- statische IP -- UUCP -- Hosting -- Webshops --
---------------------------------------------------------------------
karthikeyan.R | 17 Jul 14:38 2004
Picon

cannot open file "kernel32.lib" while compiling

Hi,

While compiling my component in Windows 2000 with VC6  i am facing the below stated error. Kindly help me to fix this.

Ref: Attaching the Makefile with this mail.

make[1]: Entering directory `/cygdrive/d/mozilla/xpcom/sample/qecomp'
/cygdrive/d/mozilla/build/cygwin-wrapper link /NOLOGO /DLL /OUT:xpcomqe.dll /PDB:xpcomqe.pdb /SUBSYS
TEM:WINDOWS  nsPlayBackUtils.obj nsRecorderImpl.obj nsPlayBack.obj nsQEngineImpl.obj nsQEngineModule
.obj ClientSocket.obj nsValidator.obj   ./module.res   /DEBUG /DEBUGTYPE:CV       ../../../dist/lib/
xpcomglue.lib ../../../dist/lib/embedstring.lib ../../../dist/lib/nspr4.lib ../../../dist/lib/plc4.l
ib ../../../dist/lib/plds4.lib    kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.l
ib
LINK : fatal error LNK1104: cannot open file "kernel32.lib"
make[1]: *** [xpcomqe.dll] Error 80
make[1]: Leaving directory `/cygdrive/d/mozilla/xpcom/sample/qecomp'
make: *** [all] Error 2


System path i am using is :
C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BIN;C:\PROGRA~1\MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D:\moztools\bin;D:\cygwin\bin;C:\Program Files\mozilla.org\mozilla;D:\Perl\bin\;

Thanks in advance,
Karthikeyan.R

--

Usability Engineering Team - QEngine
AdventNet Development Centre (I) Pvt. Ltd.,
Chennai - 600 042
Ph: +91-44-2243 1115 - Extn : 5517
http://www.adventnet.com

"A candle loses nothing by lighting another candle"

#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation.  Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): 
#

DEPTH		= ../../..
topsrcdir	= /cygdrive/d/mozilla
srcdir		= /cygdrive/d/mozilla/xpcom/sample/qecomp
VPATH		= /cygdrive/d/mozilla/xpcom/sample/qecomp

include $(DEPTH)/config/autoconf.mk

MODULE		= xpcom
XPIDL_MODULE	= QEComponent
LIBRARY_NAME	= qecomp
SHORT_LIBNAME	= xpcomqe

IS_COMPONENT	= 1
MODULE_NAME	= nsQEngineModule
LOCAL_INCLUDES = -I/cygdrive/c/CVSRoots/qenginecvs/native/webclienttester/mozilla/include/ \
		-I/cygdrive/c/PROGRA~1/MICROS~3/VC98/Include \
		$(NULL)

# Ensure that the xpcom classes that we build
# do not export themselves
DEFINES		+= -DXPCOM_GLUE 

REQUIRES      = string \
	xpcom \
	nspr \
	uriloader \
	dom \
	windowwatcher \
	necko \
	embedstring \
	docshell \
	webbrwsr \
	browser \
	appshell \
	unicharutil \
	widget \
	accessibility \
	accessible \
	xuldoc \
	xmlextras \
	layout \
	content \
    	gfx \
	locale \
	shistory \
	inspector \
	$(NULL)

CPPSRCS   =              \
	nsPlayBackUtils.cpp \
	nsRecorderImpl.cpp \
	nsPlayBack.cpp \
	nsQEngineImpl.cpp \
	nsQEngineModule.cpp \
	ClientSocket.cpp \
	nsValidator.cpp \
	$(NULL)
	
XPIDLSRCS = nsIQEngine.idl

include $(topsrcdir)/config/config.mk

#EXTRA_COMPONENTS = nsSample.js

# separate libraries linked in.
EXTRA_DSO_LDOPTS = \
		$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
		$(DIST)/lib/$(LIB_PREFIX)embedstring.$(LIB_SUFFIX) \
		$(NSPR_LIBS) \
		$(NULL)

LIBS            = \
		$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
		$(DIST)/lib/$(LIB_PREFIX)embedstring.$(LIB_SUFFIX) \
		$(NSPR_LIBS) \
		$(NULL)

# Needed to resolve __yylex (?)
ifeq ($(OS_ARCH)$(OS_RELEASE),FreeBSD2)
LIBS		+= -lpcap
endif

# Need to link with CoreFoundation on Mac
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
EXTRA_DSO_LDOPTS += \
		$(TK_LIBS) \
		$(NULL)

LIBS += \
		$(TK_LIBS) \
		$(NULL)
endif

include $(topsrcdir)/config/rules.mk

libs:: $(TARGETS)
	$(INSTALL) $(srcdir)/xpconnect-sample.html $(DIST)/bin/res/samples

install:: $(TARGETS)
	$(SYSINSTALL) $(IFLAGS1) $(srcdir)/xpconnect-sample.html $(DESTDIR)$(mozappdir)/res/samples

karthikeyan.R | 16 Jul 14:00 2004
Picon

Error while compiling my component

Hi,

I have compiled the mozilla source in windows 2000 using VC++ 6.  While compiling my component i get the following error.

The path used to compile my component is
c:\mingw\bin;C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BIN;C:\PROGRA~1\
MICROS~3\Common\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;
D:\moztools\bin;D:\cygwin\bin;C:\Program Files\mozilla.org\mozilla;D:\Perl\bin\;D:\vc7\bin;

../../../dist/include/dom\nsIDOMNSEvent.h(76) : error C2059: syntax error : 'constant'
../../../dist/include/dom\nsIDOMNSEvent.h(76) : error C2143: syntax error : missing ';' before '}'
../../../dist/include/dom\nsIDOMNSEvent.h(76) : error C2238: unexpected token(s) preceding ';'
../../../dist/include/dom\nsIDOMNSEvent.h(102) : error C2575: 'GetOriginalTarget' : only member func
tions and bases can be virtual
../../../dist/include/dom\nsIDOMNSEvent.h(102) : error C2072: 'GetOriginalTarget' : initialization o
f a function
../../../dist/include/dom\nsIDOMNSEvent.h(115) : error C2575: 'GetExplicitOriginalTarget' : only mem
ber functions and bases can be virtual
../../../dist/include/dom\nsIDOMNSEvent.h(115) : error C2072: 'GetExplicitOriginalTarget' : initiali
zation of a function
../../../dist/include/dom\nsIDOMNSEvent.h(118) : error C2575: 'GetTmpRealOriginalTarget' : only memb
er functions and bases can be virtual
../../../dist/include/dom\nsIDOMNSEvent.h(118) : error C2072: 'GetTmpRealOriginalTarget' : initializ
ation of a function
../../../dist/include/dom\nsIDOMNSEvent.h(121) : error C2575: 'PreventBubble' : only member function
s and bases can be virtual
../../../dist/include/dom\nsIDOMNSEvent.h(121) : error C2072: 'PreventBubble' : initialization of a
function
../../../dist/include/dom\nsIDOMNSEvent.h(124) : error C2575: 'PreventCapture' : only member functio
ns and bases can be virtual
../../../dist/include/dom\nsIDOMNSEvent.h(124) : error C2072: 'PreventCapture' : initialization of a
 function
../../../dist/include/dom\nsIDOMNSEvent.h(126) : error C2143: syntax error : missing ';' before '}'
../../../dist/include/dom\nsIDOMNSEvent.h(126) : error C2143: syntax error : missing ';' before '}'
../../../dist/include/dom\nsIDOMNSEvent.h(126) : error C2143: syntax error : missing ';' before '}'
d:/mozilla/xpcom/sample/qecomp/nsUtil.h(1432) : error C2664: 'GetSelectedIndex' : cannot convert par
ameter 1 from 'long *' to 'int *'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or functi
on-style cast
d:/mozilla/xpcom/sample/qecomp/nsRecorderImpl.cpp(671) : error C2039: 'GetOriginalTarget' : is not a
 member of 'nsDerivedSafe<class nsIDOMNSEvent>'
make[1]: *** [nsRecorderImpl.obj] Error 2
make[1]: Leaving directory `/cygdrive/d/mozilla/xpcom/sample/qecomp'
make: *** [all] Error 2


Kindly help me to solve this error.

Thanks in advance,
Karthikeyan.R
karthikeyan.R | 13 Jul 19:00 2004
Picon

Problem while compiling mozilla 1.6

Hi all,

I am trying to compile mozilla 1.6 source in windows 2000. But i am unsuccessful in my approach. I followed the steps provided  in the following URL http://www.mozilla.org/build/win32.html

The path set to the system is
PATH=C:\PROGRA~1\MICROS~3\Common\msdev98\BIN;C:\PROGRA~1\MICROS~3\VC98\BIN;C:\PROGRA~1\MICROS~3\Comm
on\TOOLS\WINNT;C:\PROGRA~1\MICROS~3\Common\TOOLS;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;D
:\vc7\bin;D:\moz\mingw\bin;D:\moztools\bin;D:\cygwin\bin;D:\Perl\bin\;

Successful builder kindly reply to this.

Following is the error reported while building the source.

../../dist/include/xpcom\nsIConsoleService.h(63) : error C2061: syntax error : identifier 'nsIConsol
eListener'
../../dist/include/xpcom\nsIConsoleService.h(69) : error C2061: syntax error : identifier 'nsIConsol
eListener'
d:/mozilla/xpcom/base/nsConsoleService.h(58) : error C2061: syntax error : identifier 'nsIConsoleLis
tener'
d:/mozilla/xpcom/base/nsConsoleService.h(58) : error C2061: syntax error : identifier 'nsIConsoleLis
tener'
d:/mozilla/xpcom/base/nsConsoleService.h(62) : error C2061: syntax error : identifier 'nsIConsoleLis
tener'
d:/mozilla/xpcom/base/nsConsoleService.cpp(156) : error C2065: 'nsIConsoleListener' : undeclared ide
ntifier
d:/mozilla/xpcom/base/nsConsoleService.cpp(156) : error C2955: 'nsCOMPtr' : use of class template re
quires template argument list
        ../../dist/include/xpcom\nsCOMPtr.h(728) : see declaration of 'nsCOMPtr'
d:/mozilla/xpcom/base/nsConsoleService.cpp(156) : error C2133: 'listener' : unknown size
d:/mozilla/xpcom/base/nsConsoleService.cpp(156) : error C2512: 'nsCOMPtr' : no appropriate default c
onstructor available
d:/mozilla/xpcom/base/nsConsoleService.cpp(156) : error C2262: 'listener' : cannot be destroyed
d:/mozilla/xpcom/base/nsConsoleService.cpp(173) : error C2784: 'class nsGetterAddRefs<T> __cdecl get
ter_AddRefs(class nsCOMPtr<T> &)' : could not deduce template argument for 'class nsCOMPtr<T> &' fro
m 'class nsCOMPtr'
d:/mozilla/xpcom/base/nsConsoleService.cpp(173) : error C2784: 'const struct already_AddRefed<T> __c
decl getter_AddRefs(const struct already_AddRefed<T>)' : could not deduce template argument for 'con
st struct already_AddRefed<T>' from 'class nsCOMPtr'
d:/mozilla/xpcom/base/nsConsoleService.cpp(173) : error C2784: 'const struct already_AddRefed<T> __c
decl getter_AddRefs(T *)' : could not deduce template argument for ' *' from 'class nsCOMPtr'
d:/mozilla/xpcom/base/nsConsoleService.cpp(178) : error C2678: binary '->' : no operator defined whi
ch takes a left-hand operand of type 'class nsCOMPtr' (or there is no acceptable conversion)
d:/mozilla/xpcom/base/nsConsoleService.cpp(178) : error C2039: 'Observe' : is not a member of 'nsCOM
Ptr'
        ../../dist/include/xpcom\nsCOMPtr.h(728) : see declaration of 'nsCOMPtr'
d:/mozilla/xpcom/base/nsConsoleService.cpp(254) : error C2065: 'listener' : undeclared identifier
d:/mozilla/xpcom/base/nsConsoleService.cpp(254) : error C2448: '<Unknown>' : function-style initiali
zer appears to be a function definition
d:/mozilla/xpcom/base/nsConsoleService.cpp(289) : error C2448: '<Unknown>' : function-style initiali
zer appears to be a function definition
d:/mozilla/xpcom/base/nsConsoleService.cpp(298) : error C2065: 'aListener' : undeclared identifier
d:/mozilla/xpcom/base/nsConsoleService.cpp(299) : error C2065: 'aProxy' : undeclared identifier
d:/mozilla/xpcom/base/nsConsoleService.cpp(299) : error C2100: illegal indirection
d:/mozilla/xpcom/base/nsConsoleService.cpp(300) : error C2448: '<Unknown>' : function-style initiali
zer appears to be a function definition
make[4]: *** [nsConsoleService.obj] Error 2
make[4]: Leaving directory `/cygdrive/d/mozilla/xpcom/base'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/cygdrive/d/mozilla/xpcom'
make[2]: *** [tier_2] Error 2
make[2]: Leaving directory `/cygdrive/d/mozilla'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/cygdrive/d/mozilla'
make: *** [build] Error 2


Thanks in advance,
Karthikeyan.R
L. David Baron | 25 Feb 23:16 2004

need to clobber rdf files in builds with objdir (separate object tree)


Because:
 1) the insertion of the locale/region version string into contents.rdf,
    contents-platform.rdf and contents-region.rdf files was recently
    (February 4) changed from using allmakefiles.sh to using the XUL
    preprocessor,
 2) JAR file creation searches in both the objdir and the srcdir for the
    file to add, and
 3) I bumped the locale/region version on the trunk on Saturday
    (February 21),
anybody who has an objdir build whose object tree hasn't been clobbered
since (1) happened needs to delete the rdf files in the objdir.  People
with srcdir builds won't have this problem since they had to deal with
cvs conflicts when (1) happened.

You can easily build a list of the files that need to be removed from
the objdir with the following command (all one line), executed in your
objdir:
/usr/bin/find . -name contents.rdf -o -name contents-region.rdf -o -name
  contents-platform.rdf > rdfs-to-remove
(These could then be removed, once you make sure the list is correct,
with a command like "rm -i `cat rdfs-to-remove`".)

Note that firefox still uses allmakefiles.sh to generate these files so
if you're building firefox you have to do one of:
 1) not remove the files in the above list that are in browser/ and
    toolkit/, or
 2) run configure again after doing the removal to regenerate those
    files in the objdir
Furthermore, when the firefox patch to do this conversion lands similar
steps will be needed to remove the files in browser/ and toolkit/ (or,
for those with srcdir builds, clear further merge conflicts).

-David

--

-- 
L. David Baron                                <URL: http://dbaron.org/ >
Miroslav Rovis | 12 Dec 22:26 2003
Picon

error with libgklayout.so / no icons in enigmail

I am sorry if I should've sent this to one only list, but it appears (to 
me) to be related to both crypto and builds  :-)
This is where make stalled:
gmake[3]: Entering directory 
`/usr/src/packages/SOURCES/mozilla/layout/build'
../../config/nsinstall -R -m 755 libgklayout.so ../../dist/gre/components
../../dist/bin/elf-dynstr-gc ../../dist/gre/components/libgklayout.so
Cannot open file ../../dist/gre/components/libgklayout.so
gmake[3]: *** [libs] Error 1
gmake[3]: Leaving directory `/usr/src/packages/SOURCES/mozilla/layout/build'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/src/packages/SOURCES/mozilla/layout'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/usr/src/packages/SOURCES/mozilla'
makemy: *** [default] Error 2
After fixing libgklayout.so to be readable for regular user (strangely: 
only that single file was root; and I don't think I messed that myself, 
but it may be related to the install of  enigmail on the previous CVS 
source, which said "successful", bur wasn't, and showed the same 
symptoms as today):
linux1:/usr/src/packages/SOURCES/mozilla # l layout/build/libgklayout.so
-rwxr-xr-x    1 root     root      7396657 2003-12-11 21:51 
layout/build/libgklayout.so*
linux1:/usr/src/packages/SOURCES/mozilla # l layout/build/
total 7708
...   ...
-rw-r--r--    1 miro     users          35 2003-12-07 23:53 gbdate.h
-rwxr-xr-x    1 miro     users        1265 2002-02-20 07:21 gbdate.pl*
-rwxr-xr-x    1 root     root      7396657 2003-12-11 21:51 libgklayout.so*
-rw-r--r--    1 miro     users        4633 2003-12-07 23:37 Makefile
-rw-r--r--    1 miro     users        4654 2003-04-11 10:23 Makefile.in
-rw-r--r--    1 miro     users       20565 2003-12-07 23:16 nsContentDLF.cpp
...   ...
linux1:/usr/src/packages/SOURCES/mozilla # chown miro 
layout/build/libgklayout.so ; chgrp users layout/build/libgklayout.so
I was now able to install.
But, the enigmail-plugin (which I then went to download) does not work.
It also does not have any of the icons at all (the broken pen etc.).
It's SuSE 9.0. I have been able to install the source just fine for the 
five days up to now.
Here is from my about:buildconfig:
i686-pc-linux-gnu
/usr/gcc-3.2.3/bin/gcc 	gcc version 3.2.3 	-Wall -W -Wno-unused 
-Wpointer-arith -Wcast-align -pedantic -Wno-long-long -g -pthread -pipe

/usr/gcc-3.2.3/bin/g++ 	gcc version 3.2.3 	-fno-rtti -fno-exceptions 
-Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual 
-Wsynth -Wno-ctor-dtor-privacy -pedantic -Wno-long-long -g -fshort-wchar 
-pthread -pipe -I/usr/X11R6/include

--disable-tests --enable-extensions=default,irc --without-system-nspr 
--without-system-jpeg --without-system-zlib --without-system-png 
--without-system-mng --disable-debug --enable-optimize 
--disable-elf-dynstr-gc --enable-crypto
Ow! That's not what I typed in!
I typed:
./configure --prefix=/usr/local/mozilla --with-system-jpeg=/usr 
--with-system-zlib=/usr --with-system-png=/usr 
--with-libIDL-prefix=/usr/local --disable-debug
I don't have any clues what other info might be needed to solve this.
Thanks!
Miro
Doug Freese | 22 Sep 12:44 2003
Picon

VIRUS!!!! - Try on internet update from M$

Well, speaking of the swen/gibe virus here it is first hand. Clever 
ain't it?

--

-- 
Doug Freese
dfreeseNOBS <at> hvc.rr.com

Christopher Seawood | 18 Sep 21:25 2003

bumping mingw build requirements

Due to the changes in bug 219327 & bug 203292, w32api 2.4 and windres 
2.14.90 (from binutils 2.14.90) will be required to build using gcc on 
win32.

- cls

Juan Jansen | 4 Sep 14:10 2003
Picon

Win64 Build for Opteron and Athlon64 soon?

Will there be a release for AMD64 cpu's soon??

is there a beta somewere?

Jungshik Shin | 15 Aug 09:52 2003

ctl + gtk2 + xft build?

I've been trying to build Mozilla with CTL, Xft and Gtk2, but 
'configure' failed around the end checking if gmodule is supported.
The build log has the following:

----------
checking MOZ_GTK2_CFLAGS... -I/usr/include/gtk-2.0 
-I/usr/lib/gtk-2.0/include -I
/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include 
-I/usr/includ
e/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking MOZ_GTK2_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 
-lgdk-x11-2.0 -latk
-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 
-lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0
.....

checking whether compiler supports -Wno-long-long... yes
checking for libIDL-2.0 >= 0.8.0... yes
checking LIBIDL_CFLAGS... -I/usr/include/libIDL-2.0 
-I/usr/include/glib-2.0 -I/u
sr/lib/glib-2.0/include
checking LIBIDL_LIBS... -lIDL-2 -lglib-2.0
configure: error: Cannot build ctl without gmodule support in glib.
*** Fix above errors and then restart with "make -f client.mk build"
make: *** [/prj/moz/builds/debug.gtk2/Makefile] Error 1
---------------------

The following is from the config log. Somehow Glib version was not 
checked and '-I/usr/include/glib-2.0' and '-I/usr/lib/glib-2.0/include' 
were not used.

--------------------
configure:14787: gcc -c  -pthread -pipe    -I/usr/X11R6/include 
conftest.c 1>&5
configure:14781:21: gmodule.h: No such file or directory
configure: failed program was:
#line 14780 "configure"
#include "confdefs.h"
#include <gmodule.h>
int main() {
  int x = 1; x++;
; return 0; }
--------------------

I'm on RedHat 9 (upgraded from RH 8) with g++ (GCC) 3.2.2 20030222 (Red 
Hat Linux 3.2.2-5) and GNU Make version 3.79.1

I had no problem building Mozilla with gtk+ctl+xft enabled.

Any idea what's wrong?

TIA

Jungshik


Gmane