Problem Building Pango - glib issue



Pango configures fine and I get this error while compiling.

----------------------------- ERROR ------------------------------------
In file included from ../pango/pango.h:31,
                 from pango-impl-utils.h:28,
                 from break.c:27:
../pango/pango-enum-types.h:12:9: error: macro names must be identifiers
../pango/pango-enum-types.h:14:9: error: macro names must be identifiers
../pango/pango-enum-types.h:17:9: error: macro names must be identifiers
../pango/pango-enum-types.h:19:9: error: macro names must be identifiers
../pango/pango-enum-types.h:22:9: error: macro names must be identifiers
../pango/pango-enum-types.h:25:9: error: macro names must be identifiers
../pango/pango-enum-types.h:27:9: error: macro names must be identifiers
../pango/pango-enum-types.h:29:9: error: macro names must be identifiers
../pango/pango-enum-types.h:31:9: error: macro names must be identifiers
../pango/pango-enum-types.h:33:9: error: macro names must be identifiers
../pango/pango-enum-types.h:36:9: error: macro names must be identifiers
../pango/pango-enum-types.h:38:9: error: macro names must be identifiers
../pango/pango-enum-types.h:41:9: error: macro names must be identifiers
../pango/pango-enum-types.h:43:9: error: macro names must be identifiers
../pango/pango-enum-types.h:45:9: error: macro names must be identifiers
../pango/pango-enum-types.h:48:9: error: macro names must be identifiers
../pango/pango-enum-types.h:51:9: error: macro names must be identifiers
../pango/pango-enum-types.h:54:9: error: macro names must be identifiers
make[4]: *** [break.lo] Error 1
make[4]: Leaving directory `/opt/src/pango-1.28.1/pango'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/src/pango-1.28.1/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/opt/src/pango-1.28.1/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/src/pango-1.28.1'
make: *** [all] Error 2
[arnuld dune pango-1.28.1]$

[arnuld dune pango-1.28.1]$ uname -a
Linux dune 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:07:06 EDT 2010 i686 athlon i386 GNU/Linux

[arnuld dune pango-1.28.1]$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[arnuld dune pango-1.28.1]$ cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m

--------------------------------------------------------------------------------------------------


I googled for the error and came across this solution:  http://www.mail-archive.com/gtk-i18n-list gnome org/msg01393.html . Problem is my glib is qute old, so I have installed latest stable glib, cairo and fontcofig in /opt directory and I update the paths using this:

export PREFIX="/opt"
export PATH="$prefix/bin:$PATH"
export PKG_CONFIG_PATH="$prefix/lib/pkgconfig:$PKG_CONFIG_PATH"
export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH"
export ACLOCAL_FLAGS="-I $prefix/share/aclocal:$ACLOCAL_FLAGS"

new glib-mkenums does have ENUMPREFIX but the old one is not. Pango is picking up the old glib-mkenums only. I can't just do PATH="/opt" only because then it won't find other things like "make " as normal user binary path  will disappear.

How can I make pango to use the /opt for glib and cairo and other packages and pick up the rest from default path ?



-- 
http://uttre.wordpress.com/2008/05/14/the-lost-love-of-mine/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]