Re: libXft-2.1.12 fails to configure

2008-07-24 Thread Ghirmay Desta
I have had similar problem. To get through it, I think I did either commented 
out the lines where it checks for the version of fontconfig or I made it check 
for much lower version. It worked fine but many applications start complaining 
about Fontconfig. For example when I do make xconfig in the kernel source 
directory, I get Fontconfig warrning messages. Now, with what you, the other 
Dan and Bruce have posted, I will re-evaluate my action. 
 
Thanks,
 
Ghirmay D. 

--- On Thu, 7/24/08, Dan McGhee [EMAIL PROTECTED] wrote:

From: Dan McGhee [EMAIL PROTECTED]
Subject: Re: libXft-2.1.12 fails to configure
To: BLFS Support List blfs-support@linuxfromscratch.org
Date: Thursday, July 24, 2008, 12:32 AM

Bruce Dubbs wrote:
 Dan McGhee wrote:

   
 I installed fontconfig 2.4.2 for this BLFS build. 
 

 ...

   
 `find / -xdev -type f -name fontconfig.pc -print` gave
nothing. 
 

 Then you don't have fontconfig installed properly.  It should be at

 /usr/lib/pkgconfig/fontconfig.pc
   
That's what I figured cuz that's where it is on my PC--building on 
laptop. So, I uninstalled and reinstalled fontconfig and 
double-checked each step along the way. Fontconfig.pc was not installed 
again. It got compiled--it's in the source tree--but it didn't get put 
where it belongs.

Because I use the more_control_package_helpers management system, 
something like this usually ends up to be a permissions problem, but the 
scripting usually kicks out an error message if that's the case. In this 
case the permissions along the install path /usr/lib/pkgconfig are all 
OK. I'm sure that installing it to the directory will work, but I sure 
would like to know what went wrong with the fontconfig installation. 
I've looked at the Makefile and install-sh and don't recognize any
problems.

Thanks, Bruce and Dan for the help.


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


  -- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Re: libXft-2.1.12 fails to configure [SOLVED]

2008-07-24 Thread Dan McGhee
Dan McGhee wrote:
 Bruce Dubbs wrote:
   
 Dan McGhee wrote:

   
 
 I installed fontconfig 2.4.2 for this BLFS build. 
 
   
 ...

   
 
 `find / -xdev -type f -name fontconfig.pc -print` gave nothing. 
 
   
 Then you don't have fontconfig installed properly.  It should be at

 /usr/lib/pkgconfig/fontconfig.pc
   
 
 That's what I figured cuz that's where it is on my PC--building on 
 laptop. So, I uninstalled and reinstalled fontconfig and 
 double-checked each step along the way. Fontconfig.pc was not installed 
 again. It got compiled--it's in the source tree--but it didn't get put 
 where it belongs.

 Because I use the more_control_package_helpers management system, 
 something like this usually ends up to be a permissions problem, but the 
 scripting usually kicks out an error message if that's the case. In this 
 case the permissions along the install path /usr/lib/pkgconfig are all 
 OK. I'm sure that installing it to the directory will work, but I sure 
 would like to know what went wrong with the fontconfig installation. 
 I've looked at the Makefile and install-sh and don't recognize any problems.

 Thanks, Bruce and Dan for the help.


   
The package management system and my ignorance were the cause. 
more_control_package_helpers is scripted in such a way that any errors 
stop the process and then one can inspect the logs to find out what 
happened. This did not occur on either of my two installs of fontconfig.

When the TTF fonts of Xorg failed to install with a message like can't 
write cache I suspected fontconfig again and combed the install log 
file. There was an error, but since I had added the extra install 
commands from the book in such a way to get them logged,. the script did 
not go to the test_pipe when the install error occurred and the script 
reported success because make install was not the last install 
command. It was a permissions issue with /var/cache. I fixed it, and 
fontconfig, libXFT and all the Xorg fonts installed without a hitch.

The true fix for the way I do things is something I learned during the 
install of Xorg this time. '#! /bin/bash -e'.

Bruce and Dan you started me down the right thought path. Thanks ever 
so much.

Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: libXft-2.1.12 fails to configure

2008-07-24 Thread Dan McGhee
Ghirmay Desta wrote:

 I have had similar problem. To get through it, I think I did either 
 commented out the lines where it checks for the version of fontconfig 
 or I made it check for much lower version. It worked fine but many 
 applications start complaining about Fontconfig. For example when I do 
 make xconfig in the kernel source directory, I get 
 Fontconfig warrning messages. Now, with what you, the other Dan and 
 Bruce have posted, I will re-evaluate my action.

  



Ghirmay, I don't know if you use the same package management system I 
do.  I have posted my fix to the list.  Bruce was right.  Fontconfig 
was not installed properly.

Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


libXft-2.1.12 fails to configure

2008-07-23 Thread Dan McGhee
Installing Xorg-7.2 using latest BLFS svn book on top of  LFS-6.3. All 
other xorg-libs have installed with no problems.  The configure error is:

Package requirements (fontconfig = 2.2) were not met:

No package 'fontconfig' found

Consider adjusting the PKG_CONFIG_PATH environment variableif you 
installed software in a non-standard prefix. [of course the BLFS 
standard is prefix=/usr]

Alternatively, you may set the envrionment variables FONTCONFIG_CFLAGS 
and FONTCONFIG_LIBS to avoid the need to call pkg-config.


$PKG_CONFIG_PATH=/usr/bin/pkg-config:/usr/lib/pkgconfig:/usr/share:/usr/include

Since all other xorg libraries installed with no problem I was at a 
loss.  I used a script, based on the book and the wiki, to automate the 
build.  This library kept failing.  Finally I used the following commands:

export FONTCONFIG_CFLAGS=/usr/include/fontconfig
export FONTCONFIG_LIBS=/usr/lib
./configure $XORG_CONFIG

and it configured, made and installed successfully. I'm glad, but also 
confused.  I didn't even get any me too's when I googled and found 
nothing similar in the archives.  Therefore, I'm assuming that it was 
something I did or overlooked.

Can anyone see anything I missed?  Is there a hack to any of the 
libXlt files that would work?  If this could be a problem for others, 
I would be more than happy to document this in the wiki, but I don't 
want to document something that affected only me.

Thanks,
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: libXft-2.1.12 fails to configure

2008-07-23 Thread Dan Nicholson
On Wed, Jul 23, 2008 at 7:34 AM, Dan McGhee [EMAIL PROTECTED] wrote:
 Installing Xorg-7.2 using latest BLFS svn book on top of  LFS-6.3. All
 other xorg-libs have installed with no problems.  The configure error is:

 Package requirements (fontconfig = 2.2) were not met:

 No package 'fontconfig' found

 Consider adjusting the PKG_CONFIG_PATH environment variableif you
 installed software in a non-standard prefix. [of course the BLFS
 standard is prefix=/usr]

 Alternatively, you may set the envrionment variables FONTCONFIG_CFLAGS
 and FONTCONFIG_LIBS to avoid the need to call pkg-config.


 $PKG_CONFIG_PATH=/usr/bin/pkg-config:/usr/lib/pkgconfig:/usr/share:/usr/include

I'm not sure if this setting is causing the problems, but it's not
correct. PKG_CONFIG_PATH should only contain paths where there is .pc
metadata files. So, a valid setting would be
PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig. However,
those two paths are the default search path, so if you're only
installing in /usr, you can omit PKG_CONFIG_PATH entirely.

You can test this easily enough:

$ pkg-config --modversion fontconfig
$ pkg-config --cflags fontconfig
$ pkg-config --libs fontconfig
$ pkg-config --cflags fontconfig = 2.2
$ pkg-config --libs fontconfig = 2.2

The last two commands being what configure is doing, but storing the
results in FONTCONFIG_{CFLAGS,LIBS}. Maybe your fontconfig is too old?

 export FONTCONFIG_CFLAGS=/usr/include/fontconfig
 export FONTCONFIG_LIBS=/usr/lib
 ./configure $XORG_CONFIG

This is not exactly what you're looking for, and I'm surprised it
passed. The _CFLAGS variable is stuff that will be used when
compiling, so a valid setting would be -I/usr/include/fontconfig.
And the _LIBS variable is stuff that will be used when linking, so
-L/usr/local/lib -lfontconfig would be valid.

 and it configured, made and installed successfully. I'm glad, but also
 confused.  I didn't even get any me too's when I googled and found
 nothing similar in the archives.  Therefore, I'm assuming that it was
 something I did or overlooked.

Yeah, this seems like a configuration error rather than in the source
of Xft or fontconfig. Try the commands above; if they're failing, then
there's no reason to continue until they're resolved.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: libXft-2.1.12 fails to configure

2008-07-23 Thread Dan McGhee
Dan Nicholson wrote:
 On Wed, Jul 23, 2008 at 7:34 AM, Dan McGhee [EMAIL PROTECTED] wrote:
   
 irrelevant snippe


 $PKG_CONFIG_PATH=/usr/bin/pkg-config:/usr/lib/pkgconfig:/usr/share:/usr/include
 

 I'm not sure if this setting is causing the problems, but it's not
 correct. PKG_CONFIG_PATH should only contain paths where there is .pc
 metadata files. So, a valid setting would be
 PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig. However,
 those two paths are the default search path, so if you're only
 installing in /usr, you can omit PKG_CONFIG_PATH entirely.
   
This is what I thought also, and when $PKG_CONFIG_PATH turned up empty, 
I put the other things in to hopefully make sure I was covering all the 
bases. No joy.
 You can test this easily enough:

 $ pkg-config --modversion fontconfig
 $ pkg-config --cflags fontconfig
 $ pkg-config --libs fontconfig
 $ pkg-config --cflags fontconfig = 2.2
 $ pkg-config --libs fontconfig = 2.2

 The last two commands being what configure is doing, but storing the
 results in FONTCONFIG_{CFLAGS,LIBS}. Maybe your fontconfig is too old?
   
I installed fontconfig 2.4.2 for this BLFS build. Interesting results 
from all of those commands. They all give
verbage telling me couldn't find fontconfig in the search path Maybe 
you should consider putting the directory containing fontconfig.pc in 
PKG_CONFIG_PATH.

`find / -xdev -type f -name fontconfig.pc -print` gave nothing. I use 
the more control package management system and the file list did not 
indicate installing this file at all. Fontconfig does install it doesn't 
it? Checked my logs and I did everything according to the book. Hmmm. 
I'll unpack the source again and see if I can find anything.
snipped more irrelevant
 I didn't even get any me too's when I googled and found
 nothing similar in the archives.  Therefore, I'm assuming that it was
 something I did or overlooked.
 

 Yeah, this seems like a configuration error rather than in the source
 of Xft or fontconfig. Try the commands above; if they're failing, then
 there's no reason to continue until they're resolved.
   
Yup!! This could be a show stopper.
Thanks, Dan.

Dan

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: libXft-2.1.12 fails to configure

2008-07-23 Thread Bruce Dubbs
Dan McGhee wrote:

 I installed fontconfig 2.4.2 for this BLFS build. 

...

 `find / -xdev -type f -name fontconfig.pc -print` gave nothing. 

Then you don't have fontconfig installed properly.  It should be at

/usr/lib/pkgconfig/fontconfig.pc

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: libXft-2.1.12 fails to configure

2008-07-23 Thread Dan McGhee
Bruce Dubbs wrote:
 Dan McGhee wrote:

   
 I installed fontconfig 2.4.2 for this BLFS build. 
 

 ...

   
 `find / -xdev -type f -name fontconfig.pc -print` gave nothing. 
 

 Then you don't have fontconfig installed properly.  It should be at

 /usr/lib/pkgconfig/fontconfig.pc
   
That's what I figured cuz that's where it is on my PC--building on 
laptop. So, I uninstalled and reinstalled fontconfig and 
double-checked each step along the way. Fontconfig.pc was not installed 
again. It got compiled--it's in the source tree--but it didn't get put 
where it belongs.

Because I use the more_control_package_helpers management system, 
something like this usually ends up to be a permissions problem, but the 
scripting usually kicks out an error message if that's the case. In this 
case the permissions along the install path /usr/lib/pkgconfig are all 
OK. I'm sure that installing it to the directory will work, but I sure 
would like to know what went wrong with the fontconfig installation. 
I've looked at the Makefile and install-sh and don't recognize any problems.

Thanks, Bruce and Dan for the help.


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


Re: libXft-2.1.12 fails to configure

2008-07-23 Thread Dan McGhee
Bruce Dubbs wrote:


 $PKG_CONFIG_PATH=/usr/bin/pkg-config:/usr/lib/pkgconfig:/usr/share:/usr/include
   
 I'm not sure if this setting is causing the problems, but it's not
 correct.
 

 The leading $ (in $PKG_CONFIG_PATH=...) is a typo.  I don't know if this was 
 actually used or not.
   
It's not a typo, it's bad grammar. :)

Dan


-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page