Closed Bug 297028 Opened 20 years ago Closed 17 years ago

build failed with disable xft on solaris.

Categories

(Firefox Build System :: General, defect)

Sun
Solaris
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: leon.sha, Unassigned)

References

Details

Solaris 8 and 9 do not have xft library. If we build firefox with gtk1 library
and apply the patch of bug 292987, it is OK. If we build gtk2(default) firefox
with --disable-xft, build mozilla will fail. The error message shows as below.



gmake[4]: Entering directory
`/export/home/henry/uild/firefox1.1.a1_gtk2/mozilla/gfx/src/gtk'
nsGfxFactoryGTK.cpp
Building deps for nsGfxFactoryGTK.cpp
/ws/on10-tools/SUNWspro/SOS8/bin/CC -o nsGfxFactoryGTK.o -c 
-DNATIVE_THEME_SUPPORT -DMOZILLA_INTERNAL_API -DOSTYPE=\"SunOS5\"
-DOSARCH=\"SunOS\" -DBUILD_ID=2005060811 -D_TIME_H=1 -DUSE_POSTSCRIPT -I../..
-I./. -I./.. -I./../shared -I./../x11shared   -I./../freetype
-I../../../dist/include/xpcom -I../../../dist/include/string
-I../../../dist/include/widget -I../../../dist/include/view
-I../../../dist/include/util -I../../../dist/include/pref
-I../../../dist/include/uconv -I../../../dist/include/unicharutil
-I../../../dist/include/locale -I../../../dist/include/necko
-I../../../dist/include/content -I../../../dist/include/layout
-I../../../dist/include/ctl -I../../../dist/include/gfx -I../../../dist/include
-I../../../dist/include/nspr    -I../../../dist/sdk/include -I/usr/sfw/include
-I/usr/sfw/include/freetype2 -I/usr/openwin/include   -KPIC 
-I/usr/openwin/include -xlibmil -xlibmopt -features=tmplife -norunpath
-xbuiltin=%all -features=tmplife -mt  -DNDEBUG -DTRIMMED -xO3 
-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/openwin/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include    -I/usr/openwin/include
-DMOZILLA_VERSION=\"1.8b2\" -DMOZILLA_VERSION_MAJOR=1 -DMO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 -DHAVE_GSS_C_NT_HOSTBASED_SERVICE=1
-DMOZ_MATHML=1 -DMOZ_LOGGING=1 -DMOZ_USER_DIR=\".mozilla\" -DMOZ_XUL=1
-DMOZ_PROFILELOCKING=1 -DSUNCTL=1 -DMOZ_DLL_SUFFIX=\".so\" -DXP_UNIX=1
-DUNIX_ASYNC_DNS=1 -DJS_THREADSAFE=1 -DNS_PRINT_PREVIEW=1 -DNS_PRINTING=1
-DMOZ_ACCESSIBILITY_ATK=1 -DMOZILLA_LOCALE_VERSION=\"1.8b2\"
-DMOZILLA_REGION_VERSION=\"1.8b2\" -DMOZILLA_SKIN_VERSION=\"1.5\" 
-D_MOZILLA_CONFIG_H_ -DMOZILLA_CLIENT nsGfxFactoryGTK.cpp"nsGfxFactoryGTK.cpp",
line 155: Error: nsIFontEnumerator is not defined.
"nsGfxFactoryGTK.cpp", line 155: Error: result is not defined.
"nsGfxFactoryGTK.cpp", line 191: Error: result is not defined.
"nsGfxFactoryGTK.cpp", line 192: Error: result is not defined.
"nsGfxFactoryGTK.cpp", line 193: Error: result is not defined.
"nsGfxFactoryGTK.cpp", line 193: Error: result is not defined.
6 Error(s) detected.
gmake[4]: *** [nsGfxFactoryGTK.o] Error 6
*** Bug 301679 has been marked as a duplicate of this bug. ***
I see the same problem problem building Seamonkey 1.0 on Solaris 8.  I'm current on patches, and I'm using Sun Studio 11 (also current on patches).  It builds fine with GTK1, but I cannot build it with GTK2.  Mozila 1.7.12 builds fine with GTK2.
Still have the same problem with Seamonkey 1.0.1 on SPARC Solaris 8.  Can build fine with gtk1 (but then have the column picker Bug 261959).  Cannot build with gtk2.
Though this does not help fix this bug, I am building current Mozilla, SeaMonkey, Firefox and Thunderbird releases on Sparc/Solaris with GTK 2.4 and Xft installed. I compiled Xft (2.1.2, http://freedesktop.org/~xlibs/release) from source, with xrender/render as a pre-requisite. I needed to apply some patches, though. I can provide RPM spec files, if you are interested.
(In reply to comment #4)
> Though this does not help fix this bug, I am building current Mozilla,
> SeaMonkey, Firefox and Thunderbird releases on Sparc/Solaris with GTK 2.4 and
> Xft installed. I compiled Xft (2.1.2, http://freedesktop.org/~xlibs/release)
> from source, with xrender/render as a pre-requisite. I needed to apply some
> patches, though. I can provide RPM spec files, if you are interested.
> 

Jens, I realize that it's been months since you posted this.  I'd be interested in as much information as you send me about building Seamonkey & friends using GTK2 under Solaris.
I believe this bug is invalid since we are using cario now.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.