LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   pango probs GIMP 2.2 (https://www.linuxquestions.org/questions/linux-software-2/pango-probs-gimp-2-2-a-269933/)

daveman_t 12-24-2004 11:32 AM

pango probs GIMP 2.2
 
I'm running RH9, and am trying to install GIMP 2.2. to install this i need gtk+ 2.2 which in turn needs pango, which in turn needs freetype 2. i have freetype 2, and the ./configure for pango 1.8 goes fine when checking freetype etc, but when i make i get this

make all-recursive
make[1]: Entering directory `/home/dave/pango-1/pango-1.8.0'
Making all in pango
make[2]: Entering directory `/home/dave/pango-1/pango-1.8.0/pango'
( cd . && glib-mkenums \
--fhead "#ifndef __PANGO_ENUM_TYPES_H__\n#define __PANGO_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
--fprod "/* enumerations from \"@filename@\" */\n" \
--vhead "GType @enum_name@_get_type (void);\n#define PANGO_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __PANGO_ENUM_TYPES_H__ */" \
pango.h pango-attributes.h pango-break.h pango-context.h pango-coverage.h pango-engine.h pango-font.h pango-fontmap.h pango-fontset.h pango-glyph.h pango-glyph-item.h pango-item.h pango-layout.h pango-modules.h pango-renderer.h pango-script.h pango-tabs.h pango-types.h pango-utils.h pangofc-font.h pangofc-fontmap.h ) > tmp-pango-enum-types.h \
&& (cmp -s tmp-pango-enum-types.h pango-enum-types.h || cp tmp-pango-enum-types.h pango-enum-types.h ) \
&& rm -f tmp-pango-enum-types.h \
&& echo timestamp > s-enum-types-h
( cd . && glib-mkenums \
--fhead "#include <pango.h>" \
--fprod "\n/* enumerations from \"@filename@\" */" \
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \ --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
pango.h pango-attributes.h pango-break.h pango-context.h pango-coverage.h pango-engine.h pango-font.h pango-fontmap.h pango-fontset.h pango-glyph.h pango-glyph-item.h pango-item.h pango-layout.h pango-modules.h pango-renderer.h pango-script.h pango-tabs.h pango-types.h pango-utils.h pangofc-font.h pangofc-fontmap.h ) > tmp-pango-enum-types.c \
&& (cmp -s tmp-pango-enum-types.c pango-enum-types.c || cp tmp-pango-enum-types.c pango-enum-types.c ) \
&& rm -f tmp-pango-enum-types.c \
&& echo timestamp > s-enum-types-c
make all-recursive
make[3]: Entering directory `/home/dave/pango-1/pango-1.8.0/pango'
Making all in opentype
make[4]: Entering directory `/home/dave/pango-1/pango-1.8.0/pango/opentype'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/dave/pango-1/pango-1.8.0/pango/opentype'
Making all in mini-fribidi
make[4]: Entering directory `/home/dave/pango-1/pango-1.8.0/pango/mini-fribidi'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/dave/pango-1/pango-1.8.0/pango/mini-fribidi'
make[4]: Entering directory `/home/dave/pango-1/pango-1.8.0/pango'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -I.. -g -O2 -Wall -MT module-defs-x.lo -MD -MP -MF ".deps/module-defs-x.Tpo" \
-c -o module-defs-x.lo `test -f 'module-defs-x.c' || echo './'`module-defs-x.c; \
then mv -f ".deps/module-defs-x.Tpo" ".deps/module-defs-x.Plo"; \
else rm -f ".deps/module-defs-x.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -I.. -g -O2 -Wall -MT module-defs-x.lo -MD -MP -MF .deps/module-defs-x.Tpo -c module-defs-x.c -fPIC -DPIC -o .libs/module-defs-x.o
/bin/sh ../libtool --mode=link gcc -g -O2 -Wall -o libpangox-1.0.la -rpath /usr/local/lib -version-info 800:0:800 module-defs-x.lo pangox.lo pangox-fontcache.lo pangox-fontmap.lo libpango-1.0.la -L/usr/X11R6/lib -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
libtool: link: warning: `/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../..//libgobject-2.0.la' seems to be moved
rm -fr .libs/libpangox-1.0.la .libs/libpangox-1.0.lai .libs/libpangox-1.0.so .libs/libpangox-1.0.so.0 .libs/libpangox-1.0.so.0.800.0
gcc -shared .libs/module-defs-x.o .libs/pangox.o .libs/pangox-fontcache.o .libs/pangox-fontmap.o -Wl,--rpath -Wl,/home/dave/pango-1/pango-1.8.0/pango/.libs -Wl,--rpath -Wl,/usr/local/lib -L/usr/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../ ./.libs/libpango-1.0.so -L/usr/X11R6/lib -lX11 /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -Wl,-soname -Wl,libpangox-1.0.so.0 -o .libs/libpangox-1.0.so.0.800.0
(cd .libs && rm -f libpangox-1.0.so.0 && ln -s libpangox-1.0.so.0.800.0 libpangox-1.0.so.0)
(cd .libs && rm -f libpangox-1.0.so && ln -s libpangox-1.0.so.0.800.0 libpangox-1.0.so)
creating libpangox-1.0.la
(cd .libs && rm -f libpangox-1.0.la && ln -s ../libpangox-1.0.la libpangox-1.0.la)
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -I.. -g -O2 -Wall -MT pangofc-fontmap.lo -MD -MP -MF ".deps/pangofc-fontmap.Tpo" \
-c -o pangofc-fontmap.lo `test -f 'pangofc-fontmap.c' || echo './'`pangofc-fontmap.c; \
then mv -f ".deps/pangofc-fontmap.Tpo" ".deps/pangofc-fontmap.Plo"; \
else rm -f ".deps/pangofc-fontmap.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\" -DMODULE_VERSION=\"1.4.0\" -DG_DISABLE_DEPRECATED -DG_DISABLE_CAST_CHECKS -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/X11R6/include
-I/usr/include/freetype2 -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -I.. -g -O2 -Wall -MT pangofc-fontmap.lo -MD -MP -MF .deps/pangofc-fontmap.Tpo -c pangofc-fontmap.c -fPIC -DPIC -o .libs/pangofc-fontmap.o
pangofc-fontmap.c: In function `pango_fc_convert_weight_to_fc':
pangofc-fontmap.c:538: `FC_WEIGHT_NORMAL' undeclared (first use in this function)
pangofc-fontmap.c:538: (Each undeclared identifier is reported only once
pangofc-fontmap.c:538: for each function it appears in.)
make[4]: *** [pangofc-fontmap.lo] Error 1
make[4]: Leaving directory `/home/dave/pango-1/pango-1.8.0/pango'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/dave/pango-1/pango-1.8.0/pango'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/dave/pango-1/pango-1.8.0/pango'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dave/pango-1/pango-1.8.0'
make: *** [all] Error 2

any ideas?

littleBonsai 01-03-2005 05:31 PM

... `FC_WEIGHT_NORMAL' undeclared (first use in this function) ...

This is defined in a header file of the fontconfig package. Maybe yours is too old? I'm using 2.2.3 (since about half an our :-).
BTW.: Check that only one fontconfig-package is installed (I had one from the xfree86 installation in /usr/X11R6/... and the new one in /usr/... - after deleting the old one in /usr/X11R6/... everything works fine now.

bmcmahon 01-15-2005 07:48 PM

What exactly did you delete from the X11 directory and how. I'm not a total newbie, but I'm definitely green. I have fontconfig installed in /usr/local and I get the same error when I run make for pango 1.8.

Thank you o' wise one.

ValidiusMaximus 01-15-2005 08:05 PM

get RPMs (or switch to debian and use apt)

__J 01-15-2005 08:11 PM

check ./configure --help and see if it gives you the option to ignore fontconfig (like --disable-fontconfig) or install fontconfig-2.2.x . What he's talking about is make sure you don't install one in /usr/X11R6 and also in /usr as it will not work (been though this one myself, its a pain if you have two installed accidentally). Personally, I like to install fontconfig in /usr/X11R6 (in /usr it seems to conflict with the X11 supplied libs).

And if you switch to debian, you can use apt-get to install a bleeding edje gimp-1.2 :D ( j/k)

littleBonsai 01-17-2005 10:19 AM

Quote:

Originally posted by bmcmahon
What exactly did you delete from the X11 directory and how.
Hmm, can't remember exactly what I did :cry:

Right now, if I enter "pkg-config --modversion fontconfig" it gives me 2.2.3 and there's no more "fontconfig-config" executable on my machine...
Therefore I think I deleted the following files: all "fontconfig-config" executables I've found and all "fontconfig.pc" files (found them in .../lib/pkgconfig, just use "locate" to find them). After that I installed the 2.2.3 version.

Agadius 02-01-2005 04:34 AM

What to delete or move
 
You check if you have fontconfig installed two places (/usr/X11R6 and /usr), by issuing a "locate fontconfig". Check if you can find libfontconfig.* in both /usr/lib and
/usr/X11R6/lib. If you do, mkdir /backuplib, move everything that you can associate with fontconfig under the /usr/X11R6 dir to the /backuplib, run ldconfig -v, and try to compile it again. Worked for me.

holkerveen 02-25-2005 07:09 PM

in reply to daveman_t

I got the same problem when compiling. I figure it is just a little bug in the sources. Check the last few lines in your output. It is telling you that there is an error in pangofc-fontmap.c, complaning that it doesn't know the FC_WEIGHT_NORMAL variable.

The way I corrected it was by putten the line "#define FC_WEIGHT_NORMAL 500" near the top of the document pango/pangofc-fontmap.c. That is probably not where that variable should be defined, but hey, it worked.

Grtz.


All times are GMT -5. The time now is 07:42 AM.