Closed Bug 362335 Opened 18 years ago Closed 18 years ago

Build process is broken while processing nsPSPrinters.cpp, missing nsIDeviceContextSpecPS.h ?

Categories

(Firefox Build System :: General, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fredbezies, Unassigned)

References

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20061129 Firefox/3.0a1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20061129 Firefox/3.0a1

Simple to see. After code was added to make printing work again on linux trunk, build process is stopped while processing nsPSPrinters.cpp. I saw it first with SeaMonkey trunk, but I also saw it while trying to build firefox.

Here is the error log from SeaMonkey, the same is available for firefox.

c++ -o nsPSPrinters.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006113008 -D_IMPL_NS_PSSHARED  -I../../../dist/include/pref -I../../../dist/include/string -I../../../dist/include/widget -I../../../dist/include/xpcom -I../../../dist/include   -I../../../dist/include/gfx -I../../../dist/include/nspr  -DMOZ_PNG_READ -DMOZ_PNG_WRITE  -I../../../dist/sdk/include       -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O2 -pipe -w -fno-strict-aliasing   -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsPSPrinters.pp nsPSPrinters.cpp
nsPSPrinters.cpp:42:65: error: nsIDeviceContextSpecPS.h: Aucun fichier ou répertoire de ce type
nsPSPrinters.cpp: In member function ‘void nsPSPrinterList::GetPrinterList(nsCStringArray&)’:
nsPSPrinters.cpp:129: error: ‘NS_POSTSCRIPT_DRIVER_NAME’ was not declared in this scope
nsPSPrinters.cpp:129: error: expected primary-expression before ‘(’ token
nsPSPrinters.cpp:129: error: expected `)' before string constant
nsPSPrinters.cpp:129: error: expected primary-expression before ‘(’ token
nsPSPrinters.cpp:129: error: expected `)' before string constant
nsPSPrinters.cpp:129: error: expected `)' before ‘;’ token
nsPSPrinters.cpp: In static member function ‘static nsPSPrinterList::PrinterType nsPSPrinterList::GetPrinterType(const nsACString_internal&)’:
nsPSPrinters.cpp:158: error: ‘NS_POSTSCRIPT_DRIVER_NAME’ was not declared in this scope
make[6]: *** [nsPSPrinters.o] Erreur 1
make[6]: quittant le répertoire « /home/fred/logs/suite/mozilla/gfx/src/psshared »
make[5]: *** [libs] Erreur 2
make[5]: quittant le répertoire « /home/fred/logs/suite/mozilla/gfx/src »
make[4]: *** [libs] Erreur 2
make[4]: quittant le répertoire « /home/fred/logs/suite/mozilla/gfx »
make[3]: *** [libs_tier_gecko] Erreur 2
make[3]: quittant le répertoire « /home/fred/logs/suite/mozilla »
make[2]: *** [tier_gecko] Erreur 2
make[2]: quittant le répertoire « /home/fred/logs/suite/mozilla »
make[1]: *** [alldep] Erreur 2
make[1]: quittant le répertoire « /home/fred/logs/suite/mozilla »
make: *** [alldep] Erreur 2



Reproducible: Always

Steps to Reproduce:
1. Grab latest up-to-date source code
2. Launch building process
3. Wait

Actual Results:  
Building process is killed while processing nsPSPrinters.cpp !

Expected Results:  
Build process going on ?

Seems to be related to a missing nsIDeviceContextSpecPS.h ?

Here is my .mozconfig :

#
# See http://www.mozilla.org/build/ for build instructions.
#

. $topsrcdir/browser/config/mozconfig

# Options for 'configure' (same as command-line options).
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --disable-freetype2
ac_add_options --enable-pango
ac_add_options --enable-canvas
ac_add_options --enable-svg
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-optimize="-O2 -pipe -w -fno-strict-aliasing"
ac_add_options --enable-static
ac_add_options --disable-shared

I am building firefox, thunderbird and SeaMonkey on an up-to-date ubuntu edgy eft linux.
For some reason the export step in gfx/src/ps is not being done. If you manually do that, then make libs in gfx/src/psshared works fine.
The Firefox trunk t'box (argo-vm) also has this problem. It was fine before it clobbered for the nightly, I guess because it already had nsIDeviceContextSpecPS.h in dist/include/gfx.
http://lxr.mozilla.org/mozilla/source/gfx/src/Makefile.in#72

gfx/src/ps is explicitly disabled when cairo gfx is on.
Summary: [trunk][linux] Build process is broken while processing nsPSPrinters.cpp, missing nsIDeviceContextSpecPS.h ? → Build process is broken while processing nsPSPrinters.cpp, missing nsIDeviceContextSpecPS.h ?
Version: unspecified → Trunk
Patch added to fix build busting for bug 323928 leads to crash every single time I try to print something :(
I see the same crash as in bug 362476
This bug can be closed because build process is OK, but I cannot get a page to be printed under firefox based trunk without a crash.

Simple to reproduce. Go to gmail, select print page, and try to print using
only 1 page.

After preparing the print process, firefox "commits suicide" instead of
printing. I can make it with an one hour old homemade trunk build under Ubuntu
Edgy Eft and code up-to-date at midnight, mozilla.org time.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
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.