--enable-tests static build bustage in thebes/test

RESOLVED FIXED in mozilla1.9.2a1

Status

()

RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: kairo, Assigned: kairo)

Tracking

({fixed1.9.1})

Trunk
mozilla1.9.2a1
x86
Linux
fixed1.9.1
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

10 years ago
With --enable-tests --enable-static --disable-shared on SeaMonkey or Thunderbird (which can't go libxul yet), I run into the following bustage:

gmake[7]: Entering directory `/mnt/mozilla/build/seamonkey-test/mozilla/gfx/thebes/test'
c++   -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -march=pentium4 -mtune=nocona -msse2 -msse3 -mssse3 -mfpmath=sse -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -Os -freorder-blocks -fno-reorder-functions  -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2   -I/mnt/mozilla/build/seamonkey-test/mozilla/dist/include/cairo -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-unix-print-2.0   -o gfxSurfaceRefCountTest gfxSurfaceRefCountTest.o   -lpthread   -Wl,-rpath-link,/mnt/mozilla/build/seamonkey-test/mozilla/dist/bin -Wl,-rpath-link,/lib  -L../../../dist/bin -L../../../dist/lib  -L../src -lthebes /mnt/mozilla/build/seamonkey-test/mozilla/dist/lib/libunicharutil_s.a -L../../../dist/bin -L../../../dist/lib -L/mnt/mozilla/build/seamonkey-test/mozilla/dist/bin -lxpcom -lxpcom_core  -L/mnt/mozilla/build/seamonkey-test/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lgtk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lfreetype -lz -lfontconfig -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0    -L../../../modules/zlib/src -lmozz -L/mnt/mozilla/build/seamonkey-test/mozilla/dist/bin -lmozlcms  -lasound -ldl -lm  -lpangoft2-1.0 -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lX11
gfxSurfaceRefCountTest.o: In function `TestExistingSurface()':
gfxSurfaceRefCountTest.cpp:(.text+0xa0): undefined reference to `_moz_cairo_image_surface_create'
gfxSurfaceRefCountTest.cpp:(.text+0xb6): undefined reference to `_moz_cairo_surface_set_user_data'
gfxSurfaceRefCountTest.cpp:(.text+0xbf): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x108): undefined reference to `_moz_cairo_surface_reference'
gfxSurfaceRefCountTest.cpp:(.text+0x126): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x15a): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x1c7): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x1eb): undefined reference to `_moz_cairo_surface_destroy'
gfxSurfaceRefCountTest.cpp:(.text+0x209): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x23a): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x25d): undefined reference to `_moz_cairo_surface_destroy'
gfxSurfaceRefCountTest.o: In function `TestNewSurface()':
gfxSurfaceRefCountTest.cpp:(.text+0x323): undefined reference to `_moz_cairo_surface_set_user_data'
gfxSurfaceRefCountTest.cpp:(.text+0x341): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x365): undefined reference to `_moz_cairo_surface_reference'
gfxSurfaceRefCountTest.cpp:(.text+0x383): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x3b7): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x427): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxSurfaceRefCountTest.cpp:(.text+0x44b): undefined reference to `_moz_cairo_surface_destroy'
gfxSurfaceRefCountTest.cpp:(.text+0x469): undefined reference to `_moz_cairo_surface_get_reference_count'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::GetSurfaceWrapper(_cairo_surface*)':
gfxASurface.cpp:(.text+0xfd): undefined reference to `_moz_cairo_surface_get_user_data'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::SetSurfaceWrapper(_cairo_surface*, gfxASurface*)':
gfxASurface.cpp:(.text+0x12d): undefined reference to `_moz_cairo_surface_set_user_data'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::MarkDirty(gfxRect const&)':
gfxASurface.cpp:(.text+0x15d): undefined reference to `_moz_cairo_surface_mark_dirty_rectangle'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::GetDeviceOffset() const':
gfxASurface.cpp:(.text+0x1a0): undefined reference to `_moz_cairo_surface_get_device_offset'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::SetDeviceOffset(gfxPoint const&)':
gfxASurface.cpp:(.text+0x1c9): undefined reference to `_moz_cairo_surface_set_device_offset'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::Init(_cairo_surface*, int)':
gfxASurface.cpp:(.text+0x222): undefined reference to `_moz_cairo_surface_status'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::Release()':
gfxASurface.cpp:(.text+0x29d): undefined reference to `_moz_cairo_surface_get_reference_count'
gfxASurface.cpp:(.text+0x2a8): undefined reference to `_moz_cairo_surface_destroy'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::AddRef()':
gfxASurface.cpp:(.text+0x2ea): undefined reference to `_moz_cairo_surface_reference'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::Wrap(_cairo_surface*)':
gfxASurface.cpp:(.text+0x331): undefined reference to `_moz_cairo_surface_get_type'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::CairoStatus()':
gfxASurface.cpp:(.text+0xc5): undefined reference to `_moz_cairo_surface_status'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::Finish()':
gfxASurface.cpp:(.text+0xd8): undefined reference to `_moz_cairo_surface_finish'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::GetData(_cairo_user_data_key const*)':
gfxASurface.cpp:(.text+0xea): undefined reference to `_moz_cairo_surface_get_user_data'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::SetData(_cairo_user_data_key const*, void*, void (*)(void*))':
gfxASurface.cpp:(.text+0x112): undefined reference to `_moz_cairo_surface_set_user_data'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::MarkDirty()':
gfxASurface.cpp:(.text+0x174): undefined reference to `_moz_cairo_surface_mark_dirty'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::Flush()':
gfxASurface.cpp:(.text+0x186): undefined reference to `_moz_cairo_surface_flush'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::GetContentType() const':
gfxASurface.cpp:(.text+0x1eb): undefined reference to `_moz_cairo_surface_get_content'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::GetType() const':
gfxASurface.cpp:(.text+0x209): undefined reference to `_moz_cairo_surface_get_type'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::Init(_cairo_surface*, int)':
gfxASurface.cpp:(.text+0x261): undefined reference to `_moz_cairo_surface_destroy'
../src/libthebes.a(gfxASurface.o): In function `gfxASurface::AddRef()':
gfxASurface.cpp:(.text+0x2d6): undefined reference to `_moz_cairo_surface_get_reference_count'
../src/libthebes.a(gfxImageSurface.o): In function `gfxImageSurface::gfxImageSurface(_cairo_surface*)':
gfxImageSurface.cpp:(.text+0x1a8): undefined reference to `_moz_cairo_image_surface_get_width'
gfxImageSurface.cpp:(.text+0x1b3): undefined reference to `_moz_cairo_image_surface_get_height'
gfxImageSurface.cpp:(.text+0x1be): undefined reference to `_moz_cairo_image_surface_get_data'
gfxImageSurface.cpp:(.text+0x1c9): undefined reference to `_moz_cairo_image_surface_get_format'
gfxImageSurface.cpp:(.text+0x1db): undefined reference to `_moz_cairo_image_surface_get_stride'
../src/libthebes.a(gfxImageSurface.o): In function `gfxImageSurface::gfxImageSurface(_cairo_surface*)':
gfxImageSurface.cpp:(.text+0x220): undefined reference to `_moz_cairo_image_surface_get_width'
gfxImageSurface.cpp:(.text+0x22b): undefined reference to `_moz_cairo_image_surface_get_height'
gfxImageSurface.cpp:(.text+0x236): undefined reference to `_moz_cairo_image_surface_get_data'
gfxImageSurface.cpp:(.text+0x241): undefined reference to `_moz_cairo_image_surface_get_format'
gfxImageSurface.cpp:(.text+0x253): undefined reference to `_moz_cairo_image_surface_get_stride'
../src/libthebes.a(gfxImageSurface.o): In function `gfxImageSurface::gfxImageSurface(gfxIntSize const&, gfxASurface::gfxImageFormat)':
gfxImageSurface.cpp:(.text+0x302): undefined reference to `_moz_cairo_image_surface_create_for_data'
../src/libthebes.a(gfxImageSurface.o): In function `gfxImageSurface::gfxImageSurface(gfxIntSize const&, gfxASurface::gfxImageFormat)':
gfxImageSurface.cpp:(.text+0x3c6): undefined reference to `_moz_cairo_image_surface_create_for_data'
../src/libthebes.a(gfxImageSurface.o): In function `gfxImageSurface::gfxImageSurface(unsigned char*, gfxIntSize const&, long, gfxASurface::gfxImageFormat)':
gfxImageSurface.cpp:(.text+0x468): undefined reference to `_moz_cairo_image_surface_create_for_data'
../src/libthebes.a(gfxImageSurface.o): In function `gfxImageSurface::gfxImageSurface(unsigned char*, gfxIntSize const&, long, gfxASurface::gfxImageFormat)':
gfxImageSurface.cpp:(.text+0x4f6): undefined reference to `_moz_cairo_image_surface_create_for_data'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::TakePixmap()':
gfxXlibSurface.cpp:(.text+0x50): undefined reference to `_moz_cairo_surface_set_user_data'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_cairo_surface*)':
gfxXlibSurface.cpp:(.text+0x16d): undefined reference to `_moz_cairo_xlib_surface_get_drawable'
gfxXlibSurface.cpp:(.text+0x178): undefined reference to `_moz_cairo_xlib_surface_get_display'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_cairo_surface*)':
gfxXlibSurface.cpp:(.text+0x1d3): undefined reference to `_moz_cairo_xlib_surface_get_drawable'
gfxXlibSurface.cpp:(.text+0x1de): undefined reference to `_moz_cairo_xlib_surface_get_display'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, XRenderPictFormat*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x278): undefined reference to `_moz_cairo_xlib_surface_create_with_xrender_format'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, XRenderPictFormat*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x316): undefined reference to `_moz_cairo_xlib_surface_create_with_xrender_format'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, unsigned long, XRenderPictFormat*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x3b9): undefined reference to `_moz_cairo_xlib_surface_create_with_xrender_format'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, unsigned long, XRenderPictFormat*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x45b): undefined reference to `_moz_cairo_xlib_surface_create_with_xrender_format'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, Visual*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x50a): undefined reference to `_moz_cairo_xlib_surface_create'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, Visual*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x5ba): undefined reference to `_moz_cairo_xlib_surface_create'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, unsigned long, Visual*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x650): undefined reference to `_moz_cairo_xlib_surface_create'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, unsigned long, Visual*, gfxIntSize const&)':
gfxXlibSurface.cpp:(.text+0x6e4): undefined reference to `_moz_cairo_xlib_surface_create'
../src/libthebes.a(gfxXlibSurface.o): In function `gfxXlibSurface::gfxXlibSurface(_XDisplay*, unsigned long, Visual*)':
gfxXlibSurface.cpp:(.text+0x754): undefined reference to `_moz_cairo_xlib_surface_create'
../src/libthebes.a(gfxXlibSurface.o):gfxXlibSurface.cpp:(.text+0x7c4): more undefined references to `_moz_cairo_xlib_surface_create' follow
collect2: ld returned 1 exit status
gmake[7]: *** [gfxSurfaceRefCountTest] Error 1
gmake[7]: Leaving directory `/mnt/mozilla/build/seamonkey-test/mozilla/gfx/thebes/test'
gmake[6]: *** [tools] Error 2
gmake[6]: Leaving directory `/mnt/mozilla/build/seamonkey-test/mozilla/gfx/thebes'
gmake[5]: *** [tools] Error 2
gmake[5]: Leaving directory `/mnt/mozilla/build/seamonkey-test/mozilla/gfx'
gmake[4]: *** [tools_tier_gecko] Error 2
gmake[4]: Leaving directory `/mnt/mozilla/build/seamonkey-test/mozilla'
gmake[3]: *** [tier_toolkit] Error 2
gmake[3]: Leaving directory `/mnt/mozilla/build/seamonkey-test/mozilla'
gmake[2]: *** [default] Error 2
gmake[2]: Leaving directory `/mnt/mozilla/build/seamonkey-test/mozilla'
gmake[1]: *** [default] Error 2
gmake[1]: Leaving directory `/mnt/mozilla/build/seamonkey-test'
gmake: *** [build] Error 2
(Assignee)

Comment 1

10 years ago
Created attachment 356222 [details] [diff] [review]
ifdef tests for static builds

We have the same case here as for bug 374921, XPCOM internal symbols are not available in static builds, just like in libxul.
As a note, both SeaMonkey and Thunderbird are hitting this (can't switch to libxul just yet).
Assignee: nobody → kairo
Status: NEW → ASSIGNED
Attachment #356222 - Flags: review?(roc)
I think this might be what I'm seeing in bug 466749; I assume you guys are also seeing this (or very similar) failure in your Mac builds?
Attachment #356222 - Flags: review?(roc) → review?(vladimir)
(Assignee)

Comment 3

10 years ago
Pushed as http://hg.mozilla.org/mozilla-central/rev/ffdf8f75910c and http://hg.mozilla.org/releases/mozilla-1.9.1/rev/57ef91f49aa0
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Keywords: fixed1.9.1
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.