Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
... `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 04:34 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.
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)
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.