undefined reference to `XRenderFindStandardFormat' while compiling

RESOLVED DUPLICATE of bug 344818

Status

()

RESOLVED DUPLICATE of bug 344818
12 years ago
12 years ago

People

(Reporter: o586806, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

2.11 KB, text/plain
Details
(Reporter)

Description

12 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux ppc64; en-US; rv:1.8.1.1) Gecko/20070121 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux ppc64; en-US; rv:1.8.1.1) Gecko/20070121 Firefox/2.0.0.1

while compiling a fresh mozilla cvs checkout (head) I'm getting this error while compiling:

c++  -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -mminimal-toc -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O1 -fPIC -shared -Wl,-z,defs -Wl,-h,libgklayout.so -o libgklayout.so  nsLayoutModule.o nsContentHTTPStartup.o nsContentDLF.o nsLayoutStatics.o    -lpthread    -Wl,--whole-archive ../base/libgkbase_s.a ../generic/libgkgeneric_s.a ../forms/libgkforms_s.a ../style/libgkstyle_s.a ../tables/libgktable_s.a ../xul/base/src/libgkxulbase_s.a ../../content/base/src/libgkconbase_s.a ../../content/canvas/src/libgkconcvs_s.a ../../content/events/src/libgkconevents_s.a ../../content/html/content/src/libgkconhtmlcon_s.a ../../content/html/document/src/libgkconhtmldoc_s.a ../../content/xml/content/src/libgkconxmlcon_s.a ../../content/xml/document/src/libgkconxmldoc_s.a ../../content/xslt/src/base/libtxbase_s.a ../../content/xslt/src/xml/libtxxml_s.a ../../content/xslt/src/xpath/libtxxpath_s.a ../../content/xslt/src/xslt/libtxxslt_s.a ../../content/xbl/src/libgkconxbl_s.a ../../content/xul/document/src/libgkconxuldoc_s.a ../../view/src/libgkview_s.a ../../dom/src/base/libjsdombase_s.a ../../dom/src/events/libjsdomevents_s.a ../../dom/src/jsurl/libjsurl_s.a ../../dom/src/storage/libjsdomstorage_s.a  ../printing/libgkprinting_s.a  ../xul/base/src/tree/src/libgkxultree_s.a ../xul/base/src/grid/libgkxulgrid_s.a ../../content/xul/content/src/libgkconxulcon_s.a ../../content/xul/templates/src/libgkconxultmpl_s.a  ../inspector/src/libinspector_s.a ../mathml/content/src/libgkmathmlcon_s.a ../mathml/base/src/libgkmathmlbase_s.a  ../../content/xtf/src/libgkcontentxtf_s.a  -Wl,--no-whole-archive -L../../dist/bin -L../../dist/lib -lgkgfx ../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxpcom -lxpcom_core  -L../../dist/bin -Wl,-R/usr/lib64/nspr -L/usr/lib64/nspr -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L../../dist/bin -lmozjs  -lcairo -lfreetype -lz -lfontconfig -lexpat   -lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgmodule-2.0 -ldl -lgobject-2.0 -lglib-2.0     -lX11  -Wl,--version-script -Wl,../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic -ldl -lm    
../../content/canvas/src/libgkconcvs_s.a(nsCanvasRenderingContext2D.o):(.text+0x78ec): undefined reference to `XRenderFindStandardFormat'
collect2: ld returned 1 exit status
gmake[4]: *** [libgklayout.so] Error 1
gmake[4]: Leaving directory `/home/markus/temp/mozilla/layout/build'



adding -lXrender to the command fixed the problem.

The problem seems to be that the Makefile only adds -lXrender to the LDFLAGS, if MOZ_ENABLE_CAIRO_GFX is enabled (from layout/build/Makefile):


ifdef MOZ_ENABLE_CAIRO_GFX
EXTRA_DSO_LDOPTS += -lXrender \
            $(NULL)
endif

Reproducible: Always




Xorg 7.1
PowerPC64
Gentoo/PPC64
gcc 4.1.1
(Reporter)

Comment 1

12 years ago
Created attachment 253201 [details]
mozconfig

here's my mozconfig

Comment 2

12 years ago
This is a duplicate of bug344818.
(Reporter)

Comment 3

12 years ago
Sorry, I haven't found that bug when I created this one.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 344818
You need to log in before you can comment on or make changes to this bug.