Hi ROOT'ers, I'm replying to this mail, since it seemed to bounce at the listserver (Fons, I think it was John's mail that bounced, not mine), and I believe this could be of general intrest. On Thu, 3 May 2001 08:51:54 -0700 (PDT) John Zweizig <jzweizig@ligo.caltech.edu> wrote concerning ": Re: [ROOT] Compiling ROOT on SunOS 5.8 sparc (solaris 2.8?) and GCC 2.95.2": > This is a bizarre bug with a real simple solution. It turns out that > gcc 2.95.2 doesn't allow function prototypes without return values > (these are prevalent in the X11 headers) in most cases. The one > exception is if the header file comes from /usr/include. Uh. I didn't know that. Ok, guess you learn every day. > The default solaris installation has the X headers linked into > /usr/include via a symbolic link X11->/usr/openwin/include/X11 (or > something like that), but this isn't seen by gcc because the compile > flags have -I/usr/openwin/include. The solution is to remove all > occurrences of -I/usr/openwin/include from > config/Makefile.solarisegs, configure with the solarisegcs > architecture and compile. I guess this could go into the ROOT configuration. But then again as Fons said: On Thu, 3 May 2001 18:22:28 +0200 Fons Rademakers <Fons.Rademakers@cern.ch> wrote concerning ": ... > Anyway, interesting hack around broken headers. > And what if users don't have the symlinks in /usr/include? I guess > they are out of luck. So I guess that all those Solaris users out there should comment on this, and make sure that /usr/include/X11 really does exist on most, if not all Solaris' (of course disregarding those who like to compile everything themselves and put it in thier home directory). Perhaps the ROOT configure script should accept Autotool like options --x-includes and --x-libraries with arguemtns being the installation directories of X headers and libraries (When I get the time Fons). Yours, Christian ----------------------------------------------------------- Holm Christensen Phone: (+45) 35 35 96 91 Sankt Hansgade 23, 1. th. Office: (+45) 353 25 305 DK-2200 Copenhagen N Web: www.nbi.dk/~cholm Denmark Email: cholm@nbi.dk
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:44 MET