Bug #54833 Cairo config not getting to grt library makefile
Submitted: 27 Jun 2010 6:38 Modified: 2 Aug 2010 13:21
Reporter: Alto Saxo Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.24 OS:Linux (Debian Lenny)
Assigned to: Mike Lischke CPU Architecture:Any
Tags: cairo grt makefile

[27 Jun 2010 6:38] Alto Saxo
Description:
Received error during build on library/grt/src/grtpp_grt.cpp - could not find file cairo_features.h (included from cairo.h, which is included from library/base/src/string_utilities.h, which is included in grtpp_grt.cpp).

The include flag for cairo (-I/usr/include/cairo) is making it into other makefiles, but is only part of GNOME_FLAGS in grt (which is apparently not used there).

Setting it in CAIRO_FLAGS and re-configuring had no effect (apparently this is not used by grt either). Setting it in CPPFLAGS and re-configuring did work and allowed me to complete the build.

The last build I did of MySQL Workbench was 5.2.11 and I didn't have this problem.

I'm running on Debian Lenny with gcc/g++ 4.3.2.

How to repeat:
./configure
make

Suggested fix:
Maybe the need for cairo headers wasn't taken into account when configuring grt. Maybe it doesn't need them, but if string_utilities.h (which includes cairo.h) is being included it's going to need the cairo include flag.

The configure script should probably be changed as someone new to building from source would have some difficulty tracking down the problem.
[28 Jun 2010 8:22] Mike Lischke
Fixed in repository.
[30 Jul 2010 16:49] Johannes Taxacher
fixed in relelase
[2 Aug 2010 13:21] Tony Bedford
An entry has been added to the 5.2.25 changelog:

Compiling MySQL Workbench from source code failed. The error was generated while building library/grt/src/grtpp_grt.cpp:

Could not find file cairo_features.h 
(included from cairo.h, which is included from
library/base/src/string_utilities.h, which is included in grtpp_grt.cpp)