After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 528160 - Gimp 2.4.5 test failure
Gimp 2.4.5 test failure
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
2.4.x
Other Mac OS
: Normal trivial
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2008-04-15 07:20 UTC by Sébastien Maret
Modified: 2008-10-30 20:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Maret 2008-04-15 07:20:23 UTC
On my system (MacOS 10.4.5), Gimp 2.4.5 test suite fails with the following message:

Making check in config
make  check-TESTS
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../../app -I../../app -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/gtk-2.0   -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include   -I/sw/include -DG_LOG_DOMAIN=\"Gimp-Config\" -I/sw/include/gtk-2.0 -I/sw/include -DGIMP_DISABLE_DEPRECATED -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -c test-config.c
/bin/sh ../../libtool --tag=CC --mode=link gcc  -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith  -L/sw/lib -o test-config -u _xcf_init -u _internal_procs_init -u _gimp_coords_mix -u _gimp_plug_in_manager_restore test-config.o ../widgets/widgets-enums.o ../display/display-enums.o ../display/gimpdisplayoptions.o ../pdb/libappinternal-procs.a ../xcf/libappxcf.a ../file/libappfile.a ../plug-in/libappplug-in.a ../pdb/libapppdb.a ../core/libappcore.a ../vectors/libappvectors.a ../paint/libapppaint.a ../text/libapptext.a libappconfig.a ../paint-funcs/libapppaint-funcs.a ../composite/libappcomposite.a ../base/libappbase.a ../../libgimpmodule/libgimpmodule-2.0.la ../../libgimpcolor/libgimpcolor-2.0.la ../../libgimpthumb/libgimpthumb-2.0.la ../../libgimpmath/libgimpmath-2.0.la ../../libgimpconfig/libgimpconfig-2.0.la ../../libgimpbase/libgimpbase-2.0.la -Wl,-framework,CoreServices -Wl,-framework,ApplicationServices -L/sw/lib/pango-ft219/lib -L/sw/lib/fontconfig2/lib -L/sw/lib/freetype219/lib -L/sw/lib -lpangoft2-1.0 -lfontconfig -lfreetype -lz -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv   -L/sw/lib -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -liconv   -L/sw/lib -lart_lgpl_2   -L/sw/lib -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lintl -liconv   
mkdir .libs
gcc -g -O2 -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -o .libs/test-config -u _xcf_init -u _internal_procs_init -u _gimp_coords_mix -u _gimp_plug_in_manager_restore test-config.o ../widgets/widgets-enums.o ../display/display-enums.o ../display/gimpdisplayoptions.o -Wl,-framework -Wl,CoreServices -Wl,-framework -Wl,ApplicationServices  -L/sw/lib ../pdb/libappinternal-procs.a ../xcf/libappxcf.a ../file/libappfile.a ../plug-in/libappplug-in.a ../pdb/libapppdb.a ../core/libappcore.a ../vectors/libappvectors.a ../paint/libapppaint.a ../text/libapptext.a libappconfig.a ../paint-funcs/libapppaint-funcs.a ../composite/libappcomposite.a ../base/libappbase.a ../../libgimpmodule/.libs/libgimpmodule-2.0.dylib ../../libgimpcolor/.libs/libgimpcolor-2.0.dylib ../../libgimpthumb/.libs/libgimpthumb-2.0.dylib -L/sw/lib/pango-ft219/lib -L/sw/lib/freetype219/lib -L/sw/lib/fontconfig2/lib ../../libgimpmath/.libs/libgimpmath-2.0.dylib ../../libgimpconfig/.libs/libgimpconfig-2.0.dylib /sw/src/fink.build/gimp2-2.4.5-1/gimp-2.4.5/libgimpbase/.libs/libgimpbase-2.0.dylib /sw/src/fink.build/gimp2-2.4.5-1/gimp-2.4.5/libgimpcolor/.libs/libgimpcolor-2.0.dylib /sw/src/fink.build/gimp2-2.4.5-1/gimp-2.4.5/libgimpmath/.libs/libgimpmath-2.0.dylib ../../libgimpbase/.libs/libgimpbase-2.0.dylib /sw/lib/pango-ft219/lib/libpangoft2-1.0.dylib /sw/lib/fontconfig2/lib/libfontconfig.dylib /sw/lib/freetype219/lib/libfreetype.dylib -lz /sw/lib/pango-ft219/lib/libpango-1.0.dylib /sw/lib/libexpat.dylib /sw/lib/libgdk_pixbuf-2.0.dylib /sw/lib/libgmodule-2.0.dylib /sw/lib/libart_lgpl_2.dylib -lm /sw/lib/libgobject-2.0.dylib /sw/lib/libgthread-2.0.dylib /sw/lib/libglib-2.0.dylib /sw/lib/libintl.dylib -lc /sw/lib/libiconv.dylib 
creating test-config

Testing GimpConfig ...
 Creating a new Grid object ...
(process:2983): LibGimpBase-CRITICAL **: gimp_unit_get_number_of_units: assertion `_gimp_unit_vtable.unit_get_number_of_units != NULL' failed

(process:2983): LibGimpBase-CRITICAL **: gimp_unit_get_number_of_units: assertion `_gimp_unit_vtable.unit_get_number_of_units != NULL' failed
 done.
 Adding the unknown token (foobar "hadjaha") ... done.
 Serializing GimpGrid to 'foorc' ...
(process:2983): LibGimpBase-CRITICAL **: gimp_unit_get_identifier: assertion `_gimp_unit_vtable.unit_get_identifier != NULL' failed

(process:2983): GLib-CRITICAL **: g_string_append: assertion `val != NULL' failed

(process:2983): LibGimpBase-CRITICAL **: gimp_unit_get_identifier: assertion `_gimp_unit_vtable.unit_get_identifier != NULL' failed

(process:2983): GLib-CRITICAL **: g_string_append: assertion `val != NULL' failed
 done.
 Deserializing from 'foorc' ...
  yspacing -> 32.000000
  xspacing -> 32.000000
  bgcolor -> (color-rgba 1.000000 1.000000 1.000000 1.000000)
  fgcolor -> (color-rgba 0.000000 0.000000 0.000000 1.000000)
  style -> intersections
Error while parsing 'foorc' in line 8: unexpected character `)', expected identifier - fatal parse error
FAIL: test-config
=====================================================================
1 of 1 tests failed
Please report to http://bugzilla.gnome.org/enter_bug.cgi?product=GIMP
=====================================================================
make[3]: *** [check-TESTS] Error 1
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1
### execution of make failed, exit code 2
Comment 1 Sven Neumann 2008-04-16 10:03:10 UTC
The test works for me, so this seems to be a platform-specific issue. If you can find out how to fix what looks like a linker problem to me, then feel free to send us a patch. Note that there are two functions in testconfig.c which are supposed to override the functions from libgimpbase that are causing problems for you.
Comment 2 Sven Neumann 2008-04-16 10:37:30 UTC
Should be fixed in both branches now:

2008-04-16  Sven Neumann  <sven@gimp.org>

	* app/config/test-config.c: initialize the units vtable in
	libgimpbase instead of trying to override symbols from it.
	Fixes bug #528160.