Re: lesstif doesn't find Xrender by default

2009-01-05 Thread Bruce Dubbs
DJ Lucas wrote:
> Andreas Turriff wrote:
>> Guy Dalziel wrote:
>>   
>>> Matthew Burgess wrote:
>>>   
>>> 
 Using the book's default instructions, I get the following output in the
 run of ./configure for lesstif-0.95.0...

 Checking X11/extensions/Xrender.h usability... no
 Checking X11/extensions/Xrender.h presence... no
 
   
>>> The same problem does indeed occur on my system, however it is not 
>>> "broken" as a result of it.
>>>   
>>> 
>> I had the same thing. 
>>   
> Has this been addressed?  I don't have the issue, but X is not in /usr 
> for me.  On a default run, what does the "checking for X" message produce?
> 
> checking for X... libraries /opt/X11/lib, headers /opt/X11/include

It produces the location of the X libraries and headers so the build can find 
them.  Just because configure checks for something doesn't always mean that 
it's 
used.

On the system I've been working on lately, I have:


checking for X... libraries , headers (installed in /usr)

checking for Xt Revision Number 6... revision 6
checking whether libXp is available... no
checking whether to link -lXp... no
checking for Motif... no
checking whether libXt was compiled with -DXTHREADS... yes

checking X11/extensions/Xrender.h usability... no
checking X11/extensions/Xrender.h presence... no
checking for X11/extensions/Xrender.h... no

$ locate Xrender.h
/usr/include/X11/extensions/Xrender.h

Looking at configure, it has:

yes)
 XRENDER_CFLAGS="-I$x_includes"
 XRENDER_LIBS="-L$x_libraries -lXft -lXrender"

 saved_LIBS="$LIBS"
 LIBS="$LIBS $XRENDER_LIBS"
 saved_CPPFLAGS="$CPPFLAGS"
 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"

Now since I installed in /usr XRENDER_CFLAGS expands to "-I" which gcc flags as 
an error.

If I change the lines above to:

 XRENDER_CFLAGS=""
 XRENDER_LIBS="-lXft -lXrender"

I now get:

checking X11/extensions/Xrender.h usability... yes
checking X11/extensions/Xrender.h presence... yes
checking for X11/extensions/Xrender.h... yes
checking for XRenderParseColor... yes


Another thing that works is:

  ./configure --x-includes=/usr/include --x-libraries=/lib

Now I get:
checking for X... libraries /usr/lib, headers /usr/include
checking X11/extensions/Xrender.h usability... yes
checking X11/extensions/Xrender.h presence... yes
checking for X11/extensions/Xrender.h... yes
checking for XRenderParseColor... yes


Hope this helps.

   -- Bruce

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


Re: lesstif doesn't find Xrender by default

2009-01-04 Thread DJ Lucas
Andreas Turriff wrote:
> Guy Dalziel wrote:
>   
>> Matthew Burgess wrote:
>>   
>> 
>>> Using the book's default instructions, I get the following output in the
>>> run of ./configure for lesstif-0.95.0...
>>>
>>> Checking X11/extensions/Xrender.h usability... no
>>> Checking X11/extensions/Xrender.h presence... no
>>> 
>>>   
>> The same problem does indeed occur on my system, however it is not 
>> "broken" as a result of it.
>>   
>> 
> I had the same thing. 
>   
Has this been addressed?  I don't have the issue, but X is not in /usr 
for me.  On a default run, what does the "checking for X" message produce?

checking for X... libraries /opt/X11/lib, headers /opt/X11/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether gethostname() is available... yes
checking for Xt Revision Number 6... revision 6
checking whether libXp is available... no
checking whether to link -lXp... no
checking for Motif... no
checking whether libXt was compiled with -DXTHREADS... yes
checking for lynx... no
checking for links... no
checking for suitable man2html... checking for man2html... no
checking whether to build the tests... no
checking for freetype-config... freetype-config
checking for freetype/freetype.h... yes
checking for FT_Init_FreeType... yes
checking X11/extensions/Xrender.h usability... yes
checking X11/extensions/Xrender.h presence... yes
checking for X11/extensions/Xrender.h... yes
checking for XRenderParseColor... yes
checking for fontconfig-config... no
checking fontconfig/fontconfig.h usability... yes
checking fontconfig/fontconfig.h presence... yes
checking for fontconfig/fontconfig.h... yes
checking for FcInit... yes
configure: creating ./config.status

-- DJ Lucas


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.

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


Re: lesstif doesn't find Xrender by default

2008-12-18 Thread Andreas Turriff
Guy Dalziel wrote:
> Matthew Burgess wrote:
>   
>> Using the book's default instructions, I get the following output in the
>> run of ./configure for lesstif-0.95.0...
>>
>> Checking X11/extensions/Xrender.h usability... no
>> Checking X11/extensions/Xrender.h presence... no
>> 
> The same problem does indeed occur on my system, however it is not 
> "broken" as a result of it. Lesstif compiles and functions perfectly 
> well without it, the only difference is the lack of Xrender.h causes 
> lesstif to not compile against XFT. After compiling and testing with 
> --x-includes and without it I can't actually notice any difference, 
> although I don't know if I'm using what XFT provides within my document 
> to provide a fair test. Perhaps someone could test this.
>   
I had the same thing. Looking at the config.log output, it seems that 
the configure test is braindead - GCC reports no input files, thus 
returning an error. Unfortunately, my skills with the autotools don't 
suffice to be able to provide a patch for this. I worked around it by 
setting ac_cv_header_extensions_xrender_h=yes in the configure 
invocation. (Doublecheck the variable name, I'm working from memory here.)

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


Re: lesstif doesn't find Xrender by default

2008-12-17 Thread Guy Dalziel
Matthew Burgess wrote:
> Using the book's default instructions, I get the following output in the
> run of ./configure for lesstif-0.95.0...
>
> Checking X11/extensions/Xrender.h usability... no
> Checking X11/extensions/Xrender.h presence... no
The same problem does indeed occur on my system, however it is not 
"broken" as a result of it. Lesstif compiles and functions perfectly 
well without it, the only difference is the lack of Xrender.h causes 
lesstif to not compile against XFT. After compiling and testing with 
--x-includes and without it I can't actually notice any difference, 
although I don't know if I'm using what XFT provides within my document 
to provide a fair test. Perhaps someone could test this.
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page


lesstif doesn't find Xrender by default

2008-12-15 Thread Matthew Burgess
Hi all,

I may well have missed something obvious again here, if so then my apologies!

Using the book's default instructions, I get the following output in the
run of ./configure for lesstif-0.95.0...

Checking X11/extensions/Xrender.h usability... no
Checking X11/extensions/Xrender.h presence... no

If, instead, I change the configure invocation by adding
'--x-includes=${XORG_PREFIX}', it finds a usable Xrender.h file.  Note that
in my case, XORG_PREFIX=/usr, so I'm surprised lesstif b0rked.

Is anyone able to reproduce this?

Thanks,

Matt.

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