Re: [ROOT] Sun compile problem

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Aug 21 2001 - 20:06:07 MEST


Hi Ahmed,

  how did you configure ROOT? ./configure solaris  ?
Till now we did not have any problem on any Solaris 6, 7 and 8 systems.
To fix it create a file MyConfig.mk in $ROOTSYS wit the following two lines:

CXXFLAGS += -DNEED_SNPRINTF
CFLAGS += -DNEED_SNPRINTF

If this works let me know what unique defines there are in the compiler
that I could use to find out if we are running on Solaris 5 so I can
add this define in the RConfig.h file.

Cheers, Fons.



Ahmet Sedat Ayan wrote:
> 
> Dear ROOTers,
> 
> I am having a problem to compile ROOT v.3.01.06 using on SUNOS 5.5.1
> using Sun Workshop Compiler C 4.2
> 
> Compiling stops with the following error:
> --------------------------------8<----------------------------------
> /opt/SUNWspro/bin/CC -O -KPIC -I/usr/openwin/include -Iinclude  -o
> base/src/TStopwatch.o -c base/src/TStopwatch.cxx
> /opt/SUNWspro/bin/CC -O -KPIC -I/usr/openwin/include -Iinclude  -o
> base/src/TStorage.o -c base/src/TStorage.cxx
> /opt/SUNWspro/bin/CC -O -KPIC -I/usr/openwin/include -Iinclude  -o
> base/src/TString.o -c base/src/TString.cxx
> "base/src/TString.cxx", line 1340: Error: The function vsnprintf must have
> a prototype.
> 1 Error(s) detected.
> make: *** [base/src/TString.o] Error 1
> ------------------------------8<----------------------------------
> 
> Is this problem unique to the compiler that I am using ? Does anyone have
> any idea how to overcome this problem?
> 
> Thanks,
> 
> Ahmet Sedat Ayan
> 
> Physics & Astronomy Dept.
> Van Allen Hall
> University of Iowa
> Iowa City, IA, 52242
> 
> Voice      : (++ 1 319) 335-2832 (W) (GMT-6)
> Occupation : Ph.D Candidate (But still dreamer!)
> e-mail     : ayan@cms.physics.uiowa.edu
> web        : http://jazz.physics.uiowa.edu/~ayan

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET