ROOT 5_26a on Fedora 12, shape.h missing (fix)

Dear Root Talk,

When trying to compile root 5.26a on Fedora 12 (x86_64) I initially got the following error message when running ./configure

...
Checking for X11/extensions/shape.h ... no
configure: X11/extensions/shape.h header (xorg-x11-proto-devel) MUST be installed

The fix was to create a symbolic link

ln -s /usr/include/X11/extensions/shapeproto.h /usr/include/X11/extensions/shape.h

Looking at the shapeproto.h file I see the following comment

/*
 * Protocol requests constants and alignment values
 * These would really be in SHAPE's X.h and Xproto.h equivalents
 */

This is with xorg-x11-proto-devel version 7.4-35.fc12.

Bertrand

Hi,

please remove the symbolic link and install instead package:

libXext-devel-1.1-2.fc12.i686

Cheers, Fons.

Hi Fons,

Thanks for the suggestion, but it didn’t work

[root@bbiritz-fedora12 root5_26a_test]# rm /usr/include/X11/extensions/shape.h 
rm: remove regular file `/usr/include/X11/extensions/shape.h'? y
[root@bbiritz-fedora12 root5_26a_test]# ./configure 
Configuring for linux
Checking for GNU Make version >= 3.79.1 ... ok
Checking for C compiler ... gcc
Checking for C++ compiler ... g++
Checking for linker (LD) ... g++
Checking for F77 compiler ... no F77 compiler gfortran found
Checking for libX11 ... /usr/lib
Checking for X11/Xlib.h ... /usr/include
Checking for X11/Xft/Xft.h ... /usr/include
Checking for X11/extensions/shape.h ... no
configure: X11/extensions/shape.h header (xorg-x11-proto-devel) MUST be installed
[root@bbiritz-fedora12 root5_26a_test]# yum list *libXext*
Loaded plugins: presto, refresh-packagekit
Installed Packages
libXext.i686                            1.1-2.fc12                      @updates
libXext-devel.i686                      1.1-2.fc12                      @updates
[root@bbiritz-fedora12 root5_26a_test]#

Any suggestions?

Bertrand

Did you check if those files are there. See this page:

root.cern.ch/drupal/content/build-prerequisites

and verify. If not do yum install. Works fine for me so it should also for you.

– Fons

Hi Fons,

I had everything already installed besides the optional packages. Installed those just for kicks and no change, it still asks for the shapes.h file.

The system I am running is

uname -a
Linux bbiritz-fedora12 2.6.31.12-174.2.3.fc12.i686 #1 SMP Mon Jan 18 20:22:46 UTC 2010 i686 i686 i386 GNU/Linux

Any other ideas?

Thanks,
Bertrand

Do you have these two files on your system:

/usr/include/X11/extensions/shape.h
/usr/lib/libXext.so

if not install the package or configure will fail.

Cheers, Fons.

Hi Fons,

Eh, I think we are talking past one another :slight_smile: The problem is there is no shape.h even though I have the library installed

[root@bbiritz-fedora12 ~]# ls /usr/include/X11/extensions/sha*
/usr/include/X11/extensions/shapeconst.h
/usr/include/X11/extensions/shapeproto.h
[root@bbiritz-fedora12 ~]# ls /usr/lib/libXext.so
/usr/lib/libXext.so

So you are running the same library

yum list libXext
Loaded plugins: presto, refresh-packagekit
Installed Packages
libXext.i686                         1.1-2.fc12

and have that file present?

Regards,
Bertrand

Do:

rpm -q -l libXext-devel

to list the contents of the package, does it show the shape.h file? Maybe it was not installed since you made the link. Try reinstalling it:

rpm -d libXext-devel
yum install libXext-devel

Cheers, Fons.

Hi Fons,

Ha, you are right. After removing the link and reinstalling the library shape.h is there.

Thanks,
Bertrand