LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2004, 11:32 AM   #1
daveman_t
LQ Newbie
 
Registered: Dec 2004
Posts: 10

Rep: Reputation: 0
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?
 
Old 01-03-2005, 05:31 PM   #2
littleBonsai
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
... `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.

Last edited by littleBonsai; 01-03-2005 at 05:34 PM.
 
Old 01-15-2005, 07:48 PM   #3
bmcmahon
LQ Newbie
 
Registered: Jan 2005
Posts: 2

Rep: Reputation: 0
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.
 
Old 01-15-2005, 08:05 PM   #4
ValidiusMaximus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge
Posts: 169

Rep: Reputation: 30
get RPMs (or switch to debian and use apt)
 
Old 01-15-2005, 08:11 PM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
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 ( j/k)
 
Old 01-17-2005, 10:19 AM   #6
littleBonsai
LQ Newbie
 
Registered: Jan 2005
Posts: 2

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

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.
 
Old 02-01-2005, 04:34 AM   #7
Agadius
LQ Newbie
 
Registered: Feb 2005
Distribution: My own
Posts: 2

Rep: Reputation: 0
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.
 
Old 02-25-2005, 07:09 PM   #8
holkerveen
LQ Newbie
 
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error in the creation of `etc/pango/pango.modules` okeyla Linux - Newbie 3 07-02-2011 09:06 PM
printing on HP PhotoSmart from Gimp 2.2, gimp-print drivers needed? pearman Debian 2 08-05-2005 05:19 AM
firefox and gimp won't run (pango problem?) busbarn Slackware 3 06-21-2005 01:29 AM
gimp / gutenprint prob: gimp does not print bitpicker Linux - Software 0 04-08-2005 08:38 AM
Gimp...pango....gtk....glib....uhhhhh....... TheMusicGuy Linux - Software 27 06-23-2004 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration