Compiling SRPM on FC3 with --enable-xprint fails

Mark Roberts <[email protected]> 25 Apr 2005 00:16:53 GMT
Newsgroups gmane.comp.mozilla.devel.unix
Organization 1.94 meters
Message-ID <[email protected]>
Fails with the following message:

/usr/bin/ld: cannot find -lxprintutil
collect2: ld returned 1 exit status
gmake[3]: *** [libgfx_gtk.so] Error 1
gmake[3]: Leaving directory
`/usr/src/redhat/BUILD/mozilla/gfx/src/gtk'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/usr/src/redhat/BUILD/mozilla/gfx/src'
gmake[1]: *** [libs] Error 2
gmake[1]: Leaving directory `/usr/src/redhat/BUILD/mozilla/gfx'
make: *** [libs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.49407 (%build)

System: FC3, everything updated as of 2005-04-22, SRPM used 
is mozilla-1.7.7-1.3.1.i386.rpm. Same
version of mozilla-devel RPM is also installed. 

Options that I added to configure in the spec:
  --enable-xprint
  --enable-postscript
  --enable-strip

(Also removed all -g compiler flags.)

Xprint: xprint-2004-07-07-release_009_001-0.9.001.src.rpm *was*
installed and operational at the time of compilation. (I have
removed it until I try again.) I also tried compiling xprint from
the SRPM. Other than a slightly different package name, there was
no effect. The same failure occurred.

While xprint was installed, I was able to find no evidence of a
libxprintutil.o anywhere on the system. I am assuming it
should be in /usr/X11R6/lib, but it's not there. There is an xprintutil.o
file in
/usr/src/redhat/BUILD/xprint/src/xprint_main/xc/lib/XprintUtil/xprintutil.o .

By the way, for at least some form of comparison, I looked at my
old RH 7.2 system, where I last compiled Moz 1.7.2 with xprint. I
was able to successfully compile on that system, even though it,
too, appears to lack a libxprintutil.o . So now I am quite
bewildered as to where the actual problem might be. I was thinking
libxprintutil.o would be a prerequisite, but maybe it isn't?
But then the error message makes no sense.

The actual command on which compilation failed is (NB: editor
has word-wrapped):
c++ -I/usr/X11R6/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
-DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/include/freetype2/config
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -fPIC -shared
-Wl,-h -Wl,libgfx_gtk.so -o libgfx_gtk.so  nsPrintdGTK.o
gtk2drawing.o nsDeviceContextGTK.o nsDeviceContextSpecFactoryG.o
nsDeviceContextSpecG.o nsDrawingSurfaceGTK.o nsGfxFactoryGTK.o
nsGraphicsStateGTK.o nsImageGTK.o nsGCCache.o
nsRenderingContextGTK.o nsScreenGtk.o nsScreenManagerGtk.o
nsPrintOptionsGTK.o nsFontMetricsUtils.o nsAntiAliasedGlyph.o
nsFontFreeType.o nsFT2FontNode.o nsFT2FontCatalog.o
nsX11AlphaBlend.o nsXFontAAScaledBitmap.o nsXFontNormal.o
nsFontMetricsGTK.o nsGdkUtils.o nsFontMetricsXft.o
nsFontMetricsPango.o mozilla-decoder.o nsRegionGTK2.o
nsNativeThemeGTK.o       ../../../dist/lib/libgfxshared_s.a
-Wl,--version-script
-Wl,../../../build/unix/gnu-ld-scripts/components-version-script
-Wl,-Bsymbolic -L../../../dist/bin -lxpcom  -L../../../dist/bin
-L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl  -lgkgfx
-lXinerama -L../../../dist/bin -lmozjs
../../../dist/lib/libunicharutil_s.a   -L/usr/X11R6/lib   -lXft
-lX11 -lfreetype -lXrender -lfontconfig   -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   -lxprintutil -L/usr/X11R6/lib -lXp -lXext -lX11
-lpangoft2-1.0 -ldl -lm
/usr/bin/ld: cannot find -lxprintutil


-- 
Mark Roberts
[email protected]
Permission to archive this article in any form is hereby explicitly denied.